| Modifier and Type | Method and Description |
|---|---|
| public void | addObservedObject(ObjectName
The object to observe. object)Adds the specified object in the set of observed MBeans. |
| public boolean | Returns: true if the specified object is in the set, false otherwise.The object to check. object)Tests whether the specified object is in the set of observed MBeans. |
| public long | Returns: The granularity period.Gets the granularity period (in milliseconds). |
| public String | |
| public ObjectName | Returns: The object being observed.
Deprecated
As of JMX 1.2, replaced by
getObservedObjects
Gets the object name of the object being observed. |
| public ObjectName[] | Returns: The objects being observed.Returns an array containing the objects being observed. |
| public boolean | Returns: true if the monitor MBean is active, false otherwise.Tests if the monitor MBean is active. |
| public void | removeObservedObject(ObjectName
The object to remove. object)Removes the specified object from the set of observed MBeans. |
| public void | setGranularityPeriod(long
The granularity period. period)Sets the granularity period (in milliseconds). |
| public void | |
| public void | setObservedObject(ObjectName
The object to observe. object)
Deprecated
As of JMX 1.2, replaced by
addObservedObject
Sets the object to observe identified by its object name. |
| public void | |
| public void |
| addObservedObject | back to summary |
|---|---|
| public void addObservedObject(ObjectName object) throws IllegalArgumentException Adds the specified object in the set of observed MBeans.
| |
| containsObservedObject | back to summary |
|---|---|
| public boolean containsObservedObject(ObjectName object) Tests whether the specified object is in the set of observed MBeans.
| |
| getGranularityPeriod | back to summary |
|---|---|
| public long getGranularityPeriod() Gets the granularity period (in milliseconds).
| |
| getObservedAttribute | back to summary |
|---|---|
| public String getObservedAttribute() Gets the attribute being observed.
| |
| getObservedObject | back to summary |
|---|---|
| public ObjectName getObservedObject()
Deprecated As of JMX 1.2, replaced by Gets the object name of the object being observed.
| |
| getObservedObjects | back to summary |
|---|---|
| public ObjectName[] getObservedObjects() Returns an array containing the objects being observed.
| |
| isActive | back to summary |
|---|---|
| public boolean isActive() Tests if the monitor MBean is active.
A monitor MBean is marked active when the
| |
| removeObservedObject | back to summary |
|---|---|
| public void removeObservedObject(ObjectName object) Removes the specified object from the set of observed MBeans.
| |
| setGranularityPeriod | back to summary |
|---|---|
| public void setGranularityPeriod(long period) throws IllegalArgumentException Sets the granularity period (in milliseconds).
| |
| setObservedAttribute | back to summary |
|---|---|
| public void setObservedAttribute(String attribute) Sets the attribute to observe.
| |
| setObservedObject | back to summary |
|---|---|
| public void setObservedObject(ObjectName object)
Deprecated As of JMX 1.2, replaced by Sets the object to observe identified by its object name.
| |
| start | back to summary |
|---|---|
| public void start() Starts the monitor. | |
| stop | back to summary |
|---|---|
| public void stop() Stops the monitor. | |