javax.management.monitor
Class CounterMonitor

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.management.NotificationBroadcasterSupport sample code for javax.management.NotificationBroadcasterSupport definition code for javax.management.NotificationBroadcasterSupport 
      extended by javax.management.monitor.Monitor sample code for javax.management.monitor.Monitor definition code for javax.management.monitor.Monitor 
          extended by javax.management.monitor.CounterMonitor
All Implemented Interfaces:
MBeanRegistration sample code for javax.management.MBeanRegistration definition code for javax.management.MBeanRegistration , CounterMonitorMBean sample code for javax.management.monitor.CounterMonitorMBean definition code for javax.management.monitor.CounterMonitorMBean , MonitorMBean sample code for javax.management.monitor.MonitorMBean definition code for javax.management.monitor.MonitorMBean , NotificationBroadcaster sample code for javax.management.NotificationBroadcaster definition code for javax.management.NotificationBroadcaster , NotificationEmitter sample code for javax.management.NotificationEmitter definition code for javax.management.NotificationEmitter

public class CounterMonitor
extends Monitor sample code for javax.management.monitor.Monitor definition code for javax.management.monitor.Monitor
implements CounterMonitorMBean sample code for javax.management.monitor.CounterMonitorMBean definition code for javax.management.monitor.CounterMonitorMBean

Defines a monitor MBean designed to observe the values of a counter attribute.

A counter monitor sends a threshold notification sample code for javax.management.monitor.MonitorNotification.THRESHOLD_VALUE_EXCEEDED definition code for javax.management.monitor.MonitorNotification.THRESHOLD_VALUE_EXCEEDED when the value of the counter reaches or exceeds a threshold known as the comparison level. The notify flag must be set to true.

In addition, an offset mechanism enables particular counting intervals to be detected. If the offset value is not zero, whenever the threshold is triggered by the counter value reaching a comparison level, that comparison level is incremented by the offset value. This is regarded as taking place instantaneously, that is, before the count is incremented. Thus, for each level, the threshold triggers an event notification every time the count increases by an interval equal to the offset value.

If the counter can wrap around its maximum value, the modulus needs to be specified. The modulus is the value at which the counter is reset to zero.

If the counter difference mode is used, the value of the derived gauge is calculated as the difference between the observed counter values for two successive observations. If this difference is negative, the value of the derived gauge is incremented by the value of the modulus. The derived gauge value (V[t]) is calculated using the following method:

This implementation of the counter monitor requires the observed attribute to be of the type integer (Byte, Integer, Short, Long).

Since:
1.5

Field Summary
 
Fields inherited from class javax.management.monitor.Monitor sample code for javax.management.monitor.Monitor definition code for javax.management.monitor.Monitor
alreadyNotified sample code for javax.management.monitor.Monitor.alreadyNotified definition code for javax.management.monitor.Monitor.alreadyNotified , alreadyNotifieds sample code for javax.management.monitor.Monitor.alreadyNotifieds definition code for javax.management.monitor.Monitor.alreadyNotifieds , capacityIncrement sample code for javax.management.monitor.Monitor.capacityIncrement definition code for javax.management.monitor.Monitor.capacityIncrement , dbgTag sample code for javax.management.monitor.Monitor.dbgTag definition code for javax.management.monitor.Monitor.dbgTag , elementCount sample code for javax.management.monitor.Monitor.elementCount definition code for javax.management.monitor.Monitor.elementCount , OBSERVED_ATTRIBUTE_ERROR_NOTIFIED sample code for javax.management.monitor.Monitor.OBSERVED_ATTRIBUTE_ERROR_NOTIFIED definition code for javax.management.monitor.Monitor.OBSERVED_ATTRIBUTE_ERROR_NOTIFIED , OBSERVED_ATTRIBUTE_TYPE_ERROR_NOTIFIED sample code for javax.management.monitor.Monitor.OBSERVED_ATTRIBUTE_TYPE_ERROR_NOTIFIED definition code for javax.management.monitor.Monitor.OBSERVED_ATTRIBUTE_TYPE_ERROR_NOTIFIED , OBSERVED_OBJECT_ERROR_NOTIFIED sample code for javax.management.monitor.Monitor.OBSERVED_OBJECT_ERROR_NOTIFIED definition code for javax.management.monitor.Monitor.OBSERVED_OBJECT_ERROR_NOTIFIED , RESET_FLAGS_ALREADY_NOTIFIED sample code for javax.management.monitor.Monitor.RESET_FLAGS_ALREADY_NOTIFIED definition code for javax.management.monitor.Monitor.RESET_FLAGS_ALREADY_NOTIFIED , RUNTIME_ERROR_NOTIFIED sample code for javax.management.monitor.Monitor.RUNTIME_ERROR_NOTIFIED definition code for javax.management.monitor.Monitor.RUNTIME_ERROR_NOTIFIED , server sample code for javax.management.monitor.Monitor.server definition code for javax.management.monitor.Monitor.server
 
