|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javax.management.NotificationBroadcasterSupport
|
+--javax.management.monitor.Monitor
Class monitor. Parent class of all Monitoring classes
MonitorMBean| Constructor Summary | |
Monitor()
|
|
| Method Summary | |
long |
getGranularityPeriod()
|
java.lang.String |
getObservedAttribute()
|
ObjectName |
getObservedObject()
|
boolean |
isActive()
|
void |
postDeregister()
Called upon after the MBean has been de-registered. |
void |
postRegister(java.lang.Boolean registrationDone)
Called upon after a registration ( successful or not ). |
void |
preDeregister()
Called upon before an MBean will be de-registered by
the MBeanServer. |
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
Allows the MBean to perform any operations before being registered to the MBeanServer.
|
void |
setGranularityPeriod(long period)
|
void |
setObservedAttribute(java.lang.String attribute)
|
void |
setObservedObject(ObjectName objectName)
|
abstract void |
start()
|
abstract void |
stop()
|
java.lang.String |
toString()
|
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
addNotificationListener, getNotificationInfo, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Monitor()
| Method Detail |
public abstract void start()
start in interface MonitorMBeanpublic abstract void stop()
stop in interface MonitorMBeanpublic ObjectName getObservedObject()
getObservedObject in interface MonitorMBean
public void setObservedObject(ObjectName objectName)
throws java.lang.IllegalArgumentException
setObservedObject in interface MonitorMBeanjava.lang.IllegalArgumentExceptionpublic java.lang.String getObservedAttribute()
getObservedAttribute in interface MonitorMBean
public void setObservedAttribute(java.lang.String attribute)
throws java.lang.IllegalArgumentException
setObservedAttribute in interface MonitorMBeanjava.lang.IllegalArgumentExceptionpublic long getGranularityPeriod()
getGranularityPeriod in interface MonitorMBean
public void setGranularityPeriod(long period)
throws java.lang.IllegalArgumentException
setGranularityPeriod in interface MonitorMBeanjava.lang.IllegalArgumentExceptionpublic boolean isActive()
isActive in interface MonitorMBean
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws java.lang.Exception
MBeanRegistrationMBeanServer.
Any exception will cause the MBean not being registered.
preRegister in interface MBeanRegistrationserver - The MBeanServer on which the MBean will be registered.name - The ObjectName of the MBean.
java.lang.Exception - Exception of the operation. Note that this is caught
by the MBeanServer and re-thrown as an
MBeanRegistrationException.public void postRegister(java.lang.Boolean registrationDone)
MBeanRegistration
postRegister in interface MBeanRegistrationregistrationDone - Evaluates to true of the registrations
is successful, false otherwise.
public void preDeregister()
throws java.lang.Exception
MBeanRegistrationMBean will be de-registered by
the MBeanServer.
preDeregister in interface MBeanRegistrationjava.lang.Exception - Would be caught by the MBeanServer
and rethrown as an MBeanRegistrationException.public void postDeregister()
MBeanRegistration
postDeregister in interface MBeanRegistrationpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||