FileDocCategorySizeDatePackage
StatsHolderMBean.javaAPI DocGlassfish v2 API4749Fri May 04 22:24:20 BST 2007com.sun.enterprise.admin.monitor.registry.spi

StatsHolderMBean

public interface StatsHolderMBean
Provides the management interface for a StatsHolder that represents a node in the arbitrary monitoring node hierarchy. It is purposely separated from the {@link javax.management.DynamicMBean} because the implementing class may use a Standard MBean instead, to get various attributes.
author
Kedar Mhaswade
since
S1AS8.0
version
$Revision: 1.4 $

Fields Summary
Constructors Summary
Methods Summary
public javax.management.ObjectName[]getChildren()
Returns the {@link javax.management.ObjectName}s of all the children of associated {@link com.sun.enterprise.admin.monitor.registry.StatsHolder} in an arbitrary hierarchy. A management application should be able to build a hierarchical view using on this method. Implementing class should always return an empty array in case there are no children.

return
an array of ObjectNames representing this StatsHolder's children

public java.lang.StringgetName()
Returns the name of the StatsHolder node, that the MBean is exposing This usually refers to a specific name such as HelloWorldServlet or the name of the MonitoredObjectType such as TransactionService, when a specific name does not exist. Does not return a null.

see
com.sun.enterprise.admin.monitor.registry.MonitoredObjectType
return
name of the node

public java.lang.String[]getStatisticNames()
Returns an array containing the names of the Statistics, for a given Stats object

return
array of statistic names

public javax.management.j2ee.statistics.Statistic[]getStatistics()
Returns the result of executing the getXXX methods on the associated Stats object. The result is an array of serialized Statistic objects.

return
array of Statistic objects

public java.lang.StringgetType()
Returns the type of the StatsHolder Node. This refers to one of several monitored object types, such as ejb-methods, bean-pool. Does not return a null.

see
com.sun.enterprise.admin.monitor.registry.MonitoredObjectType
return
type of the node