|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MonitoringStats
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, JMX_DOMAIN, NAME_KEY, NO_NAME, NOTIFICATION_PREFIX, NULL_NAME |
Method Summary | |
---|---|
CompositeDataSupport |
getOpenStatistic(String name)
Get a JSR 77 Statistic encoded as a standard serializable JMX OpenType. |
CompositeDataSupport[] |
getOpenStatistics(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(String name)
Get a specific JSR 77 Statistic. |
String[] |
getStatisticNames()
Get the names of all available Statistics. |
Statistic[] |
getStatistics(String[] names)
Get specific JSR 77 Statistics. |
Stats |
getStats()
Get a JSR 77 Stats object for all available statistics. |
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, isDAS |
Methods inherited from interface javax.management.NotificationEmitter |
---|
removeNotificationListener |
Methods inherited from interface javax.management.NotificationBroadcaster |
---|
addNotificationListener, getNotificationInfo, removeNotificationListener |
Methods inherited from interface com.sun.appserv.management.base.AMXMBeanLogging |
---|
getMBeanLoggerName, getMBeanLogLevel, setMBeanLogLevel |
Method Detail |
---|
Stats getStats()
String getStatsInterfaceName()
Statistic getStatistic(String name)
name
- the Statistic nameStatistic[] getStatistics(String[] names)
names
- the Statistic names
String[] getStatisticNames()
CompositeDataSupport getOpenStats()
CompositeDataSupport getOpenStatistic(String name)
name
- the Statistic nameCompositeDataSupport[] getOpenStatistics(String[] names)
names
- the Statistic names
boolean refresh()
|
Java EE 5 SDK | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2006 Sun Microsystems, Inc. All rights reserved.