Constructor Summary
CounterMonitor sample code for javax.management.monitor.CounterMonitor.CounterMonitor() definition code for javax.management.monitor.CounterMonitor.CounterMonitor() ()
          Default constructor.
 
Method Summary
 Number sample code for java.lang.Number definition code for java.lang.Number getDerivedGauge sample code for javax.management.monitor.CounterMonitor.getDerivedGauge() definition code for javax.management.monitor.CounterMonitor.getDerivedGauge() ()
          Deprecated. As of JMX 1.2, replaced by getDerivedGauge(ObjectName) sample code for javax.management.monitor.CounterMonitor.getDerivedGauge(javax.management.ObjectName) definition code for javax.management.monitor.CounterMonitor.getDerivedGauge(javax.management.ObjectName)
 Number sample code for java.lang.Number definition code for java.lang.Number getDerivedGauge sample code for javax.management.monitor.CounterMonitor.getDerivedGauge(javax.management.ObjectName) definition code for javax.management.monitor.CounterMonitor.getDerivedGauge(javax.management.ObjectName) (ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  object)
          Gets the derived gauge of the specified object, if this object is contained in the set of observed MBeans, or null otherwise.
 long getDerivedGaugeTimeStamp sample code for javax.management.monitor.CounterMonitor.getDerivedGaugeTimeStamp() definition code for javax.management.monitor.CounterMonitor.getDerivedGaugeTimeStamp() ()
          Deprecated. As of JMX 1.2, replaced by getDerivedGaugeTimeStamp(ObjectName) sample code for javax.management.monitor.CounterMonitor.getDerivedGaugeTimeStamp(javax.management.ObjectName) definition code for javax.management.monitor.CounterMonitor.getDerivedGaugeTimeStamp(javax.management.ObjectName)
 long getDerivedGaugeTimeStamp sample code for javax.management.monitor.CounterMonitor.getDerivedGaugeTimeStamp(javax.management.ObjectName) definition code for javax.management.monitor.CounterMonitor.getDerivedGaugeTimeStamp(javax.management.ObjectName) (ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  object)
          Gets the derived gauge timestamp of the specified object, if this object is contained in the set of observed MBeans, or null otherwise.
 boolean getDifferenceMode sample code for javax.management.monitor.CounterMonitor.getDifferenceMode() definition code for javax.management.monitor.CounterMonitor.getDifferenceMode() ()
          Gets the difference mode flag value common to all observed MBeans.
 Number sample code for java.lang.Number definition code for java.lang.Number getInitThreshold sample code for javax.management.monitor.CounterMonitor.getInitThreshold() definition code for javax.management.monitor.CounterMonitor.getInitThreshold() ()
          Gets the initial threshold value common to all observed objects.
 Number sample code for java.lang.Number definition code for java.lang.Number getModulus sample code for javax.management.monitor.CounterMonitor.getModulus() definition code for javax.management.monitor.CounterMonitor.getModulus() ()
          Gets the modulus value common to all observed MBeans.
 MBeanNotificationInfo sample code for javax.management.MBeanNotificationInfo definition code for javax.management.MBeanNotificationInfo [] getNotificationInfo sample code for javax.management.monitor.CounterMonitor.getNotificationInfo() definition code for javax.management.monitor.CounterMonitor.getNotificationInfo() ()
          Returns a NotificationInfo object containing the name of the Java class of the notification and the notification types sent by the counter monitor.
 boolean getNotify sample code for javax.management.monitor.CounterMonitor.getNotify() definition code for javax.management.monitor.CounterMonitor.getNotify() ()
          Gets the notification's on/off switch value common to all observed MBeans.
 Number sample code for java.lang.Number definition code for java.lang.Number getOffset sample code for javax.management.monitor.CounterMonitor.getOffset() definition code for javax.management.monitor.CounterMonitor.getOffset() ()
          Gets the offset value common to all observed MBeans.
 Number sample code for java.lang.Number definition code for java.lang.Number getThreshold sample code for javax.management.monitor.CounterMonitor.getThreshold() definition code for javax.management.monitor.CounterMonitor.getThreshold() ()
          Deprecated. As of JMX 1.2, replaced by getThreshold(ObjectName) sample code for javax.management.monitor.CounterMonitor.getThreshold(javax.management.ObjectName) definition code for javax.management.monitor.CounterMonitor.getThreshold(javax.management.ObjectName)
 Number sample code for java.lang.Number definition code for java.lang.Number getThreshold sample code for javax.management.monitor.CounterMonitor.getThreshold(javax.management.ObjectName) definition code for javax.management.monitor.CounterMonitor.getThreshold(javax.management.ObjectName) (ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  object)
          Gets the current threshold value of the specified object, if this object is contained in the set of observed MBeans, or null otherwise.
 void preDeregister sample code for javax.management.monitor.CounterMonitor.preDeregister() definition code for javax.management.monitor.CounterMonitor.preDeregister() ()
          Allows the counter monitor MBean to perform any operations it needs before being unregistered by the MBean server.
 void setDifferenceMode sample code for javax.management.monitor.CounterMonitor.setDifferenceMode(boolean) definition code for javax.management.monitor.CounterMonitor.setDifferenceMode(boolean) (boolean value)
          Sets the difference mode flag value common to all observed MBeans.
 void setGranularityPeriod sample code for javax.management.monitor.CounterMonitor.setGranularityPeriod(long) definition code for javax.management.monitor.CounterMonitor.setGranularityPeriod(long) (long period)
          Sets the granularity period (in milliseconds).
 void setInitThreshold sample code for javax.management.monitor.CounterMonitor.setInitThreshold(java.lang.Number) definition code for javax.management.monitor.CounterMonitor.setInitThreshold(java.lang.Number) (Number sample code for java.lang.Number definition code for java.lang.Number  value)
          Sets the initial threshold value common to all observed objects.
 void setModulus sample code for javax.management.monitor.CounterMonitor.setModulus(java.lang.Number) definition code for javax.management.monitor.CounterMonitor.setModulus(java.lang.Number) (Number sample code for java.lang.Number definition code for java.lang.Number  value)
          Sets the modulus value common to all observed MBeans.
 void setNotify sample code for javax.management.monitor.CounterMonitor.setNotify(boolean) definition code for javax.management.monitor.CounterMonitor.setNotify(boolean) (boolean value)
          Sets the notification's on/off switch value common to all observed MBeans.
 void setOffset sample code for javax.management.monitor.CounterMonitor.setOffset(java.lang.Number) definition code for javax.management.monitor.CounterMonitor.setOffset(java.lang.Number) (Number sample code for java.lang.Number definition code for java.lang.Number  value)
          Sets the offset value common to all observed MBeans.
 void setThreshold sample code for javax.management.monitor.CounterMonitor.setThreshold(java.lang.Number) definition code for javax.management.monitor.CounterMonitor.setThreshold(java.lang.Number) (Number sample code for java.lang.Number definition code for java.lang.Number  value)
          Deprecated. As of JMX 1.2, replaced by setInitThreshold(java.lang.Number) sample code for javax.management.monitor.CounterMonitor.setInitThreshold(java.lang.Number) definition code for javax.management.monitor.CounterMonitor.setInitThreshold(java.lang.Number)
 void start sample code for javax.management.monitor.CounterMonitor.start() definition code for javax.management.monitor.CounterMonitor.start() ()
          Starts the counter monitor.
 void stop sample code for javax.management.monitor.CounterMonitor.stop() definition code for javax.management.monitor.CounterMonitor.stop() ()
          Stops the counter monitor.
 
