|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The monitor service MBean interface.
Method Summary | |
void |
addObservedObject(ObjectName object)
Add the object name of the MBean monitored. |
boolean |
containsObservedObject(ObjectName object)
Checks whether the object name is monitored. |
long |
getGranularityPeriod()
Retrieves the granularity period in milliseconds. |
String |
getObservedAttribute()
Retrieves the name of the attribute monitored. |
ObjectName |
getObservedObject()
Deprecated. use getObservedObjects() |
ObjectName[] |
getObservedObjects()
Retrieves the object names of the MBeans monitored. |
boolean |
isActive()
Tests whether this monitoring service is active. |
void |
removeObservedObject(ObjectName object)
Remove the object name of the MBean monitored. |
void |
setGranularityPeriod(long period)
Sets the granularity period in milliseconds. |
void |
setObservedAttribute(String attribute)
Sets the name of the attribute monitored. |
void |
setObservedObject(ObjectName object)
Deprecated. use addObservedObject(ObjectName) |
void |
start()
Starts the monitor. |
void |
stop()
Stops the monitor. |
Method Detail |
public void start()
public void stop()
public void addObservedObject(ObjectName object) throws IllegalArgumentException
object
- the object name.
IllegalArgumentException
public void removeObservedObject(ObjectName object)
object
- the object name.public boolean containsObservedObject(ObjectName object)
object
- the object name.
public ObjectName[] getObservedObjects()
public ObjectName getObservedObject()
getObservedObjects()
public void setObservedObject(ObjectName object)
addObservedObject(ObjectName)
The default value is null.
object
- the object name.public String getObservedAttribute()
public void setObservedAttribute(String attribute)
The default value is null.
attribute
- the attribute monitored.
IllegalArgumentException
- when the period is not positive.public long getGranularityPeriod()
The monitoring takes place once per granularity period.
public void setGranularityPeriod(long period) throws IllegalArgumentException
The monitoring takes place once per granularity period.
The default value is 10 seconds.
period
- the granularity period.
IllegalArgumentException
- when the period is not positive.public boolean isActive()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |