|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The IStatTree interface is common to all statistical counters.
All counters in the statistics counter tree are capable of being parents of other counters.
Method Summary | |
---|---|
StatTree |
getStat(java.lang.String n,
StatType type)
Retrieves a child counter. |
java.lang.String |
makeDefinition()
Creates the XML fragments that define this counter. |
java.lang.String |
makeObservation(long time)
Creates the XML fragments that constitute a sample for this counter. |
void |
setDescription(java.lang.String desc)
Sets the description field of the counter. |
Method Detail |
public void setDescription(java.lang.String desc)
desc
- the description string.public StatTree getStat(java.lang.String n, StatType type)
All counters are created by getStat()
. If a child counter of the same name and type
(StatType
already exists,
a reference to the existing counter is returned. Otherwise, a child counter is created.
n
- The name of the desired counter.type
- The type of the desired counter.
public java.lang.String makeDefinition()
Used for internal testing purposes only.
public java.lang.String makeObservation(long time)
Used for internal testing purposes only.
time
- The timestamp of the sample
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |