|
||||||||||
| PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport (src)
javax.management.monitor.Monitor (src)
javax.management.monitor.CounterMonitor
The counter monitor service.
Revisions:
20020319 Adrian Brock:
20020326 Adrian Brock:
| Field Summary |
| Fields inherited from class javax.management.monitor.Monitor (src) |
alreadyNotified, alreadyNotifieds, capacityIncrement, dbgTag, elementCount, OBSERVED_ATTRIBUTE_ERROR_NOTIFIED, OBSERVED_ATTRIBUTE_TYPE_ERROR_NOTIFIED, OBSERVED_OBJECT_ERROR_NOTIFIED, RESET_FLAGS_ALREADY_NOTIFIED, RUNTIME_ERROR_NOTIFIED, server |
| Constructor Summary | |
CounterMonitor()
Default Constructor |
|
| Method Summary | |
java.lang.Number |
getDerivedGauge()
Retrieves the derived gauge. |
java.lang.Number |
getDerivedGauge(ObjectName (src) name)
Retrieves the derived gauge. |
long |
getDerivedGaugeTimeStamp()
Retrieves the derived gauge timestamp. |
long |
getDerivedGaugeTimeStamp(ObjectName (src) name)
Retrieves the derived gauge timestamp. |
boolean |
getDifferenceMode()
Retrieves the difference mode flag. |
java.lang.Number |
getInitThreshold()
Retrieves the initial threshold. |
java.lang.Number |
getModulus()
Retrieves the modulus. |
MBeanNotificationInfo (src) [] |
getNotificationInfo()
Returns the notification metadata associated with the MBean. |
boolean |
getNotify()
Retrieves the notify on/off switch. |
java.lang.Number |
getOffset()
Retrieves the offset. |
java.lang.Number |
getThreshold()
Retrieves the threshold. |
java.lang.Number |
getThreshold(ObjectName (src) name)
Retrieves the threshold. |
void |
setDifferenceMode(boolean value)
Sets the difference mode flag. |
void |
setInitThreshold(java.lang.Number threshold)
Sets the initial threshold. |
void |
setModulus(java.lang.Number value)
Sets the modulus. |
void |
setNotify(boolean value)
Sets the notify on/off switch. |
void |
setOffset(java.lang.Number value)
Sets the offset. |
void |
setThreshold(java.lang.Number value)
Sets the threshold. |
void |
start()
Starts the monitor. |
void |
stop()
Stops the monitor. |
| Methods inherited from class javax.management.monitor.Monitor (src) |
addObservedObject, containsObservedObject, getGranularityPeriod, getObservedAttribute, getObservedObject, getObservedObjects, isActive, postDeregister, postRegister, preDeregister, preRegister, removeObservedObject, setGranularityPeriod, setObservedAttribute, setObservedObject, toString |
| Methods inherited from class javax.management.NotificationBroadcasterSupport (src) |
addNotificationListener, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.management.monitor.MonitorMBean (src) |
addObservedObject, containsObservedObject, getGranularityPeriod, getObservedAttribute, getObservedObject, getObservedObjects, isActive, removeObservedObject, setGranularityPeriod, setObservedAttribute, setObservedObject |
| Constructor Detail |
public CounterMonitor()
| Method Detail |
public MBeanNotificationInfo (src) [] getNotificationInfo()
NotificationBroadcaster (src)
getNotificationInfo in interface NotificationBroadcaster (src) getNotificationInfo in class NotificationBroadcasterSupport (src) public java.lang.Number getDerivedGauge()
CounterMonitorMBean (src)
getDerivedGauge in interface CounterMonitorMBean (src) public java.lang.Number getDerivedGauge(ObjectName (src) name)
CounterMonitorMBean (src)
getDerivedGauge in interface CounterMonitorMBean (src) name - the object name of the mbean.
public long getDerivedGaugeTimeStamp()
CounterMonitorMBean (src)
getDerivedGaugeTimeStamp in interface CounterMonitorMBean (src) public long getDerivedGaugeTimeStamp(ObjectName (src) name)
CounterMonitorMBean (src)
getDerivedGaugeTimeStamp in interface CounterMonitorMBean (src) name - the object name of the mbean.
public boolean getDifferenceMode()
CounterMonitorMBean (src)
getDifferenceMode in interface CounterMonitorMBean (src) public void setDifferenceMode(boolean value)
CounterMonitorMBean (src)
setDifferenceMode in interface CounterMonitorMBean (src) value - pass true for difference mode, false otherwise.public java.lang.Number getInitThreshold()
CounterMonitorMBean (src)
getInitThreshold in interface CounterMonitorMBean (src)
public void setInitThreshold(java.lang.Number threshold)
throws java.lang.IllegalArgumentException
CounterMonitorMBean (src)
setInitThreshold in interface CounterMonitorMBean (src) threshold - the initial threshold.
java.lang.IllegalArgumentExceptionpublic java.lang.Number getModulus()
CounterMonitorMBean (src)
getModulus in interface CounterMonitorMBean (src)
public void setModulus(java.lang.Number value)
throws java.lang.IllegalArgumentException
CounterMonitorMBean (src)
setModulus in interface CounterMonitorMBean (src) value - the modulus value, pass zero for no modulus.
java.lang.IllegalArgumentException - when the modulus is null or
less than zero.public boolean getNotify()
CounterMonitorMBean (src)
getNotify in interface CounterMonitorMBean (src) public void setNotify(boolean value)
CounterMonitorMBean (src)
setNotify in interface CounterMonitorMBean (src) value - pass true notifications, false otherwise.public java.lang.Number getOffset()
CounterMonitorMBean (src)
getOffset in interface CounterMonitorMBean (src)
public void setOffset(java.lang.Number value)
throws java.lang.IllegalArgumentException
CounterMonitorMBean (src)
setOffset in interface CounterMonitorMBean (src) value - the offset value, pass zero for no offset.
java.lang.IllegalArgumentException - when the offset is null or
less than zero.public java.lang.Number getThreshold()
CounterMonitorMBean (src)
getThreshold in interface CounterMonitorMBean (src) public java.lang.Number getThreshold(ObjectName (src) name)
CounterMonitorMBean (src)
getThreshold in interface CounterMonitorMBean (src) name - the object name of the mbean.
public void setThreshold(java.lang.Number value)
throws java.lang.IllegalArgumentException
CounterMonitorMBean (src)
setThreshold in interface CounterMonitorMBean (src) value - the threshold value, pass zero for no threshold.
java.lang.IllegalArgumentException - when the threshold is null or
less than zero.public void start()
MonitorMBean (src)
start in interface MonitorMBean (src) start in class Monitor (src) public void stop()
MonitorMBean (src)
stop in interface MonitorMBean (src) stop in class Monitor (src)
|
||||||||||
| PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||