Methods inherited from class javax.management.monitor.Monitor sample code for javax.management.monitor.Monitor definition code for javax.management.monitor.Monitor
addObservedObject sample code for javax.management.monitor.Monitor.addObservedObject(javax.management.ObjectName) definition code for javax.management.monitor.Monitor.addObservedObject(javax.management.ObjectName) , containsObservedObject sample code for javax.management.monitor.Monitor.containsObservedObject(javax.management.ObjectName) definition code for javax.management.monitor.Monitor.containsObservedObject(javax.management.ObjectName) , getGranularityPeriod sample code for javax.management.monitor.Monitor.getGranularityPeriod() definition code for javax.management.monitor.Monitor.getGranularityPeriod() , getObservedAttribute sample code for javax.management.monitor.Monitor.getObservedAttribute() definition code for javax.management.monitor.Monitor.getObservedAttribute() , getObservedObject sample code for javax.management.monitor.Monitor.getObservedObject() definition code for javax.management.monitor.Monitor.getObservedObject() , getObservedObjects sample code for javax.management.monitor.Monitor.getObservedObjects() definition code for javax.management.monitor.Monitor.getObservedObjects() , isActive sample code for javax.management.monitor.Monitor.isActive() definition code for javax.management.monitor.Monitor.isActive() , postDeregister sample code for javax.management.monitor.Monitor.postDeregister() definition code for javax.management.monitor.Monitor.postDeregister() , postRegister sample code for javax.management.monitor.Monitor.postRegister(java.lang.Boolean) definition code for javax.management.monitor.Monitor.postRegister(java.lang.Boolean) , preRegister sample code for javax.management.monitor.Monitor.preRegister(javax.management.MBeanServer, javax.management.ObjectName) definition code for javax.management.monitor.Monitor.preRegister(javax.management.MBeanServer, javax.management.ObjectName) , removeObservedObject sample code for javax.management.monitor.Monitor.removeObservedObject(javax.management.ObjectName) definition code for javax.management.monitor.Monitor.removeObservedObject(javax.management.ObjectName) , setObservedAttribute sample code for javax.management.monitor.Monitor.setObservedAttribute(java.lang.String) definition code for javax.management.monitor.Monitor.setObservedAttribute(java.lang.String) , setObservedObject sample code for javax.management.monitor.Monitor.setObservedObject(javax.management.ObjectName) definition code for javax.management.monitor.Monitor.setObservedObject(javax.management.ObjectName)
 
