Splunk MINT SDK for Android  4.4
 All Classes Namespaces Files Functions Variables
com.splunk.mint.DataSaverResponse Class Reference

Public Member Functions

Exception getException ()
 
Boolean getSavedSuccessfully ()
 
String getData ()
 
String getFilepath ()
 
String toString ()
 

Protected Member Functions

 DataSaverResponse (String data, String filepath)
 
void setException (Exception exception)
 
void setSavedSuccessfully (Boolean savedSuccessfully)
 

Detailed Description

The DataSaverResponse class is a callback from the MintCallback interface, which returns a DataSaverResponse object for a data save attempt. This object contains information about the data to be saved, the file path, the exception (if any, or null), and a Boolean indicating whether the data was saved successfully.

Constructor & Destructor Documentation

com.splunk.mint.DataSaverResponse.DataSaverResponse ( String  data,
String  filepath 
)
inlineprotected

Protected constructor for the DataSaverResponse class. Users will never use this constructor.

Member Function Documentation

String com.splunk.mint.DataSaverResponse.getData ( )
inline

Returns the data that was saved.

Returns
The data.
Exception com.splunk.mint.DataSaverResponse.getException ( )
inline

Returns an exception, if any.

Returns
The exception or null.
String com.splunk.mint.DataSaverResponse.getFilepath ( )
inline

Returns the file path where the data was written.

Returns
The file path.
Boolean com.splunk.mint.DataSaverResponse.getSavedSuccessfully ( )
inline

Indicates whether the data was saved successfully.

Returns
true if successful, false if not.
void com.splunk.mint.DataSaverResponse.setException ( Exception  exception)
inlineprotected

Sets the exception, if any.

Parameters
exceptionThe exception.
void com.splunk.mint.DataSaverResponse.setSavedSuccessfully ( Boolean  savedSuccessfully)
inlineprotected

Indicates whether the data was saved successfully.

Parameters
savedSuccessfullytrue if successful, false if not.
String com.splunk.mint.DataSaverResponse.toString ( )
inline

The documentation for this class was generated from the following file: