| |
|
| java.lang.Object org.jboss.services.loggingmonitor.MonitoredMBean
MonitoredMBean | class MonitoredMBean (Code) | | This class encapsulates the information necessary for monitoring an MBean.
author: James Wilson author: Dimitris Andreadis version: $Revision: 57210 $ |
Constructor Summary | |
public | MonitoredMBean(String objectName, String[] attributes, Logger logger) Constructor.
Parameters: objectName - this monitored MBean's object name. Parameters: attributes - the attributes of this MBean to monitor. Parameters: logger - the logger for this monitored MBean. |
Method Summary | |
public String[] | getAttributes() Retrieves the attributes of this monitored MBean. | public Logger | getLogger() Retrieves the logger for this monitored MBean. | public ObjectName | getObjectName() Retrieves the object name of this monitored MBean. | public void | logAttributes() Logs the attributes of this MBean that are being monitored. | public void | logFormat() Logs the format message for this monitored MBean. |
MonitoredMBean | public MonitoredMBean(String objectName, String[] attributes, Logger logger) throws MalformedObjectNameException(Code) | | Constructor.
Parameters: objectName - this monitored MBean's object name. Parameters: attributes - the attributes of this MBean to monitor. Parameters: logger - the logger for this monitored MBean. throws MalformedObjectNameException if the specified object nameis invalid. |
getAttributes | public String[] getAttributes()(Code) | | Retrieves the attributes of this monitored MBean.
this monitored MBean's attributes. |
getLogger | public Logger getLogger()(Code) | | Retrieves the logger for this monitored MBean.
this monitored MBean's logger. |
getObjectName | public ObjectName getObjectName()(Code) | | Retrieves the object name of this monitored MBean.
this monitored MBean's object name. |
logAttributes | public void logAttributes() throws Exception(Code) | | Logs the attributes of this MBean that are being monitored.
throws: JMException - if the retrieval of a MBean attribute causes such anexception. |
logFormat | public void logFormat()(Code) | | Logs the format message for this monitored MBean.
|
|
|
|