edu.virginia.cs.mng.hypercast
Interface I_Stats
- All Known Subinterfaces:
- I_MulticastAdapter, I_Node, I_OverlaySocket, I_OverlaySocket_DT, I_OverlaySocket_HC, I_ServerAdapter, I_UnicastAdapter
- All Known Implementing Classes:
- MessageBuffer, OverlaySocketConfig, RS2, DT_Neighborhood
- public abstract interface I_Stats
This interface provide the statistic information for the object that implements it.
|
Method Summary |
java.lang.String[] |
getSchema()
Gets statistics description from an object which implements
this interface. |
java.lang.String |
getStats(java.lang.String name)
Gets statistics information from an object which implements this interface
(e.g. |
void |
setStats(java.lang.String name,
java.lang.String value)
Sets statistics information to an object which implements this interface
(e.g. |
getStats
public java.lang.String getStats(java.lang.String name)
throws StatsException
- Gets statistics information from an object which implements this interface
(e.g. getStats("Buffer.NumOfMessages") might return the string "15".)
- Throws:
- StatsException - if name does not exist.
setStats
public void setStats(java.lang.String name,
java.lang.String value)
throws StatsException
- Sets statistics information to an object which implements this interface
(e.g. setStats("Buffer.Size", "50").)
- Throws:
- StatsException - if name does not exist or is read-only, or if value does
not conform with expected format.
getSchema
public java.lang.String[] getSchema()
throws StatsException
- Gets statistics description from an object which implements
this interface. The returned array of strings should contain 3
strings. The first states what kinds of arguments are legal to
pass to
getStats. The second states what kinds of
arguments types of values are legal to pass to
setStats. The third string states what names and
values can be returned by getStats.
- Throws:
- StatsException - if child object does not correctly implement getSchema().