public class DefaultStatisticsManager extends BaseEngineModule implements org.openksavi.sponge.engine.StatisticsManager
| Constructor and Description |
|---|
DefaultStatisticsManager(org.openksavi.sponge.engine.Engine engine)
Creates a new Statistics Manager.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearTimeMeasurement() |
int |
getActiveThreadCount()
Returns active thread count.
|
String |
getDecomposedQueueSummary(DecomposedQueueMainProcessingUnit mainProcessingUnit) |
Double |
getEventPerformance() |
protected String |
getEventSetProcessorsSummary(String label,
List<? extends org.openksavi.sponge.EventSetProcessorAdapterGroup> groups) |
String |
getMemorySummary() |
int |
getPluginCount()
Returns the number of plugins.
|
int |
getScheduledEventCount()
Returns scheduled event count.
|
String |
getSummary()
Returns statistics summary.
|
protected String |
getThreadPoolSummary(org.openksavi.sponge.engine.ThreadPool threadPool) |
void |
incrementTimeMeasurementEventCount() |
void |
startTimeMeasurementIfNotStartedYet() |
doShutdown, doStartup, getEngine, getName, getService, getState, isFailed, isNew, isNewOrStartingOrRunning, isRunning, isStarting, isStopping, isTerminated, setEngine, setName, shutdown, startup, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic DefaultStatisticsManager(org.openksavi.sponge.engine.Engine engine)
engine - the engine.public int getScheduledEventCount()
getScheduledEventCount in interface org.openksavi.sponge.engine.StatisticsManagerpublic int getActiveThreadCount()
getActiveThreadCount in interface org.openksavi.sponge.engine.StatisticsManagerpublic int getPluginCount()
getPluginCount in interface org.openksavi.sponge.engine.StatisticsManagerprotected String getEventSetProcessorsSummary(String label, List<? extends org.openksavi.sponge.EventSetProcessorAdapterGroup> groups)
protected String getThreadPoolSummary(org.openksavi.sponge.engine.ThreadPool threadPool)
public Double getEventPerformance()
getEventPerformance in interface org.openksavi.sponge.engine.StatisticsManagerpublic String getMemorySummary()
public String getDecomposedQueueSummary(DecomposedQueueMainProcessingUnit mainProcessingUnit)
public String getSummary()
getSummary in interface org.openksavi.sponge.engine.StatisticsManagerpublic void startTimeMeasurementIfNotStartedYet()
startTimeMeasurementIfNotStartedYet in interface org.openksavi.sponge.engine.StatisticsManagerpublic void incrementTimeMeasurementEventCount()
incrementTimeMeasurementEventCount in interface org.openksavi.sponge.engine.StatisticsManagerpublic void clearTimeMeasurement()
clearTimeMeasurement in interface org.openksavi.sponge.engine.StatisticsManagerCopyright © 2016–2017 Softelnet. All rights reserved.