|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StatsHolder
Provides the ability to associate various j2ee components and sub components in a hierarchical tree. Holds references to underlying Stats objects. On instantiation, the Stats object is converted to a DynamicMBean instance. When monitoring level is changed from OFF to LOW or HIGH, the MBean is registered with an MBeanServer. Calls made to the MBean are delegated to this object which in turn delegates it to underlying Stats object.
| Method Summary | |
|---|---|
StatsHolder |
addChild(String name,
MonitoredObjectType type)
Add a child node or leaf to this node. |
Collection |
getAllChildren()
return an array of StatHolder objects each representing a child of this node. |
StatsHolder |
getChild(String name)
|
String |
getDottedName()
Gets the hierarchically denoted dotted name for this node. |
String |
getName()
Returns name of this hierarchical node |
ObjectName |
getObjectName()
Gets the ObjectName pertaining to the MBean for this node. |
Stats |
getStats()
|
Class |
getStatsClass()
|
String |
getStatsClassName()
|
MonitoredObjectType |
getType()
Returns type of this hierarchical node |
void |
registerMBean()
Registers a monitoring MBean with the MBeanServer |
void |
removeAllChildren()
removes all children belonging to this node. |
void |
removeChild(String name)
|
void |
setDottedName(String dottedName)
Sets the hierarchically denoted dotted name for this node. |
void |
setObjectName(ObjectName name)
Sets the ObjectName pertaining to the MBean for this node. |
void |
setStats(Stats stats)
sets this hierarchical node's associated stats object. |
void |
setStatsClass(Class c)
|
void |
setStatsClassName(String cName)
|
void |
setType(MonitoredObjectType type)
|
void |
unregisterMBean()
Unregisters a monitoring MBean from the MBean Server |
| Method Detail |
|---|
StatsHolder addChild(String name,
MonitoredObjectType type)
statsHolder - Collection getAllChildren()
void removeAllChildren()
String getName()
MonitoredObjectType getType()
void setStats(Stats stats)
Stats getStats()
void setStatsClass(Class c)
Class getStatsClass()
void setStatsClassName(String cName)
String getStatsClassName()
void setObjectName(ObjectName name)
ObjectName getObjectName()
void setDottedName(String dottedName)
String getDottedName()
void registerMBean()
void unregisterMBean()
void setType(MonitoredObjectType type)
StatsHolder getChild(String name)
void removeChild(String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||