Methods inherited from class javax.management.NotificationBroadcasterSupport sample code for javax.management.NotificationBroadcasterSupport definition code for javax.management.NotificationBroadcasterSupport
addNotificationListener sample code for javax.management.NotificationBroadcasterSupport.addNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object) definition code for javax.management.NotificationBroadcasterSupport.addNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object) , handleNotification sample code for javax.management.NotificationBroadcasterSupport.handleNotification(javax.management.NotificationListener, javax.management.Notification, java.lang.Object) definition code for javax.management.NotificationBroadcasterSupport.handleNotification(javax.management.NotificationListener, javax.management.Notification, java.lang.Object) , removeNotificationListener sample code for javax.management.NotificationBroadcasterSupport.removeNotificationListener(javax.management.NotificationListener) definition code for javax.management.NotificationBroadcasterSupport.removeNotificationListener(javax.management.NotificationListener) , removeNotificationListener sample code for javax.management.NotificationBroadcasterSupport.removeNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object) definition code for javax.management.NotificationBroadcasterSupport.removeNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object) , sendNotification sample code for javax.management.NotificationBroadcasterSupport.sendNotification(javax.management.Notification) definition code for javax.management.NotificationBroadcasterSupport.sendNotification(javax.management.Notification)
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 
Methods inherited from interface javax.management.monitor.MonitorMBean sample code for javax.management.monitor.MonitorMBean definition code for javax.management.monitor.MonitorMBean
addObservedObject sample code for javax.management.monitor.MonitorMBean.addObservedObject(javax.management.ObjectName) definition code for javax.management.monitor.MonitorMBean.addObservedObject(javax.management.ObjectName) , containsObservedObject sample code for javax.management.monitor.MonitorMBean.containsObservedObject(javax.management.ObjectName) definition code for javax.management.monitor.MonitorMBean.containsObservedObject(javax.management.ObjectName) , getGranularityPeriod sample code for javax.management.monitor.MonitorMBean.getGranularityPeriod() definition code for javax.management.monitor.MonitorMBean.getGranularityPeriod() , getObservedAttribute sample code for javax.management.monitor.MonitorMBean.getObservedAttribute() definition code for javax.management.monitor.MonitorMBean.getObservedAttribute() , getObservedObject sample code for javax.management.monitor.MonitorMBean.getObservedObject() definition code for javax.management.monitor.MonitorMBean.getObservedObject() , getObservedObjects sample code for javax.management.monitor.MonitorMBean.getObservedObjects() definition code for javax.management.monitor.MonitorMBean.getObservedObjects() , isActive sample code for javax.management.monitor.MonitorMBean.isActive() definition code for javax.management.monitor.MonitorMBean.isActive() , removeObservedObject sample code for javax.management.monitor.MonitorMBean.removeObservedObject(javax.management.ObjectName) definition code for javax.management.monitor.MonitorMBean.removeObservedObject(javax.management.ObjectName) , setObservedAttribute sample code for javax.management.monitor.MonitorMBean.setObservedAttribute(java.lang.String) definition code for javax.management.monitor.MonitorMBean.setObservedAttribute(java.lang.String) , setObservedObject sample code for javax.management.monitor.MonitorMBean.setObservedObject(javax.management.ObjectName) definition code for javax.management.monitor.MonitorMBean.setObservedObject(javax.management.ObjectName)
 

Constructor Detail

CounterMonitor sample code for javax.management.monitor.CounterMonitor() definition code for javax.management.monitor.CounterMonitor()

public CounterMonitor()
Default constructor.

Method Detail

preDeregister sample code for javax.management.monitor.CounterMonitor.preDeregister() definition code for javax.management.monitor.CounterMonitor.preDeregister()

public void preDeregister()
                   throws Exception sample code for java.lang.Exception definition code for java.lang.Exception 
Allows the counter monitor MBean to perform any operations it needs before being unregistered by the MBean server.

Resets the threshold values.

Specified by:
preDeregister sample code for javax.management.MBeanRegistration.preDeregister() definition code for javax.management.MBeanRegistration.preDeregister() in interface MBeanRegistration sample code for javax.management.MBeanRegistration definition code for javax.management.MBeanRegistration
Overrides:
preDeregister sample code for javax.management.monitor.Monitor.preDeregister() definition code for javax.management.monitor.Monitor.preDeregister() in class Monitor sample code for javax.management.monitor.Monitor definition code for javax.management.monitor.Monitor
Throws:
Exception sample code for java.lang.Exception definition code for java.lang.Exception

start sample code for javax.management.monitor.CounterMonitor.start() definition code for javax.management.monitor.CounterMonitor.start()

public void start()
Starts the counter monitor.

Specified by:
start sample code for javax.management.monitor.MonitorMBean.start() definition code for javax.management.monitor.MonitorMBean.start() in interface MonitorMBean sample code for javax.management.monitor.MonitorMBean definition code for javax.management.monitor.MonitorMBean
Specified by:
start sample code for javax.management.monitor.Monitor.start() definition code for javax.management.monitor.Monitor.start() in class Monitor sample code for javax.management.monitor.Monitor definition code for javax.management.monitor.Monitor

