public class StatisticsManager extends Object
Modifier and Type | Method and Description |
---|---|
void |
addMultiStatistic(String statKey,
String groupName,
Statistic statistic) |
void |
addStatistic(String statKey,
Statistic definition)
Adds a stat to be tracked to the StatManager.
|
Set<Map.Entry<String,Statistic>> |
getAllStatistics()
Returns all statistics that the StatManager is tracking.
|
static StatisticsManager |
getInstance() |
String |
getMultistatGroup(String statKey) |
List<String> |
getStatGroup(String statGroup) |
Statistic |
getStatistic(String statKey)
Returns a statistic being tracked by the StatManager.
|
void |
removeStatistic(String statKey)
Removes a statistic from the server.
|
public static StatisticsManager getInstance()
public void addStatistic(String statKey, Statistic definition)
statKey
- the statistic key.definition
- the statistic to be tracked.public Statistic getStatistic(String statKey)
statKey
- The key of the definition.public void addMultiStatistic(String statKey, String groupName, Statistic statistic)
public Set<Map.Entry<String,Statistic>> getAllStatistics()
public void removeStatistic(String statKey)
statKey
- The key of the stat to be removed.Copyright © 2003-2008 Jive Software.