public class AnalyticsMonitorSettings extends java.lang.Object implements IAnalyticsMonitorSettings
| Constructor and Description |
|---|
AnalyticsMonitorSettings(java.lang.String productId,
Version version)
Instantiates a new analytics monitor settings.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDailyNetworkUtilizationInKB()
Gets the current limit for the network utilization for the monitor.
|
LocationCoordinates |
getLocationCoordinates()
Get the location of the monitor as GPS coordinates.
|
ILogAnalyticsMonitor |
getLoggingInterface()
Gets the logging interface.
|
int |
getMaxStorageSizeInKB()
Gets the maximum size in KB for the data stored by the monitor.
|
java.util.UUID |
getProductId()
Gets the product id.
|
java.net.URI |
getServerUri()
Gets the server uri.
|
IStorage |
getStorageInterface()
Gets the current storage implementation.
|
long |
getStorageSaveInterval()
Gets the storage save interval in milliseconds.
|
boolean |
getSynchronizeAutomatically()
Get whether the monitor should automatically synchronize (the default) or
if it should only attempt to synchronize on an explicit call to ForceSync
|
boolean |
getTestMode()
Gets the test mode.
|
boolean |
getUseHttps()
Get whether SSL is configured for the communication
|
Version |
getVersion()
Gets the registered version of the application.
|
void |
setDailyNetworkUtilizationInKB(int dailyUtilizationLimit)
Sets the limit of the daily network utilization.
|
void |
setLoggingInterface(ILogAnalyticsMonitor loggingInterface)
Sets the logging interface.
|
void |
setMaxStorageSizeInKB(int storageLimit)
Sets the limit of the data stored by the monitor.
|
void |
setServerUri(java.net.URI serverUri)
Sets the server uri.
|
void |
setStorageInterface(IStorage storage)
Sets the storage.
|
void |
setStorageSaveInterval(long storageSaveInterval)
Sets the storage save interval.
|
void |
setSynchronizeAutomatically(boolean syncAutomatically)
Set whether the monitor should automatically synchronize or not.
|
void |
setTestMode(boolean testMode)
Sets the analytics monitor into test mode.
|
void |
setUseSsl(boolean useSsl)
Set whether the monitor should utilize SSL when communicating with the
server.
|
void |
setVersion(Version version)
Sets the version of the application
|
public AnalyticsMonitorSettings(java.lang.String productId,
Version version)
throws java.lang.IllegalArgumentException
productId - the product idversion - the version of the applicationjava.lang.IllegalArgumentException - the illegal argument exceptionpublic java.util.UUID getProductId()
IAnalyticsMonitorSettingsgetProductId in interface IAnalyticsMonitorSettingspublic void setVersion(Version version)
IAnalyticsMonitorSettingssetVersion in interface IAnalyticsMonitorSettingsversion - the new versionpublic Version getVersion()
IAnalyticsMonitorSettingsgetVersion in interface IAnalyticsMonitorSettingspublic void setLoggingInterface(ILogAnalyticsMonitor loggingInterface)
IAnalyticsMonitorSettingssetLoggingInterface in interface IAnalyticsMonitorSettingsloggingInterface - the new logging interfaceILogAnalyticsMonitorpublic ILogAnalyticsMonitor getLoggingInterface()
IAnalyticsMonitorSettingsgetLoggingInterface in interface IAnalyticsMonitorSettingsILogAnalyticsMonitorpublic void setStorageInterface(IStorage storage)
IAnalyticsMonitorSettingssetStorageInterface in interface IAnalyticsMonitorSettingsstorage - the new storageIStoragepublic IStorage getStorageInterface()
IAnalyticsMonitorSettingsgetStorageInterface in interface IAnalyticsMonitorSettingspublic void setStorageSaveInterval(long storageSaveInterval)
IAnalyticsMonitorSettingssetStorageSaveInterval in interface IAnalyticsMonitorSettingsstorageSaveInterval - the new storage save interval in millisecondspublic long getStorageSaveInterval()
IAnalyticsMonitorSettingsgetStorageSaveInterval in interface IAnalyticsMonitorSettingspublic void setServerUri(java.net.URI serverUri)
throws java.net.MalformedURLException,
java.net.URISyntaxException
IAnalyticsMonitorSettingssetServerUri in interface IAnalyticsMonitorSettingsserverUri - the new server urijava.net.MalformedURLException - the malformed url exceptionjava.net.URISyntaxException - the uRI syntax exceptionpublic java.net.URI getServerUri()
IAnalyticsMonitorSettingsgetServerUri in interface IAnalyticsMonitorSettingspublic boolean getSynchronizeAutomatically()
IAnalyticsMonitorSettingsgetSynchronizeAutomatically in interface IAnalyticsMonitorSettingspublic void setSynchronizeAutomatically(boolean syncAutomatically)
IAnalyticsMonitorSettingssetSynchronizeAutomatically in interface IAnalyticsMonitorSettingspublic int getDailyNetworkUtilizationInKB()
IAnalyticsMonitorSettingsgetDailyNetworkUtilizationInKB in interface IAnalyticsMonitorSettingspublic void setDailyNetworkUtilizationInKB(int dailyUtilizationLimit)
IAnalyticsMonitorSettingssetDailyNetworkUtilizationInKB in interface IAnalyticsMonitorSettingspublic int getMaxStorageSizeInKB()
IAnalyticsMonitorSettingsgetMaxStorageSizeInKB in interface IAnalyticsMonitorSettingspublic void setMaxStorageSizeInKB(int storageLimit)
IAnalyticsMonitorSettingssetMaxStorageSizeInKB in interface IAnalyticsMonitorSettingspublic void setTestMode(boolean testMode)
IAnalyticsMonitorSettingssetTestMode in interface IAnalyticsMonitorSettingstestMode - the new test modepublic boolean getTestMode()
IAnalyticsMonitorSettingsgetTestMode in interface IAnalyticsMonitorSettingspublic void setUseSsl(boolean useSsl)
throws java.net.MalformedURLException,
java.net.URISyntaxException
IAnalyticsMonitorSettingssetUseSsl in interface IAnalyticsMonitorSettingsjava.net.MalformedURLException - if the configured ServerUri is incorrectjava.net.URISyntaxException - if the configured ServerUri is incorrectpublic boolean getUseHttps()
IAnalyticsMonitorSettingsgetUseHttps in interface IAnalyticsMonitorSettingspublic LocationCoordinates getLocationCoordinates()
IAnalyticsMonitorSettingsgetLocationCoordinates in interface IAnalyticsMonitorSettings