|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
javax.management.monitor.Monitor
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 |
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 | |
Number |
getDerivedGauge()
Retrieves the derived gauge. |
Number |
getDerivedGauge(ObjectName name)
Retrieves the derived gauge. |
long |
getDerivedGaugeTimeStamp()
Retrieves the derived gauge timestamp. |
long |
getDerivedGaugeTimeStamp(ObjectName name)
Retrieves the derived gauge timestamp. |
boolean |
getDifferenceMode()
Retrieves the difference mode flag. |
Number |
getInitThreshold()
Retrieves the initial threshold. |
Number |
getModulus()
Retrieves the modulus. |
MBeanNotificationInfo[] |
getNotificationInfo()
Returns the notification metadata associated with the MBean. |
boolean |
getNotify()
Retrieves the notify on/off switch. |
Number |
getOffset()
Retrieves the offset. |
Number |
getThreshold()
Retrieves the threshold. |
Number |
getThreshold(ObjectName name)
Retrieves the threshold. |
void |
setDifferenceMode(boolean value)
Sets the difference mode flag. |
void |
setInitThreshold(Number threshold)
Sets the initial threshold. |
void |
setModulus(Number value)
Sets the modulus. |
void |
setNotify(boolean value)
Sets the notify on/off switch. |
void |
setOffset(Number value)
Sets the offset. |
void |
setThreshold(Number value)
Sets the threshold. |
void |
start()
Starts the monitor. |
void |
stop()
Stops the monitor. |
| Methods inherited from class javax.management.monitor.Monitor |
addObservedObject, containsObservedObject, getGranularityPeriod, getObservedAttribute, getObservedObject, getObservedObjects, isActive, postDeregister, postRegister, preDeregister, preRegister, removeObservedObject, setGranularityPeriod, setObservedAttribute, setObservedObject, toString |
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
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 |
addObservedObject, containsObservedObject, getGranularityPeriod, getObservedAttribute, getObservedObject, getObservedObjects, isActive, removeObservedObject, setGranularityPeriod, setObservedAttribute, setObservedObject |
| Constructor Detail |
public CounterMonitor()
| Method Detail |
public MBeanNotificationInfo[] getNotificationInfo()
NotificationBroadcaster
getNotificationInfo in interface NotificationBroadcastergetNotificationInfo in class NotificationBroadcasterSupportpublic Number getDerivedGauge()
CounterMonitorMBean
getDerivedGauge in interface CounterMonitorMBeanpublic Number getDerivedGauge(ObjectName name)
CounterMonitorMBean
getDerivedGauge in interface CounterMonitorMBeanname - the object name of the mbean.
public long getDerivedGaugeTimeStamp()
CounterMonitorMBean
getDerivedGaugeTimeStamp in interface CounterMonitorMBeanpublic long getDerivedGaugeTimeStamp(ObjectName name)
CounterMonitorMBean
getDerivedGaugeTimeStamp in interface CounterMonitorMBeanname - the object name of the mbean.
public boolean getDifferenceMode()
CounterMonitorMBean
getDifferenceMode in interface CounterMonitorMBeanpublic void setDifferenceMode(boolean value)
CounterMonitorMBean
setDifferenceMode in interface CounterMonitorMBeanvalue - pass true for difference mode, false otherwise.public Number getInitThreshold()
CounterMonitorMBean
getInitThreshold in interface CounterMonitorMBeanpublic void setInitThreshold(Number threshold) throws IllegalArgumentException
CounterMonitorMBean
setInitThreshold in interface CounterMonitorMBeanthreshold - the initial threshold.
IllegalArgumentExceptionpublic Number getModulus()
CounterMonitorMBean
getModulus in interface CounterMonitorMBeanpublic void setModulus(Number value) throws IllegalArgumentException
CounterMonitorMBean
setModulus in interface CounterMonitorMBeanvalue - the modulus value, pass zero for no modulus.
IllegalArgumentException - when the modulus is null or
less than zero.public boolean getNotify()
CounterMonitorMBean
getNotify in interface CounterMonitorMBeanpublic void setNotify(boolean value)
CounterMonitorMBean
setNotify in interface CounterMonitorMBeanvalue - pass true notifications, false otherwise.public Number getOffset()
CounterMonitorMBean
getOffset in interface CounterMonitorMBeanpublic void setOffset(Number value) throws IllegalArgumentException
CounterMonitorMBean
setOffset in interface CounterMonitorMBeanvalue - the offset value, pass zero for no offset.
IllegalArgumentException - when the offset is null or
less than zero.public Number getThreshold()
CounterMonitorMBean
getThreshold in interface CounterMonitorMBeanpublic Number getThreshold(ObjectName name)
CounterMonitorMBean
getThreshold in interface CounterMonitorMBeanname - the object name of the mbean.
public void setThreshold(Number value) throws IllegalArgumentException
CounterMonitorMBean
setThreshold in interface CounterMonitorMBeanvalue - the threshold value, pass zero for no threshold.
IllegalArgumentException - when the threshold is null or
less than zero.public void start()
MonitorMBean
start in interface MonitorMBeanstart in class Monitorpublic void stop()
MonitorMBean
stop in interface MonitorMBeanstop in class Monitor
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||