|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cnrg.itx.datax.Stats
Class to represent statistics. The Statistics are in the form of a
Constructor Summary | |
Stats()
Default constructor for the statistics object. |
Method Summary | |
void |
addStat(java.lang.String key,
java.lang.Object value)
Add a new stat. |
void |
clearStats()
Removes all stats from the database. |
java.lang.Object |
getStat(java.lang.String key)
Finds the value of a stat. |
Stats |
merge(Stats s)
Takes a stats object and merges it with the current object. |
java.util.Enumeration |
statKeys()
Returns an enumeration (of strings) of the various stat names that are in the Stats object. |
java.lang.String |
toString()
Method to get a string form of the statistics. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public Stats()
Method Detail |
public void addStat(java.lang.String key, java.lang.Object value)
key
- lookup namevalue
- The key's valuepublic java.lang.Object getStat(java.lang.String key)
key
- The loookup namepublic java.util.Enumeration statKeys()
public void clearStats()
public Stats merge(Stats s)
s
- Stats object to merge with.public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |