Modifier and Type | Class and Description |
---|---|
private static class | Monitor.
Daemon thread factory used by the monitor executors. |
private class | Monitor.
MonitorTask nested class: This class implements the Runnable interface. |
pack-priv static enum | Monitor.
Enumeration used to keep trace of the derived gauge type in counter and gauge monitors. |
pack-priv static class | |
private class | Monitor.
SchedulerTask nested class: This class implements the Runnable interface. |
Modifier and Type | Field and Description |
---|---|
private volatile AccessControlContext | acc
References Deprecated
AccessControlContext is deprecated or references (maybe indirectly) at least one deprecated element.
|
protected int | alreadyNotified
Deprecated
equivalent to Monitor errors that have already been notified.
alreadyNotifieds [0].
|
protected int[] | alreadyNotifieds
Selected monitor errors that have already been notified. |
protected static final int | capacityIncrement
The amount by which the capacity of the monitor arrays are automatically incremented when their size becomes greater than their capacity. |
protected String | dbgTag
Deprecated
No replacement.
This field is retained for compatibility but should not be referenced.
|
protected int | elementCount
The number of valid components in the vector of observed objects. |
private static final Map | executors
Map containing the thread pool executor per thread group. |
private static final Object | executorsLock
Lock for executors map. |
private String | firstAttribute
First attribute name extracted from complex type attribute name. |
private long | granularityPeriod
Monitor granularity period (in milliseconds). |
pack-priv static final Integer | INTEGER_ZERO
Constant used to initialize all the numeric values. |
private boolean | isActive
Monitor state. |
private boolean | isComplexTypeAttribute
Complex type attribute flag. |
private static final int | maximumPoolSize
Maximum Pool Size |
private Future | monitorFuture
Future associated to the current monitor task. |
private static final AccessControlContext | noPermissionsACC
References Deprecated
AccessControlContext is deprecated or references (maybe indirectly) at least one deprecated element.
|
protected static final int | OBSERVED_ATTRIBUTE_ERROR_NOTIFIED
Flag denoting that a notification has occurred after changing the observed attribute. |
protected static final int | OBSERVED_ATTRIBUTE_TYPE_ERROR_NOTIFIED
Flag denoting that a notification has occurred after changing the observed object or the observed attribute. |
protected static final int | OBSERVED_OBJECT_ERROR_NOTIFIED
Flag denoting that a notification has occurred after changing the observed object. |
private String | observedAttribute
Attribute to observe. |
pack-priv final List | observedObjects
List of ObservedObjects to which the attribute to observe belongs. |
private final List | remainingAttributes
Remaining attribute names extracted from complex type attribute name. |
protected static final int | RESET_FLAGS_ALREADY_NOTIFIED
This flag is used to reset the |
protected static final int | RUNTIME_ERROR_NOTIFIED
Flag denoting that a notification has occurred after changing the observed object or the observed attribute. |
private static final ScheduledExecutorService | scheduler
Scheduler Service. |
private ScheduledFuture | schedulerFuture
ScheduledFuture associated to the current scheduler task. |
private final Monitor. | schedulerTask
Scheduler task to be executed by the Scheduler Service. |
private final AtomicLong | sequenceNumber
Monitor sequence number. |
protected MBeanServer | server
Reference to the MBean server. |
private volatile Subject | subject
Subject and possibly AccessControlContext of the Monitor.start() caller. |
pack-priv static final int | THRESHOLD_ERROR_NOTIFIED
Flag denoting that a notification has occurred after changing the threshold. |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public synchronized void | addObservedObject(ObjectName
The object to observe. object)Implements javax. Adds the specified object in the set of observed MBeans, if this object is not already present. |
pack-priv MonitorNotification | |
pack-priv String | |
pack-priv static Class | |
private synchronized void | |
private synchronized void | |
pack-priv synchronized int | computeAlreadyNotifiedIndex(Monitor.
Check if the |
public synchronized boolean | Returns: true if the specified object is present,
false otherwise.The object to check. object)Implements javax. Tests whether the specified object is in the set of observed MBeans. |
pack-priv synchronized void | |
pack-priv Monitor. | |
pack-priv void | |
pack-priv void | |
pack-priv Object | |
pack-priv Comparable | |
pack-priv synchronized Object | Returns: The derived gauge of the specified object.the name of the object whose derived gauge is to
be returned. object)Gets the derived gauge of the specified object, if this object is
contained in the set of observed MBeans, or |
pack-priv Comparable | |
pack-priv synchronized long | Returns: The derived gauge timestamp of the specified object.the name of the object whose derived gauge
timestamp is to be returned. object)Gets the derived gauge timestamp of the specified object, if
this object is contained in the set of observed MBeans, or
|
public synchronized long | Returns: The granularity period value.Implements javax. Gets the granularity period (in milliseconds). |
public synchronized String | Returns: The attribute being observed.Implements javax. Gets the attribute being observed. |
public synchronized ObjectName | Returns: The object being observed.Implements javax.
Deprecated
As of JMX 1.2, replaced by
getObservedObjects
Returns the object name of the first object in the set of observed
MBeans, or |
pack-priv synchronized Monitor. | Returns: TheObservedObject associated to the supplied
ObjectName .the name of the object)ObservedObject to retrieve.Get the specified |
public synchronized ObjectName[] | Returns: The objects being observed.Implements javax. Returns an array containing the objects being observed. |
public synchronized boolean | Returns: true if the monitor MBean is active,
false otherwise.Implements javax. Tests whether the monitor MBean is active. |
pack-priv synchronized boolean | isAlreadyNotified(Monitor.
Check if the given bits in the given element of |
pack-priv boolean | |
pack-priv boolean | |
pack-priv static boolean | |
private void | monitor(Monitor.
The observed object. o,This method is called by the monitor each time the granularity period has been exceeded. |
pack-priv void | |
public void | postDeregister()
Implements javax. Allows the monitor MBean to perform any operations needed after having been unregistered by the MBean server. |
public void | postRegister(Boolean
Indicates whether or not the MBean has
been successfully registered in the MBean server. The value
false means that the registration phase has failed. registrationDone)Implements javax. Allows the monitor MBean to perform any operations needed after having been registered in the MBean server or after the registration has failed. |
public void | preDeregister()
Implements javax. Allows the monitor MBean to perform any operations it needs before being unregistered by the MBean server. |
public ObjectName | Returns: The name of the monitor MBean registered.The MBean server in which the monitor MBean will
be registered. server, ObjectName The object name of the monitor MBean. name)Implements javax. Allows the monitor MBean to perform any operations it needs before being registered in the MBean server. |
public synchronized void | removeObservedObject(ObjectName
The object to remove. object)Implements javax. Removes the specified object from the set of observed MBeans. |
pack-priv synchronized void | resetAllAlreadyNotified(Monitor.
Reset all bits in the given element of |
pack-priv synchronized void | resetAlreadyNotified(Monitor.
Reset the given bits in the given element of |
private void | sendNotification(String
The notification type. type, long The notification emission date. timeStamp, String The notification message. msg, Object The derived gauge. derGauge, Object The threshold/string (depending on the monitor
type) that triggered off the notification. trigger, ObjectName The ObjectName of the observed object that triggered
off the notification. object, boolean Flag indicating if this monitor notification is
an error notification or an alarm notification. onError)This method is used by the monitor MBean to create and send a monitor notification to all the listeners registered for this kind of notification. |
pack-priv synchronized void | setAlreadyNotified(Monitor.
Set the given bits in the given element of |
public synchronized void | setGranularityPeriod(long
The granularity period value. period)Implements javax. Sets the granularity period (in milliseconds). |
public void | setObservedAttribute(String
The attribute to observe. attribute)Implements javax. Sets the attribute to observe. |
public synchronized void | setObservedObject(ObjectName
The object to observe. object)Implements javax.
Deprecated
As of JMX 1.2, replaced by
addObservedObject
Removes all objects from the set of observed objects, and then adds the specified object. |
public abstract void | |
public abstract void | |
pack-priv synchronized void | updateAlreadyNotified(Monitor.
Update the |
pack-priv synchronized void |