Modifier and Type | Method and Description |
---|---|
String |
getLogName()
Gets the log name.
|
long |
getOutputFrequency()
Gets the output frequency.
|
long |
getResetFrequency()
Gets the reset frequency.
|
boolean |
isEnabled()
Are statistics enabled?
|
boolean |
isInstanceMonitoringEnabled()
Is statistics for Client instances enabled?
|
void |
setEnabled(boolean enabled)
Set enabled.
|
void |
setInstanceMonitoringEnabled(boolean enabled)
Set monitoring of instances enabled.
|
void |
setLogName(String logName)
Sets the log name.
|
void |
setOutputFrequency(long frequency)
Sets the output frequency.
|
void |
setResetFrequency(long frequency)
Sets the reset frequency
|
boolean isEnabled()
void setEnabled(boolean enabled)
By default client statistics are not enabled.
enabled
- true to enable, false to disableString getLogName()
void setLogName(String logName) throws ConfigException
This should be the name of a log description configured in
LoggingConfig
.
If no log name is specified then it is assumed that client statistics are not enabled.
logName
- the log nameConfigException
- if unable to set log namelong getOutputFrequency()
void setOutputFrequency(long frequency) throws ConfigException
Specifies the output frequency of the log. There will be one entry written to the log every interval.
If this is not explicitly specified then a log entry will be written every hour.
frequency
- the output frequency in milliseconds.ConfigException
- if unable to set frequency.long getResetFrequency()
void setResetFrequency(long frequency) throws ConfigException
Specifies when the counters are reset. Zero means that the counters are never reset.
If this is not explicitly set then the counters are reset every hour.
frequency
- the frequency in millisecondsConfigException
- if unable to set frequencyboolean isInstanceMonitoringEnabled()
By default this is false.
void setInstanceMonitoringEnabled(boolean enabled)
enabled
- true to enable, false to disableCopyright © 2016 Push Technology Ltd. All Rights Reserved.