stop sample code for javax.management.monitor.CounterMonitor.stop() definition code for javax.management.monitor.CounterMonitor.stop()

public void stop()
Stops the counter monitor. This method is not synchronized, because if it were there could be a deadlock with a thread that attempted to get the lock on the monitor before being interrupted or noticing that it had been interrupted.

Specified by:
stop sample code for javax.management.monitor.MonitorMBean.stop() definition code for javax.management.monitor.MonitorMBean.stop() in interface MonitorMBean sample code for javax.management.monitor.MonitorMBean definition code for javax.management.monitor.MonitorMBean
Specified by:
stop sample code for javax.management.monitor.Monitor.stop() definition code for javax.management.monitor.Monitor.stop() in class Monitor sample code for javax.management.monitor.Monitor definition code for javax.management.monitor.Monitor

setGranularityPeriod sample code for javax.management.monitor.CounterMonitor.setGranularityPeriod(long) definition code for javax.management.monitor.CounterMonitor.setGranularityPeriod(long)

public void setGranularityPeriod(long period)
                          throws IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException 
Sets the granularity period (in milliseconds).
The default value of the granularity period is 10 seconds.

Specified by:
setGranularityPeriod sample code for javax.management.monitor.MonitorMBean.setGranularityPeriod(long) definition code for javax.management.monitor.MonitorMBean.setGranularityPeriod(long) in interface MonitorMBean sample code for javax.management.monitor.MonitorMBean definition code for javax.management.monitor.MonitorMBean
Overrides:
setGranularityPeriod sample code for javax.management.monitor.Monitor.setGranularityPeriod(long) definition code for javax.management.monitor.Monitor.setGranularityPeriod(long) in class Monitor sample code for javax.management.monitor.Monitor definition code for javax.management.monitor.Monitor
Parameters:
period - The granularity period value.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - The granularity period is less than or equal to zero.
See Also:
Monitor.setGranularityPeriod(long) sample code for javax.management.monitor.Monitor.setGranularityPeriod(long) definition code for javax.management.monitor.Monitor.setGranularityPeriod(long)

getDerivedGauge sample code for javax.management.monitor.CounterMonitor.getDerivedGauge(javax.management.ObjectName) definition code for javax.management.monitor.CounterMonitor.getDerivedGauge(javax.management.ObjectName)

public Number sample code for java.lang.Number definition code for java.lang.Number  getDerivedGauge(ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  object)
Gets the derived gauge of the specified object, if this object is contained in the set of observed MBeans, or null otherwise.

Specified by:
getDerivedGauge sample code for javax.management.monitor.CounterMonitorMBean.getDerivedGauge(javax.management.ObjectName) definition code for javax.management.monitor.CounterMonitorMBean.getDerivedGauge(javax.management.ObjectName) in interface CounterMonitorMBean sample code for javax.management.monitor.CounterMonitorMBean definition code for javax.management.monitor.CounterMonitorMBean
Parameters:
object - the name of the object whose derived gauge is to be returned.
Returns:
The derived gauge of the specified object.

getDerivedGaugeTimeStamp sample code for javax.management.monitor.CounterMonitor.getDerivedGaugeTimeStamp(javax.management.ObjectName) definition code for javax.management.monitor.CounterMonitor.getDerivedGaugeTimeStamp(javax.management.ObjectName)

public long getDerivedGaugeTimeStamp(ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  object)
Gets the derived gauge timestamp of the specified object, if this object is contained in the set of observed MBeans, or null otherwise.

Specified by:
getDerivedGaugeTimeStamp sample code for javax.management.monitor.CounterMonitorMBean.getDerivedGaugeTimeStamp(javax.management.ObjectName) definition code for javax.management.monitor.CounterMonitorMBean.getDerivedGaugeTimeStamp(javax.management.ObjectName) in interface CounterMonitorMBean sample code for javax.management.monitor.CounterMonitorMBean definition code for javax.management.monitor.CounterMonitorMBean
Parameters:
object - the name of the object whose derived gauge timestamp is to be returned.
Returns:
The derived gauge timestamp of the specified object.

getThreshold sample code for javax.management.monitor.CounterMonitor.getThreshold(javax.management.ObjectName) definition code for javax.management.monitor.CounterMonitor.getThreshold(javax.management.ObjectName)

public Number sample code for java.lang.Number definition code for java.lang.Number  getThreshold(ObjectName sample code for javax.management.ObjectName definition code for javax.management.ObjectName  object)
Gets the current threshold value of the specified object, if this object is contained in the set of observed MBeans, or null otherwise.

Specified by:
getThreshold sample code for javax.management.monitor.CounterMonitorMBean.getThreshold(javax.management.ObjectName) definition code for javax.management.monitor.CounterMonitorMBean.getThreshold(javax.management.ObjectName) in interface CounterMonitorMBean sample code for javax.management.monitor.CounterMonitorMBean definition code for javax.management.monitor.CounterMonitorMBean
Parameters:
object - the name of the object whose threshold is to be returned.
Returns:
The threshold value of the specified object.
See Also:
setThreshold(java.lang.Number) sample code for javax.management.monitor.CounterMonitor.setThreshold(java.lang.Number) definition code for javax.management.monitor.CounterMonitor.setThreshold(java.lang.Number)

