public class ServerStatisticManager extends AbstractInitializableServerObject<ServerContext> implements Resettable, CloseableComponent
ServerStatistic
instance as well as a thread
which updates it repeatedly after the configured delay.Constructor and Description |
---|
ServerStatisticManager(ServerContext serverCtx) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
ServerStatistic |
getServerStatistic()
Returns the ServerStatistic singleton instance
|
void |
init()
Performs the initialization of this class.
|
ServerStatistic |
newStatisticSnapshot()
Returns a freshly updated clone of the ServerStatistic singleton instance
|
void |
reset()
This method is called by the ResetButton on it's registered target.
|
checkInitialized, isInitialized, setInitialized, toString
checkPermission, getServerConfig, getServerContext, getStatisticManager
getApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString
public ServerStatisticManager(ServerContext serverCtx)
public void init()
Initializable
init
in interface Initializable
public void reset()
Resettable
reset
in interface Resettable
public void close()
close
in interface java.lang.AutoCloseable
public ServerStatistic getServerStatistic()
public ServerStatistic newStatisticSnapshot()
Copyright © 2014 EsprIT-Systems. All Rights Reserved.