@Deprecated
public class AnalyticsMonitorFacade
extends java.lang.Object
IAnalyticsMonitor,
AnalyticsMonitorFactory| Modifier and Type | Method and Description |
|---|---|
static void |
addVersionAvailableListener(IVersionAvailableListener versionAvailableListener)
Deprecated.
Adds the version available listener.
|
static void |
close()
Deprecated.
Close the internal monitor instance.
|
static void |
create(IAnalyticsMonitorSettings settings)
Deprecated.
Creates the monitor instance contained behind this facade.
|
static void |
create(java.lang.String productId,
Version version)
Deprecated.
Creates the monitor instance contained behind this facade.
|
static void |
forceSync()
Deprecated.
Start the monitoring
|
static AnalyticsMonitorStatus |
getStatus()
Deprecated.
Retrieves the current status of the wrapped monitor
|
static void |
lookup(java.lang.String lookupKey,
int timeoutInMilliSeconds,
ILookupCallback callback)
Deprecated.
Register an async lookup on the server for a specific key
|
static void |
removeVersionAvailableListener(IVersionAvailableListener versionAvailableListener)
Deprecated.
Removes the version available listener.
|
static void |
sendLog(java.lang.String logMessage)
Deprecated.
Sending a simple log message.
|
static void |
sendLog(java.lang.String logMessage,
byte[] data,
java.lang.String mimeType)
Deprecated.
Send a log message with associated data and mime type
|
static void |
sendLog(java.lang.String messageFormat,
java.lang.Object... args)
Deprecated.
Sending a simple formatted log message.
|
static void |
setInstallationInfo(java.lang.String installationID)
Deprecated.
Assigns the installation id
|
static void |
setInstallationInfo(java.lang.String installationID,
java.util.Map<java.lang.String,java.lang.String> installationProperties)
Deprecated.
Assigns the installation id
|
static void |
start()
Deprecated.
Start the monitoring
|
static void |
stop()
Deprecated.
Stop the monitoring.
|
static void |
stop(int waitForCompletionInMilliseconds)
Deprecated.
Stop the monitoring.
|
static void |
trackException(java.lang.Throwable exception)
Deprecated.
Track an exception.
|
static void |
trackException(java.lang.Throwable exception,
java.lang.String message)
Deprecated.
Track an exception with a context message.
|
static void |
trackException(java.lang.Throwable exception,
java.lang.String format,
java.lang.Object... args)
Deprecated.
Track an exception with a formatted context message.
|
static void |
trackFeature(java.lang.String featureName)
Deprecated.
Track a named feature.
|
static void |
trackFeatureCancel(java.lang.String featureName)
Deprecated.
Cancel time tracking of a named feature.
|
static void |
trackFeatures(java.lang.String[] featureNames)
Deprecated.
Track a number of named feature.
|
static TimingScope |
trackFeatureStart(java.lang.String featureName)
Deprecated.
Start time tracking of a named feature.
|
static int |
trackFeatureStop(java.lang.String featureName)
Deprecated.
Stop time tracking of a named feature.
|
static void |
trackFeatureValue(java.lang.String featureName,
long featureValue)
Deprecated.
Track a value associated to a named feature.
|
public static void create(java.lang.String productId,
Version version)
throws java.lang.IllegalArgumentException,
java.net.URISyntaxException,
java.lang.IllegalStateException
productId - the product idversion - the versionjava.lang.IllegalArgumentException - the illegal argument exceptionjava.net.URISyntaxException - the uRI syntax exceptionjava.lang.IllegalStateException - if create already calledpublic static void create(IAnalyticsMonitorSettings settings) throws java.lang.IllegalArgumentException, java.net.URISyntaxException, java.lang.IllegalStateException
settings - the settingsjava.lang.IllegalArgumentException - the illegal argument exceptionjava.net.URISyntaxException - the uRI syntax exceptionjava.lang.IllegalStateException - if create already calledpublic static void addVersionAvailableListener(IVersionAvailableListener versionAvailableListener)
versionAvailableListener - the version available listenerpublic static void removeVersionAvailableListener(IVersionAvailableListener versionAvailableListener)
versionAvailableListener - the version available listenerpublic static void start()
public static void forceSync()
public static void trackException(java.lang.Throwable exception)
exception - the exceptionpublic static void trackException(java.lang.Throwable exception,
java.lang.String message)
exception - the exceptionmessage - the messagepublic static void trackException(java.lang.Throwable exception,
java.lang.String format,
java.lang.Object... args)
exception - the exceptionformat - the formatargs - the argspublic static void trackFeature(java.lang.String featureName)
featureName - the feature namepublic static void trackFeatures(java.lang.String[] featureNames)
featureName - the feature namepublic static TimingScope trackFeatureStart(java.lang.String featureName)
featureName - the feature namepublic static int trackFeatureStop(java.lang.String featureName)
featureName - the feature namepublic static void trackFeatureCancel(java.lang.String featureName)
featureName - the feature namepublic static void trackFeatureValue(java.lang.String featureName,
long featureValue)
featureName - the feature namefeatureValue - the value of the featurepublic static void lookup(java.lang.String lookupKey,
int timeoutInMilliSeconds,
ILookupCallback callback)
lookupKey - the key to lookuptimeoutInMilliSeconds - the timeout before abandoning the lookup. Set to 0 for no
timeoutcallback - the callback interfacepublic static void sendLog(java.lang.String logMessage)
logMessage - the log messagepublic static void sendLog(java.lang.String messageFormat,
java.lang.Object... args)
messageFormat - the message formatargs - the argspublic static void sendLog(java.lang.String logMessage,
byte[] data,
java.lang.String mimeType)
logMessage - the log messagedata - the data to associate with the messagemimeType - the optional mimetype of the messagepublic static AnalyticsMonitorStatus getStatus()
public static void setInstallationInfo(java.lang.String installationID,
java.util.Map<java.lang.String,java.lang.String> installationProperties)
installationID - the current installation idpublic static void setInstallationInfo(java.lang.String installationID)
installationID - the current installation idpublic static void stop()
public static void close()
public static void stop(int waitForCompletionInMilliseconds)
waitForCompletionInMilliseconds - the milliseconds to wait for the final data to be delivered