getInitThreshold sample code for javax.management.monitor.CounterMonitor.getInitThreshold() definition code for javax.management.monitor.CounterMonitor.getInitThreshold()

public Number sample code for java.lang.Number definition code for java.lang.Number  getInitThreshold()
Gets the initial threshold value common to all observed objects.

Specified by:
getInitThreshold sample code for javax.management.monitor.CounterMonitorMBean.getInitThreshold() definition code for javax.management.monitor.CounterMonitorMBean.getInitThreshold() in interface CounterMonitorMBean sample code for javax.management.monitor.CounterMonitorMBean definition code for javax.management.monitor.CounterMonitorMBean
Returns:
The initial threshold.
See Also:
setInitThreshold(java.lang.Number) sample code for javax.management.monitor.CounterMonitor.setInitThreshold(java.lang.Number) definition code for javax.management.monitor.CounterMonitor.setInitThreshold(java.lang.Number)

setInitThreshold sample code for javax.management.monitor.CounterMonitor.setInitThreshold(java.lang.Number) definition code for javax.management.monitor.CounterMonitor.setInitThreshold(java.lang.Number)

public void setInitThreshold(Number sample code for java.lang.Number definition code for java.lang.Number  value)
                      throws IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException 
Sets the initial threshold value common to all observed objects.
The current threshold of every object in the set of observed MBeans is updated consequently.

Specified by:
setInitThreshold sample code for javax.management.monitor.CounterMonitorMBean.setInitThreshold(java.lang.Number) definition code for javax.management.monitor.CounterMonitorMBean.setInitThreshold(java.lang.Number) in interface CounterMonitorMBean sample code for javax.management.monitor.CounterMonitorMBean definition code for javax.management.monitor.CounterMonitorMBean
Parameters:
value - The initial threshold value.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - The specified threshold is null or the threshold value is less than zero.
See Also:
getInitThreshold() sample code for javax.management.monitor.CounterMonitor.getInitThreshold() definition code for javax.management.monitor.CounterMonitor.getInitThreshold()

getDerivedGauge sample code for javax.management.monitor.CounterMonitor.getDerivedGauge() definition code for javax.management.monitor.CounterMonitor.getDerivedGauge()

@Deprecated
public Number sample code for java.lang.Number definition code for java.lang.Number  getDerivedGauge()
Deprecated. As of JMX 1.2, replaced by getDerivedGauge(ObjectName) sample code for javax.management.monitor.CounterMonitor.getDerivedGauge(javax.management.ObjectName) definition code for javax.management.monitor.CounterMonitor.getDerivedGauge(javax.management.ObjectName)

Returns the derived gauge of the first object in the set of observed MBeans.

Specified by:
getDerivedGauge sample code for javax.management.monitor.CounterMonitorMBean.getDerivedGauge() definition code for javax.management.monitor.CounterMonitorMBean.getDerivedGauge() in interface CounterMonitorMBean sample code for javax.management.monitor.CounterMonitorMBean definition code for javax.management.monitor.CounterMonitorMBean
Returns:
The derived gauge.

getDerivedGaugeTimeStamp sample code for javax.management.monitor.CounterMonitor.getDerivedGaugeTimeStamp() definition code for javax.management.monitor.CounterMonitor.getDerivedGaugeTimeStamp()

@Deprecated
public long getDerivedGaugeTimeStamp()
Deprecated. As of JMX 1.2, replaced by getDerivedGaugeTimeStamp(ObjectName) sample code for javax.management.monitor.CounterMonitor.getDerivedGaugeTimeStamp(javax.management.ObjectName) definition code for javax.management.monitor.CounterMonitor.getDerivedGaugeTimeStamp(javax.management.ObjectName)

Gets the derived gauge timestamp of the first object in the set of observed MBeans.

Specified by:
getDerivedGaugeTimeStamp sample code for javax.management.monitor.CounterMonitorMBean.getDerivedGaugeTimeStamp() definition code for javax.management.monitor.CounterMonitorMBean.getDerivedGaugeTimeStamp() in interface CounterMonitorMBean sample code for javax.management.monitor.CounterMonitorMBean definition code for javax.management.monitor.CounterMonitorMBean
Returns:
The derived gauge timestamp.

getThreshold sample code for javax.management.monitor.CounterMonitor.getThreshold() definition code for javax.management.monitor.CounterMonitor.getThreshold()

@Deprecated
public Number sample code for java.lang.Number definition code for java.lang.Number  getThreshold()
Deprecated. As of JMX 1.2, replaced by getThreshold(ObjectName) sample code for javax.management.monitor.CounterMonitor.getThreshold(javax.management.ObjectName) definition code for javax.management.monitor.CounterMonitor.getThreshold(javax.management.ObjectName)

