Package org.jivesoftware.openfire.stats
Class StatisticsManager
java.lang.Object
org.jivesoftware.openfire.stats.StatisticsManager
Stores statistics being tracked by the server.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddMultiStatistic(String statKey, String groupName, Statistic statistic) voidaddStatistic(String statKey, Statistic definition) Adds a stat to be tracked to the StatManager.Returns all statistics that the StatManager is tracking.static StatisticsManagergetMultistatGroup(String statKey) getStatGroup(String statGroup) getStatistic(String statKey) Returns a statistic being tracked by the StatManager.voidremoveStatistic(String statKey) Removes a statistic from the server.
-
Method Details
-
getInstance
-
addStatistic
Adds a stat to be tracked to the StatManager.- Parameters:
statKey- the statistic key.definition- the statistic to be tracked.
-
getStatistic
Returns a statistic being tracked by the StatManager.- Parameters:
statKey- The key of the definition.- Returns:
- Returns the related stat.
-
addMultiStatistic
-
getStatGroup
-
getMultistatGroup
-
getAllStatistics
Returns all statistics that the StatManager is tracking.- Returns:
- Returns all statistics that the StatManager is tracking.
-
removeStatistic
Removes a statistic from the server.- Parameters:
statKey- The key of the stat to be removed.
-