|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.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 NotificationBroadcaster
getNotificationInfo
in class NotificationBroadcasterSupport
public Number getDerivedGauge()
CounterMonitorMBean
getDerivedGauge
in interface CounterMonitorMBean
public Number getDerivedGauge(ObjectName name)
CounterMonitorMBean
getDerivedGauge
in interface CounterMonitorMBean
name
- the object name of the mbean.
public long getDerivedGaugeTimeStamp()
CounterMonitorMBean
getDerivedGaugeTimeStamp
in interface CounterMonitorMBean
public long getDerivedGaugeTimeStamp(ObjectName name)
CounterMonitorMBean
getDerivedGaugeTimeStamp
in interface CounterMonitorMBean
name
- the object name of the mbean.
public boolean getDifferenceMode()
CounterMonitorMBean
getDifferenceMode
in interface CounterMonitorMBean
public void setDifferenceMode(boolean value)
CounterMonitorMBean
setDifferenceMode
in interface CounterMonitorMBean
value
- pass true for difference mode, false otherwise.public Number getInitThreshold()
CounterMonitorMBean
getInitThreshold
in interface CounterMonitorMBean
public void setInitThreshold(Number threshold) throws IllegalArgumentException
CounterMonitorMBean
setInitThreshold
in interface CounterMonitorMBean
threshold
- the initial threshold.
IllegalArgumentException
public Number getModulus()
CounterMonitorMBean
getModulus
in interface CounterMonitorMBean
public void setModulus(Number value) throws IllegalArgumentException
CounterMonitorMBean
setModulus
in interface CounterMonitorMBean
value
- 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 CounterMonitorMBean
public void setNotify(boolean value)
CounterMonitorMBean
setNotify
in interface CounterMonitorMBean
value
- pass true notifications, false otherwise.public Number getOffset()
CounterMonitorMBean
getOffset
in interface CounterMonitorMBean
public void setOffset(Number value) throws IllegalArgumentException
CounterMonitorMBean
setOffset
in interface CounterMonitorMBean
value
- 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 CounterMonitorMBean
public Number getThreshold(ObjectName name)
CounterMonitorMBean
getThreshold
in interface CounterMonitorMBean
name
- the object name of the mbean.
public void setThreshold(Number value) throws IllegalArgumentException
CounterMonitorMBean
setThreshold
in interface CounterMonitorMBean
value
- 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 MonitorMBean
start
in class Monitor
public void stop()
MonitorMBean
stop
in interface MonitorMBean
stop
in class Monitor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |