|
J2EE1.4 SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Monitoring MBeans which expose one or more
Statistic
implement this interface.
Each MonitoringStats MBean exposes Statistics as Attributes formed using the following pattern:
statistic-name_field-nameFor example, a CountStatistic names "Hosts" would generate the following Attributes:
The type of the Statistic will govern how many Attributes are generated, based on its actual fields, but every Statistic interface will have at least the Name, Description, Unit, StartTime and LastSampleTime fields present.
Note: These derived Attributes are not made available directly in the interface for the MBean; please refer to the documentation for each MonitoringStats MBean to determine which Statistics are available, and thus which derived Attributes available.
AMX
,
StdAttributesAccess
,
Util.getExtra(com.sun.appserv.management.base.AMX)
,
Extra
,
Statistic
Field Summary |
Fields inherited from interface com.sun.appserv.management.base.AMX |
FULL_TYPE_DELIM, GROUP_CONFIGURATION, GROUP_JSR77, GROUP_MONITORING, GROUP_OTHER, GROUP_UTILITY, J2EE_TYPE_KEY, NAME_KEY, NO_NAME, NULL_NAME |
Fields inherited from interface com.sun.appserv.management.base.AMXMBeanLogging |
LOG_RECORD_KEY, LOG_RECORD_NOTIFICATION_TYPE |
Method Summary | |
CompositeDataSupport |
getOpenStatistic(java.lang.String name)
Get a JSR 77 Statistic encoded as a standard serializable JMX OpenType. |
CompositeDataSupport[] |
getOpenStatistics(java.lang.String[] names)
Get JSR 77 Statistics encoded as a standard serializable JMX OpenTypes. |
CompositeDataSupport |
getOpenStats()
Get a JSR 77 Stats object encoded as a standard serializable JMX OpenType. |
Statistic |
getStatistic(java.lang.String name)
Get a specific JSR 77 Statistic. |
java.lang.String[] |
getStatisticNames()
Get the names of all available Statistics. |
Statistic[] |
getStatistics(java.lang.String[] names)
Get specific JSR 77 Statistics. |
Stats |
getStats()
Get a JSR 77 Stats object for all available statistics. |
java.lang.String |
getStatsInterfaceName()
|
boolean |
refresh()
Refresh any stale data. |
Methods inherited from interface com.sun.appserv.management.monitor.Monitoring |
getServerRootMonitor |
Methods inherited from interface com.sun.appserv.management.base.AMX |
getContainer, getDomainRoot, getFullType, getGroup, getJ2EEType, getName |
Methods inherited from interface com.sun.appserv.management.base.AMXMBeanLogging |
getMBeanEmitLogNotifications, getMBeanLoggerName, getMBeanLogLevel, setMBeanEmitLogNotifications, setMBeanLogLevel |
Methods inherited from interface javax.management.NotificationEmitter |
removeNotificationListener |
Methods inherited from interface javax.management.NotificationBroadcaster |
addNotificationListener, getNotificationInfo, removeNotificationListener |
Method Detail |
public Stats getStats()
public java.lang.String getStatsInterfaceName()
public Statistic getStatistic(java.lang.String name)
name
- the Statistic namepublic Statistic[] getStatistics(java.lang.String[] names)
names
- the Statistic names
public java.lang.String[] getStatisticNames()
public CompositeDataSupport getOpenStats()
public CompositeDataSupport getOpenStatistic(java.lang.String name)
name
- the Statistic namepublic CompositeDataSupport[] getOpenStatistics(java.lang.String[] names)
names
- the Statistic names
public boolean refresh()
|
J2EE1.4 SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2003 Sun Microsystems, Inc. All rights reserved.