Gets the threshold value of the first object in the set of observed MBeans.

Specified by:
getThreshold sample code for javax.management.monitor.CounterMonitorMBean.getThreshold() definition code for javax.management.monitor.CounterMonitorMBean.getThreshold() in interface CounterMonitorMBean sample code for javax.management.monitor.CounterMonitorMBean definition code for javax.management.monitor.CounterMonitorMBean
Returns:
The threshold value.
See Also:
setThreshold(Number) sample code for javax.management.monitor.CounterMonitor.setThreshold(java.lang.Number) definition code for javax.management.monitor.CounterMonitor.setThreshold(java.lang.Number)

setThreshold sample code for javax.management.monitor.CounterMonitor.setThreshold(java.lang.Number) definition code for javax.management.monitor.CounterMonitor.setThreshold(java.lang.Number)

@Deprecated
public void setThreshold(Number sample code for java.lang.Number definition code for java.lang.Number  value)
                  throws IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException 
Deprecated. As of JMX 1.2, replaced by setInitThreshold(java.lang.Number) sample code for javax.management.monitor.CounterMonitor.setInitThreshold(java.lang.Number) definition code for javax.management.monitor.CounterMonitor.setInitThreshold(java.lang.Number)

Sets the initial threshold value.

Specified by:
setThreshold sample code for javax.management.monitor.CounterMonitorMBean.setThreshold(java.lang.Number) definition code for javax.management.monitor.CounterMonitorMBean.setThreshold(java.lang.Number) in interface CounterMonitorMBean sample code for javax.management.monitor.CounterMonitorMBean definition code for javax.management.monitor.CounterMonitorMBean
Parameters:
value - The initial threshold value.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - The specified threshold is null or the threshold value is less than zero.
See Also:
getThreshold() sample code for javax.management.monitor.CounterMonitor.getThreshold() definition code for javax.management.monitor.CounterMonitor.getThreshold()

getOffset sample code for javax.management.monitor.CounterMonitor.getOffset() definition code for javax.management.monitor.CounterMonitor.getOffset()

public Number sample code for java.lang.Number definition code for java.lang.Number  getOffset()
Gets the offset value common to all observed MBeans.

Specified by:
getOffset sample code for javax.management.monitor.CounterMonitorMBean.getOffset() definition code for javax.management.monitor.CounterMonitorMBean.getOffset() in interface CounterMonitorMBean sample code for javax.management.monitor.CounterMonitorMBean definition code for javax.management.monitor.CounterMonitorMBean
Returns:
The offset value.
See Also:
setOffset(java.lang.Number) sample code for javax.management.monitor.CounterMonitor.setOffset(java.lang.Number) definition code for javax.management.monitor.CounterMonitor.setOffset(java.lang.Number)

setOffset sample code for javax.management.monitor.CounterMonitor.setOffset(java.lang.Number) definition code for javax.management.monitor.CounterMonitor.setOffset(java.lang.Number)

public void setOffset(Number sample code for java.lang.Number definition code for java.lang.Number  value)
               throws IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException 
Sets the offset value common to all observed MBeans.

Specified by:
setOffset sample code for javax.management.monitor.CounterMonitorMBean.setOffset(java.lang.Number) definition code for javax.management.monitor.CounterMonitorMBean.setOffset(java.lang.Number) in interface CounterMonitorMBean sample code for javax.management.monitor.CounterMonitorMBean definition code for javax.management.monitor.CounterMonitorMBean
Parameters:
value - The offset value.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - The specified offset is null or the offset value is less than zero.
See Also:
getOffset() sample code for javax.management.monitor.CounterMonitor.getOffset() definition code for javax.management.monitor.CounterMonitor.getOffset()

getModulus sample code for javax.management.monitor.CounterMonitor.getModulus() definition code for javax.management.monitor.CounterMonitor.getModulus()

public Number sample code for java.lang.Number definition code for java.lang.Number  getModulus()
Gets the modulus value common to all observed MBeans.

Specified by:
getModulus sample code for javax.management.monitor.CounterMonitorMBean.getModulus() definition code for javax.management.monitor.CounterMonitorMBean.getModulus() in interface CounterMonitorMBean sample code for javax.management.monitor.CounterMonitorMBean definition code for javax.management.monitor.CounterMonitorMBean
Returns:
The modulus value.
See Also:
setModulus(java.lang.Number) sample code for javax.management.monitor.CounterMonitor.setModulus(java.lang.Number) definition code for javax.management.monitor.CounterMonitor.setModulus(java.lang.Number)

setModulus sample code for javax.management.monitor.CounterMonitor.setModulus(java.lang.Number) definition code for javax.management.monitor.CounterMonitor.setModulus(java.lang.Number)

public void setModulus(Number sample code for java.lang.Number definition code for java.lang.Number  value)
                throws IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException 
Sets the modulus value common to all observed MBeans.

