FileDocCategorySizeDatePackage
StatsHolder.javaAPI DocGlassfish v2 API5224Fri May 04 22:25:46 BST 2007com.sun.enterprise.admin.monitor.registry

StatsHolder

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.
author
Shreedhar Ganapathy

Fields Summary
Constructors Summary
Methods Summary
public com.sun.enterprise.admin.monitor.registry.StatsHolderaddChild(java.lang.String name, MonitoredObjectType type)
Add a child node or leaf to this node.

param
statsHolder

public java.util.CollectiongetAllChildren()
return an array of StatHolder objects each representing a child of this node.

return
Collection

public com.sun.enterprise.admin.monitor.registry.StatsHoldergetChild(java.lang.String name)

public java.lang.StringgetDottedName()
Gets the hierarchically denoted dotted name for this node.

public java.lang.StringgetName()
Returns name of this hierarchical node

public javax.management.ObjectNamegetObjectName()
Gets the ObjectName pertaining to the MBean for this node.

public javax.management.j2ee.statistics.StatsgetStats()

public java.lang.ClassgetStatsClass()

public java.lang.StringgetStatsClassName()

public MonitoredObjectTypegetType()
Returns type of this hierarchical node

public voidregisterMBean()
Registers a monitoring MBean with the MBeanServer

public voidremoveAllChildren()
removes all children belonging to this node.

public voidremoveChild(java.lang.String name)

public voidsetDottedName(java.lang.String dottedName)
Sets the hierarchically denoted dotted name for this node.

public voidsetObjectName(javax.management.ObjectName name)
Sets the ObjectName pertaining to the MBean for this node.

public voidsetStats(javax.management.j2ee.statistics.Stats stats)
sets this hierarchical node's associated stats object. Used when node was originally created without a Stats implementation or a new monitoring level has been set requiring a new Stats registration

public voidsetStatsClass(java.lang.Class c)

public voidsetStatsClassName(java.lang.String cName)

public voidsetType(MonitoredObjectType type)

public voidunregisterMBean()
Unregisters a monitoring MBean from the MBean Server