Class: javax.management.monitor.Monitor

Defines the part common to all monitor MBeans. A monitor MBean monitors values of an attribute common to a set of observed MBeans. The observed attribute is monitored at intervals specified by the granularity period. A gauge value (derived gauge) is derived from the values of the observed attribute.
Since:
@since 1.5

Methods

Fields

  • OBSERVED_ATTRIBUTE_ERROR_NOTIFIED

    static final protected int OBSERVED_ATTRIBUTE_ERROR_NOTIFIED = 2
    Flag denoting that a notification has occurred after changing the observed attribute. This flag is used to check that the new observed attribute belongs to the observed object at the time of the first notification.
  • OBSERVED_ATTRIBUTE_TYPE_ERROR_NOTIFIED

    static final protected int OBSERVED_ATTRIBUTE_TYPE_ERROR_NOTIFIED = 4
    Flag denoting that a notification has occurred after changing the observed object or the observed attribute. This flag is used to check that the observed attribute type is correct (depending on the monitor in use) at the time of the first notification.
  • OBSERVED_OBJECT_ERROR_NOTIFIED

    static final protected int OBSERVED_OBJECT_ERROR_NOTIFIED = 1
    Flag denoting that a notification has occurred after changing the observed object. This flag is used to check that the new observed object is registered in the MBean server at the time of the first notification.
  • RESET_FLAGS_ALREADY_NOTIFIED

    static final protected int RESET_FLAGS_ALREADY_NOTIFIED = 0
    This flag is used to reset the alreadyNotifieds monitor attribute.
  • RUNTIME_ERROR_NOTIFIED

    static final protected int RUNTIME_ERROR_NOTIFIED = 8
    Flag denoting that a notification has occurred after changing the observed object or the observed attribute. This flag is used to notify any exception (except the cases described above) when trying to get the value of the observed attribute at the time of the first notification.
  • alreadyNotified

    protected int alreadyNotified
    Monitor errors that have already been notified.
  • alreadyNotifieds

    protected int[] alreadyNotifieds

    Selected monitor errors that have already been notified.

    Each element in this array corresponds to an observed object in the vector. It contains a bit mask of the flags javax.management.monitor.Monitor.OBSERVED_OBJECT_ERROR_NOTIFIED etc, indicating whether the corresponding notification has already been sent for the MBean being monitored.

  • capacityIncrement

    static final protected int capacityIncrement = 16
    The amount by which the capacity of the monitor arrays are automatically incremented when their size becomes greater than their capacity.
  • dbgTag

    protected String dbgTag
    This field is retained for compatibility but should not be referenced.
  • elementCount

    protected int elementCount
    The number of valid components in the vector of observed objects.
  • server

    protected MBeanServer server
    Reference to the MBean server. This reference is null when the monitor MBean is not registered in an MBean server. This reference is initialized before the monitor MBean is registered in the MBean server.