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