javax.management.monitor
Class Monitor
java.lang.Object
|
+--javax.management.NotificationBroadcasterSupport
|
+--javax.management.monitor.Monitor
- All Implemented Interfaces:
- MBeanRegistration, MonitorMBean, NotificationBroadcaster
- Direct Known Subclasses:
- CounterMonitor, GaugeMonitor, StringMonitor
- public abstract class Monitor
- extends NotificationBroadcasterSupport
- implements MonitorMBean, MBeanRegistration
Class monitor. Parent class of all Monitoring classes
- Version:
- $Revision: 1.7 $
- Author:
- Carlos Quiroz
- See Also:
MonitorMBean
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Monitor
public Monitor()
start
public abstract void start()
- Specified by:
start in interface MonitorMBean
stop
public abstract void stop()
- Specified by:
stop in interface MonitorMBean
getObservedObject
public ObjectName getObservedObject()
- Specified by:
getObservedObject in interface MonitorMBean
setObservedObject
public void setObservedObject(ObjectName objectName)
throws java.lang.IllegalArgumentException
- Specified by:
setObservedObject in interface MonitorMBean
getObservedAttribute
public java.lang.String getObservedAttribute()
- Specified by:
getObservedAttribute in interface MonitorMBean
setObservedAttribute
public void setObservedAttribute(java.lang.String attribute)
throws java.lang.IllegalArgumentException
- Specified by:
setObservedAttribute in interface MonitorMBean
getGranularityPeriod
public long getGranularityPeriod()
- Specified by:
getGranularityPeriod in interface MonitorMBean
setGranularityPeriod
public void setGranularityPeriod(long period)
throws java.lang.IllegalArgumentException
- Specified by:
setGranularityPeriod in interface MonitorMBean
isActive
public boolean isActive()
- Specified by:
isActive in interface MonitorMBean
preRegister
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws java.lang.Exception
- Description copied from interface:
MBeanRegistration
- Allows the MBean to perform any operations before being registered
to the
MBeanServer.
Any exception will cause the MBean not being registered.
- Specified by:
preRegister in interface MBeanRegistration
- Following copied from interface:
javax.management.MBeanRegistration
- Parameters:
server - The MBeanServer on which the MBean will be registered.name - The ObjectName of the MBean.- Returns:
- ObjectName The name of the registered MBean
- Throws:
java.lang.Exception - Exception of the operation. Note that this is caught
by the MBeanServer and re-thrown as an
MBeanRegistrationException.
postRegister
public void postRegister(java.lang.Boolean registrationDone)
- Description copied from interface:
MBeanRegistration
- Called upon after a registration ( successful or not ).
- Specified by:
postRegister in interface MBeanRegistration
- Following copied from interface:
javax.management.MBeanRegistration
- Parameters:
registrationDone - Evaluates to true of the registrations
is successful, false otherwise.
preDeregister
public void preDeregister()
throws java.lang.Exception
- Description copied from interface:
MBeanRegistration
- Called upon before an
MBean will be de-registered by
the MBeanServer.
- Specified by:
preDeregister in interface MBeanRegistration
- Following copied from interface:
javax.management.MBeanRegistration
- Throws:
java.lang.Exception - Would be caught by the MBeanServer
and rethrown as an MBeanRegistrationException.
postDeregister
public void postDeregister()
- Description copied from interface:
MBeanRegistration
- Called upon after the MBean has been de-registered.
- Specified by:
postDeregister in interface MBeanRegistration
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2001-2002 MX4J Team. All Rights Reserved.