|
|||||||||||
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 MonitorMBean
public abstract void stop()
stop
in interface MonitorMBean
public ObjectName getObservedObject()
getObservedObject
in interface MonitorMBean
public void setObservedObject(ObjectName objectName) throws java.lang.IllegalArgumentException
setObservedObject
in interface MonitorMBean
java.lang.IllegalArgumentException
public java.lang.String getObservedAttribute()
getObservedAttribute
in interface MonitorMBean
public void setObservedAttribute(java.lang.String attribute) throws java.lang.IllegalArgumentException
setObservedAttribute
in interface MonitorMBean
java.lang.IllegalArgumentException
public long getGranularityPeriod()
getGranularityPeriod
in interface MonitorMBean
public void setGranularityPeriod(long period) throws java.lang.IllegalArgumentException
setGranularityPeriod
in interface MonitorMBean
java.lang.IllegalArgumentException
public boolean isActive()
isActive
in interface MonitorMBean
public ObjectName preRegister(MBeanServer server, ObjectName name) throws java.lang.Exception
MBeanRegistration
MBeanServer
.
Any exception will cause the MBean not being registered.
preRegister
in interface MBeanRegistration
server
- 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 MBeanRegistration
registrationDone
- Evaluates to true of the registrations
is successful, false otherwise.public void preDeregister() throws java.lang.Exception
MBeanRegistration
MBean
will be de-registered by
the MBeanServer
.
preDeregister
in interface MBeanRegistration
java.lang.Exception
- Would be caught by the MBeanServer
and rethrown as an MBeanRegistrationException.public void postDeregister()
MBeanRegistration
postDeregister
in interface MBeanRegistration
public 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 |