public interface IAnalyticsMonitor
create call on the
AnalyticsMonitorFactory or use the AnalyticsMonitorFacade for simple
integration.| Modifier and Type | Method and Description |
|---|---|
void |
addVersionAvailableListener(IVersionAvailableListener versionAvailableListener)
Adds the version available listener.
|
void |
close()
Closing the monitor instance
|
void |
forceSync()
Explicitly force a synchronization of the current information with the
analytics server.
|
AnalyticsMonitorStatus |
getStatus()
Get the current status for the monitor instance
|
void |
lookup(java.lang.String lookupKey,
int timeoutInMilliseconds,
ILookupCallback callback)
Performs an async lookup on the servers for the given key and returns the
result in a strongly typed instance indicating the result of the lookup
|
void |
removeVersionAvailableListener(IVersionAvailableListener versionAvailableListener)
Removes the version available listener.
|
void |
sendLog(java.lang.String logMessage)
Sending a simple log message.
|
void |
sendLog(java.lang.String logMessage,
byte[] data,
java.lang.String mimeType)
Send a log message with a associated data
|
void |
sendLog(java.lang.String messageFormat,
java.lang.Object... args)
Sending a simple formatted log message.
|
void |
setInstallationInfo(java.lang.String installationID)
Associate an installation ID with the current monitor and the current session
|
void |
setInstallationInfo(java.lang.String installationID,
java.util.Map<java.lang.String,java.lang.String> installationProperties)
Associate an installation ID with the current monitor and allows for further
installation properties to be associated with the current session
|
void |
start()
Starting the monitor.
|
void |
stop()
Stop the monitor.
|
void |
stop(int waitForCompletionInMilliseconds)
Stop the monitor.
|
void |
trackException(java.lang.Throwable exception)
Track an exception.
|
void |
trackException(java.lang.Throwable exception,
java.lang.String message)
Track an exception with a context message.
|
void |
trackException(java.lang.Throwable exception,
java.lang.String format,
java.lang.Object... args)
Track an exception with a formatted context message.
|
void |
trackFeature(java.lang.String featureName)
Track a named feature.
|
void |
trackFeatureCancel(java.lang.String featureName)
Stop an ongoing time tracking of a named feature within registering the
time.
|
void |
trackFeatures(java.lang.String[] featureName)
Track an array of named feature.
|
TimingScope |
trackFeatureStart(java.lang.String featureName)
Start time tracking of a named feature.
|
int |
trackFeatureStop(java.lang.String featureName)
Stop time tracking of a named feature.
|
void |
trackFeatureValue(java.lang.String featureName,
long featureValue)
Track a value associated with a feature name.
|
void addVersionAvailableListener(IVersionAvailableListener versionAvailableListener)
versionAvailableListener - the version available listenervoid removeVersionAvailableListener(IVersionAvailableListener versionAvailableListener)
versionAvailableListener - the version available listenervoid start()
void trackException(java.lang.Throwable exception)
exception - the exceptionvoid trackException(java.lang.Throwable exception,
java.lang.String message)
exception - the exceptionmessage - the messagevoid trackException(java.lang.Throwable exception,
java.lang.String format,
java.lang.Object... args)
exception - the exceptionformat - the format stringargs - the arguments to the formatvoid trackFeature(java.lang.String featureName)
featureName - the feature namevoid trackFeatures(java.lang.String[] featureName)
featureName - the feature nameTimingScope trackFeatureStart(java.lang.String featureName)
featureName - the feature nameint trackFeatureStop(java.lang.String featureName)
featureName - the feature namevoid trackFeatureCancel(java.lang.String featureName)
featureName - the feature namevoid trackFeatureValue(java.lang.String featureName,
long featureValue)
featureName - the feature namefeatureValue - the value for the featurevoid sendLog(java.lang.String logMessage)
logMessage - the log messagevoid sendLog(java.lang.String messageFormat,
java.lang.Object... args)
messageFormat - the message formatargs - the argsvoid sendLog(java.lang.String logMessage,
byte[] data,
java.lang.String mimeType)
logMessage - the messagedata - the associated datamimeType - the optional mime type of the datavoid forceSync()
AnalyticsMonitorSettingsvoid setInstallationInfo(java.lang.String installationID,
java.util.Map<java.lang.String,java.lang.String> installationProperties)
installationID - installationProperties - void setInstallationInfo(java.lang.String installationID)
installationID - void stop()
void stop(int waitForCompletionInMilliseconds)
waitForCompletionInMilliseconds - the milliseconds to wait for the final data to be deliveredAnalyticsMonitorStatus getStatus()
void lookup(java.lang.String lookupKey,
int timeoutInMilliseconds,
ILookupCallback callback)
lookupKey - the key to lookuptimeoutInMilliseconds - the timeout before abandoning the lookup, in milliseconds. 0
means no timeoutcallback - the interface on which the async callback is performedLookupReplyvoid close()