public interface MonitorMBean
| Modifier and Type | Method and Description |
|---|---|
void |
addObservedObject(ObjectName
Adds the specified object in the set of observed MBeans.
|
boolean |
containsObservedObject(ObjectName
Tests whether the specified object is in the set of observed MBeans.
|
long |
getGranularityPeriod()
Gets the granularity period (in milliseconds).
|
String |
getObservedAttribute()
Gets the attribute being observed.
|
ObjectName |
getObservedObject()
Deprecated.
As of JMX 1.2, replaced by
getObservedObjects()
|
ObjectName |
getObservedObjects()
Returns an array containing the objects being observed.
|
boolean |
isActive()
Tests if the monitor MBean is active.
|
void |
removeObservedObject(ObjectName
Removes the specified object from the set of observed MBeans.
|
void |
setGranularityPeriod(long period)
Sets the granularity period (in milliseconds).
|
void |
setObservedAttribute(String
Sets the attribute to observe.
|
void |
setObservedObject(ObjectName
Deprecated.
As of JMX 1.2, replaced by
addObservedObject(javax.management.ObjectName)
|
void |
start()
Starts the monitor.
|
void |
stop()
Stops the monitor.
|
void start()
void stop()
void addObservedObject(ObjectNameobject) throws IllegalArgumentException
object - The object to observe.
IllegalArgumentException - the specified object is null.
void removeObservedObject(ObjectNameobject)
object - The object to remove.
boolean containsObservedObject(ObjectNameobject)
object - The object to check.
true if the specified object is in the set,
false otherwise.
ObjectName[] getObservedObjects()
@Deprecated ObjectNamegetObservedObject()
getObservedObjects()
setObservedObject(javax.management.ObjectName)
@Deprecated void setObservedObject(ObjectNameobject)
addObservedObject(javax.management.ObjectName)
object - The object to observe.
getObservedObject()
StringgetObservedAttribute()
setObservedAttribute(java.lang.String)
void setObservedAttribute(Stringattribute)
attribute - The attribute to observe.
getObservedAttribute()
long getGranularityPeriod()
setGranularityPeriod(long)
void setGranularityPeriod(long period)
throws IllegalArgumentException
period - The granularity period.
IllegalArgumentException - The granularity period is less than or equal to zero.
getGranularityPeriod()