|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MonitorMBean
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 |
---|
void start()
void stop()
void addObservedObject(ObjectName object) throws IllegalArgumentException
object
- the object name.
IllegalArgumentException
void removeObservedObject(ObjectName object)
object
- the object name.boolean containsObservedObject(ObjectName object)
object
- the object name.
ObjectName[] getObservedObjects()
ObjectName getObservedObject()
getObservedObjects()
void setObservedObject(ObjectName object)
addObservedObject(ObjectName)
The default value is null.
object
- the object name.String getObservedAttribute()
void setObservedAttribute(String attribute)
The default value is null.
attribute
- the attribute monitored.
IllegalArgumentException
- when the period is not positive.long getGranularityPeriod()
The monitoring takes place once per granularity period.
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.boolean isActive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |