Method Summary |
|
public long | getGranularityPeriod() This method gets the granularity period (in milliseconds). |
public MBeanNotificationInfo[] | getNotificationInfo() This method returns a NotificationInfo object containing the name of the
Java class of the notification and the notification types sent by the
counter monitor. |
public String | getObservedAttribute() This method gets the name of the attribute being observed. |
public ObjectName | getObservedObject() This method gets the object name of the object being observed. |
public boolean | isActive() This method tests whether the monitor MBean is active. |
public void | postDeregister() This method allows the monitor MBean to perform any operations needed
after having been de-registered by the MBean server. |
public void | postRegister(Boolean registrationDone) This method allows the monitor MBean to perform any operations needed
after having been registered in the MBean server or after the
registration has failed. |
public void | preDeregister() This method allows the monitor MBean to perform any operations it needs
before being de-registered by the MBean server. |
public ObjectName | preRegister(MBeanServer server, ObjectName name) This method allows the monitor MBean to perform any operations it needs
before being registered in the MBean server.
Initializes the reference to the MBean server.
Parameters: server - - The MBean server in which the monitor MBean will be registered. Parameters: name - - The object name of the monitor MBean. |
public void | setGranularityPeriod(long period) This method sets the granularity period (in milliseconds). |
public void | setObservedAttribute(String attribute) This method sets the attribute being observed. |
public void | setObservedObject(ObjectName object) This method sets the object name of the object being observed.
Parameters: object - The ObjectName of the object to be observed. |
abstract public void | start() This method starts the monitor. |
abstract public void | stop() This method stops the monitor. |