Splunk MINT SDK for Android  5.0
 All Classes 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 
)
protected

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

Member Function Documentation

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

Returns the data that was saved.

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

Returns an exception, if any.

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

Returns the file path where the data was written.

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

Indicates whether the data was saved successfully.

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

Sets the exception, if any.

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

Indicates whether the data was saved successfully.

Parameters
savedSuccessfullytrue if successful, false if not.

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