com.microstrategy.web.objects.admin.serverconfig.PerformanceLoggingConfiguration |
This interface represents the Intelligence Server Performance Logging Configuration. A Performance Logging Configuration consists of a number of LogCategories
. Each
such LogCategory
can have several LogCounter
s.
An Intelligence Server has a default Performance Logging configuration. Also each Server Instance has its own Performance Logging configuration. This interface can
represent both default and (server) instance configuration. Also, an instance configuration can be configured to use the default configuration. Through
this interface one can query the categories-counters and configure their logging. Any configuration changes made need to be saved using save()
methods to ensure that they are saved and applied.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
disableLogStats(String cat, String counter)
Disables logging to statistics for the counter passed.
| ||||||||||
abstract void |
disableLogging(String cat, String counter)
Disables logging for the counter passed.
| ||||||||||
abstract void |
enableLogStats(String cat, String counter)
Enables logging to statistics for the counter passed.
| ||||||||||
abstract void |
enableLogging(String cat, String counter)
Enables logging for the counter passed.
| ||||||||||
abstract LogCategories |
getCategories()
Returns the
LogCategories for the server instance or for the IServer (if this is the default configuration). | ||||||||||
abstract LogDestination |
getDestination()
Returns the log destination for this configuration.
| ||||||||||
abstract int |
getLoggingFrequency()
Returns the logging frequency.
| ||||||||||
abstract int |
getStatsFrequency()
Returns the frequency log performance counters to statistics.
| ||||||||||
abstract boolean |
getUseDefault()
Conveys whether this performance logging configuration has been configured to use the default configuration for the IServer.
| ||||||||||
abstract boolean |
isDefault()
Conveys if this configuration represents the default performance logging configuration for the IServer.
| ||||||||||
abstract boolean |
isLogStatistics()
Returns whether log performance counters to statistics.
| ||||||||||
abstract boolean |
isLoggingEnabled()
Returns whether performance logging is enabled for this instance.
| ||||||||||
abstract void |
refreshServerConfiguration()
Refreshes the server's performance logging configuration.
| ||||||||||
abstract void |
save()
Saves any changes done to the configuration since the last update (or save).
| ||||||||||
abstract void |
save(boolean applyRuntime)
Saves any changes done to the configuration since the last update (or save).
| ||||||||||
abstract void |
setDestination(LogDestination dest)
Sets the logging destination for this configuration.
| ||||||||||
abstract void |
setLogStatistics(boolean _isLogStatistics)
Sets whether log performance counters to statistics.
| ||||||||||
abstract void |
setLoggingEnabled(boolean isEnabled)
Sets whether performance logging is enabled for the instance.
| ||||||||||
abstract void |
setLoggingFrequency(int freq)
Sets the logging frequency.
| ||||||||||
abstract void |
setStatsFrequency(int freq)
Sets the frequency log performance counters to statistics.
| ||||||||||
abstract void |
setUseDefault(boolean useDefault)
Configures the owner server instance to use the default performance logging configuration of the IServer or not.
|
Disables logging to statistics for the counter passed. Note that after enabling (or disabling) counters save()
should be called to save the changes to IServer.
cat | the category name |
---|---|
counter | the counter name |
IllegalArgumentException |
---|
Disables logging for the counter passed. Note that after enabling (or disabling) counters save()
should be called to save the changes to IServer.
cat | the category name |
---|---|
counter | the counter name |
Enables logging to statistics for the counter passed. Note that after enabling (or disabling) counters save()
should be called to save the changes to IServer.
cat | the category name |
---|---|
counter | the counter name |
IllegalArgumentException |
---|
Enables logging for the counter passed. Note that after enabling (or disabling) counters save()
should be called to save the changes to IServer.
cat | the category name |
---|---|
counter | the counter name |
Returns the LogCategories
for the server instance or for the IServer (if this is the default configuration).
Returns the log destination for this configuration.
ServerConfigException | if there was an error while retrieving log destination from IServer. |
---|
Returns the logging frequency.
Returns the frequency log performance counters to statistics.
Conveys whether this performance logging configuration has been configured to use the default configuration for the IServer. This method is normally applicable to performance logging configuration of a Server Instance only, as they can be configured to use the default configuration of the IServer rather than their own configuration. If this performance logging configuration represents a default configuration itself, this method will return True.
Conveys if this configuration represents the default performance logging configuration for the IServer.
Returns whether log performance counters to statistics.
Returns whether performance logging is enabled for this instance. This acts as a global switch for performance logging on this instance.
Refreshes the server's performance logging configuration. The server will re-read the performance logging configuration from storage and load that configuration into the running Intelligence Server instance.
ServerConfigException | Thrown if an error occurs. |
---|
Saves any changes done to the configuration since the last update (or save). The saved changes will be effected on IServer only upon subsequent restart.
ServerConfigException | If an error was encountered while saving the changes. |
---|
Saves any changes done to the configuration since the last update (or save). If applyRuntime is set to false, the saved changes will be effected on IServer only upon subsequent restart. If set to True, the changes will however be applied on IServer immediately.
applyRuntime | if True, asks IServer to apply the saved changes to configuration immediately. If this configuration represents a default configuration, and this is set to True, all server instances using the default performance logging configuration will thus, start using the new changes immediately upon save. |
---|
ServerConfigException | If an error was encountered while saving the changes. |
---|
Sets the logging destination for this configuration. Note that the changes won't be saved to IServer till subsequent call to save()
.
dest | the log destination. |
---|
Sets whether log performance counters to statistics.
_isLogStatistics | True if log performance counters to statistics, False otherwise. |
---|
Sets whether performance logging is enabled for the instance. This is a global switch for performance logging on this instance.
isEnabled | True if performance logging is enabled, false otherwise. |
---|
Sets the logging frequency. The new value is saved on the IServer only upon next call to save()
.
Sets the frequency log performance counters to statistics. The new value is saved on the IServer only upon next call to save()
.
Configures the owner server instance to use the default performance logging configuration of the IServer or not. If useDefault is set to True, the server
instance will use the default configuration (instead of its own configuration) else it will use its own configuration. Changes made should be saved using
save()
. Note that this method is relevant only if this configuration represents the configuration for an individual server instance.
if this configuration represents a default configuration, setting useDefault to True represents a no-operation. Since a default configuration
will always continue to use only its configuration, setting useDefault to False on it, will however, result in Error.
useDefault | if this configuration should use the default configuration for the IServer. |
---|
UnsupportedOperationException | if [1] this configuration represents a default configuration and [2] an attempt is made to configure it to not use the default configuration (i.e. useDefault is passed as False). |
---|