public class DefaultStatisticsManager extends BaseEngineModule implements StatisticsManager
| Constructor and Description |
|---|
DefaultStatisticsManager(SpongeEngine 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 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(ThreadPool threadPool) |
void |
incrementTimeMeasurementEventCount() |
void |
startTimeMeasurementIfNotStartedYet() |
doShutdown, doStartup, getDescription, getEngine, getInternalService, getLabel, getName, getState, isFailed, isNew, isNewOrStartingOrRunning, isRunning, isStarting, isStopping, isTerminated, setDescription, setEngine, setLabel, setName, shutdown, startup, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisFailed, isNew, isRunning, isStarting, isStopping, isTerminated, shutdown, startupgetDescription, getLabel, getName, setDescription, setLabel, setNamepublic DefaultStatisticsManager(SpongeEngine engine)
engine - the engine.public int getScheduledEventCount()
getScheduledEventCount in interface StatisticsManagerpublic int getActiveThreadCount()
getActiveThreadCount in interface StatisticsManagerpublic int getPluginCount()
getPluginCount in interface StatisticsManagerprotected String getEventSetProcessorsSummary(String label, List<? extends EventSetProcessorAdapterGroup> groups)
protected String getThreadPoolSummary(ThreadPool threadPool)
public Double getEventPerformance()
getEventPerformance in interface StatisticsManagerpublic String getMemorySummary()
public String getDecomposedQueueSummary(DecomposedQueueMainProcessingUnit mainProcessingUnit)
public String getSummary()
getSummary in interface StatisticsManagerpublic void startTimeMeasurementIfNotStartedYet()
startTimeMeasurementIfNotStartedYet in interface StatisticsManagerpublic void incrementTimeMeasurementEventCount()
incrementTimeMeasurementEventCount in interface StatisticsManagerpublic void clearTimeMeasurement()
clearTimeMeasurement in interface StatisticsManagerCopyright © 2016–2021 Softelnet. All rights reserved.