Specified by:
setModulus sample code for javax.management.monitor.CounterMonitorMBean.setModulus(java.lang.Number) definition code for javax.management.monitor.CounterMonitorMBean.setModulus(java.lang.Number) in interface CounterMonitorMBean sample code for javax.management.monitor.CounterMonitorMBean definition code for javax.management.monitor.CounterMonitorMBean
Parameters:
value - The modulus value.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - The specified modulus is null or the modulus value is less than zero.
See Also:
getModulus() sample code for javax.management.monitor.CounterMonitor.getModulus() definition code for javax.management.monitor.CounterMonitor.getModulus()

getNotify sample code for javax.management.monitor.CounterMonitor.getNotify() definition code for javax.management.monitor.CounterMonitor.getNotify()

public boolean getNotify()
Gets the notification's on/off switch value common to all observed MBeans.

Specified by:
getNotify sample code for javax.management.monitor.CounterMonitorMBean.getNotify() definition code for javax.management.monitor.CounterMonitorMBean.getNotify() in interface CounterMonitorMBean sample code for javax.management.monitor.CounterMonitorMBean definition code for javax.management.monitor.CounterMonitorMBean
Returns:
true if the counter monitor notifies when exceeding the threshold, false otherwise.
See Also:
setNotify(boolean) sample code for javax.management.monitor.CounterMonitor.setNotify(boolean) definition code for javax.management.monitor.CounterMonitor.setNotify(boolean)

setNotify sample code for javax.management.monitor.CounterMonitor.setNotify(boolean) definition code for javax.management.monitor.CounterMonitor.setNotify(boolean)

public void setNotify(boolean value)
Sets the notification's on/off switch value common to all observed MBeans.

Specified by:
setNotify sample code for javax.management.monitor.CounterMonitorMBean.setNotify(boolean) definition code for javax.management.monitor.CounterMonitorMBean.setNotify(boolean) in interface CounterMonitorMBean sample code for javax.management.monitor.CounterMonitorMBean definition code for javax.management.monitor.CounterMonitorMBean
Parameters:
value - The notification's on/off switch value.
See Also:
getNotify() sample code for javax.management.monitor.CounterMonitor.getNotify() definition code for javax.management.monitor.CounterMonitor.getNotify()

getDifferenceMode sample code for javax.management.monitor.CounterMonitor.getDifferenceMode() definition code for javax.management.monitor.CounterMonitor.getDifferenceMode()

public boolean getDifferenceMode()
Gets the difference mode flag value common to all observed MBeans.

Specified by:
getDifferenceMode sample code for javax.management.monitor.CounterMonitorMBean.getDifferenceMode() definition code for javax.management.monitor.CounterMonitorMBean.getDifferenceMode() in interface CounterMonitorMBean sample code for javax.management.monitor.CounterMonitorMBean definition code for javax.management.monitor.CounterMonitorMBean
Returns:
true if the difference mode is used, false otherwise.
See Also:
setDifferenceMode(boolean) sample code for javax.management.monitor.CounterMonitor.setDifferenceMode(boolean) definition code for javax.management.monitor.CounterMonitor.setDifferenceMode(boolean)

setDifferenceMode sample code for javax.management.monitor.CounterMonitor.setDifferenceMode(boolean) definition code for javax.management.monitor.CounterMonitor.setDifferenceMode(boolean)

public void setDifferenceMode(boolean value)
Sets the difference mode flag value common to all observed MBeans.

Specified by:
setDifferenceMode sample code for javax.management.monitor.CounterMonitorMBean.setDifferenceMode(boolean) definition code for javax.management.monitor.CounterMonitorMBean.setDifferenceMode(boolean) in interface CounterMonitorMBean sample code for javax.management.monitor.CounterMonitorMBean definition code for javax.management.monitor.CounterMonitorMBean
Parameters:
value - The difference mode flag value.
See Also:
getDifferenceMode() sample code for javax.management.monitor.CounterMonitor.getDifferenceMode() definition code for javax.management.monitor.CounterMonitor.getDifferenceMode()

getNotificationInfo sample code for javax.management.monitor.CounterMonitor.getNotificationInfo() definition code for javax.management.monitor.CounterMonitor.getNotificationInfo()

public MBeanNotificationInfo sample code for javax.management.MBeanNotificationInfo definition code for javax.management.MBeanNotificationInfo [] getNotificationInfo()
Returns a NotificationInfo object containing the name of the Java class of the notification and the notification types sent by the counter monitor.

Specified by:
getNotificationInfo sample code for javax.management.NotificationBroadcaster.getNotificationInfo() definition code for javax.management.NotificationBroadcaster.getNotificationInfo() in interface NotificationBroadcaster sample code for javax.management.NotificationBroadcaster definition code for javax.management.NotificationBroadcaster
Overrides:
getNotificationInfo sample code for javax.management.NotificationBroadcasterSupport.getNotificationInfo() definition code for javax.management.NotificationBroadcasterSupport.getNotificationInfo() in class NotificationBroadcasterSupport sample code for javax.management.NotificationBroadcasterSupport definition code for javax.management.NotificationBroadcasterSupport
Returns:
the array of possible notifications.