| javax.management.monitor.Monitor javax.management.monitor.CounterMonitor
CounterMonitor | public class CounterMonitor extends Monitor implements CounterMonitorMBean(Code) | | The counter monitor service.
Revisions:
20020319 Adrian Brock:
- Reset the threshold when the value becomes negative in difference mode
20020326 Adrian Brock:
- The spec says the modulus should be *strictly* exceeded. It appears
from testing the RI, it is a mathematical definition of modulus. e.g.
10 exceeds a modulus of 10
author: Adrian Brock version: $Revision: 57200 $ |
THRESHOLD_ERROR_NOTIFIED | int THRESHOLD_ERROR_NOTIFIED(Code) | | The threshold type error has been notified.
|
THRESHOLD_EXCEEDED_NOTIFIED | int THRESHOLD_EXCEEDED_NOTIFIED(Code) | | The counter threshold exceeded has been notified.
|
differenceMode | boolean differenceMode(Code) | | Difference mode.
|
initThreshold | Number initThreshold(Code) | | The last stated threshold.
|
notify | boolean notify(Code) | | Notify.
|
CounterMonitor | public CounterMonitor()(Code) | | Default Constructor
|
add | Number add(Number value1, Number value2)(Code) | | Add two numbers together.
Parameters: value1 - the first value. Parameters: value2 - the second value. value1 + value2 of the correct type |
getDerivedGaugeTimeStamp | public long getDerivedGaugeTimeStamp()(Code) | | |
getDerivedGaugeTimeStamp | public long getDerivedGaugeTimeStamp(ObjectName name)(Code) | | |
getDifferenceMode | public boolean getDifferenceMode()(Code) | | |
getNotify | public boolean getNotify()(Code) | | |
getZero | Number getZero(Number value)(Code) | | Get zero for the type passed.
Parameters: value - - the reference object zero for the correct type |
sendThresholdErrorNotification | void sendThresholdErrorNotification(ObservedObject object, Object value)(Code) | | Send a threshold error event.
This is only performed when requested and it has not already been sent.
Parameters: value - the attribute value. |
sendThresholdExceededNotification | void sendThresholdExceededNotification(ObservedObject object, Object value)(Code) | | Send a threshold exceeded event.
This is only performed when requested and it has not already been sent.
Parameters: value - the attribute value. |
setDifferenceMode | public void setDifferenceMode(boolean value)(Code) | | |
setNotify | public void setNotify(boolean value)(Code) | | |
start | public synchronized void start()(Code) | | |
stop | public synchronized void stop()(Code) | | |
sub | Number sub(Number value1, Number value2)(Code) | | Subtract two numbers.
Parameters: value1 - the first value. Parameters: value2 - the second value. value1 - value2 of the correct type |
Methods inherited from javax.management.monitor.Monitor | public void addObservedObject(ObjectName object) throws IllegalArgumentException(Code)(Java Doc) public boolean containsObservedObject(ObjectName object)(Code)(Java Doc) ObservedObject getFirstObservedObject()(Code)(Java Doc) public long getGranularityPeriod()(Code)(Java Doc) public String getObservedAttribute()(Code)(Java Doc) public ObjectName getObservedObject()(Code)(Java Doc) public ObjectName[] getObservedObjects()(Code)(Java Doc) void initObservedObject(ObservedObject object)(Code)(Java Doc) public synchronized boolean isActive()(Code)(Java Doc) synchronized long nextSeqNo()(Code)(Java Doc) public void postDeregister()(Code)(Java Doc) public void postRegister(Boolean registrationDone)(Code)(Java Doc) public void preDeregister() throws Exception(Code)(Java Doc) public ObjectName preRegister(MBeanServer server, ObjectName objectName) throws Exception(Code)(Java Doc) public void removeObservedObject(ObjectName object)(Code)(Java Doc) void resetAlreadyNotified()(Code)(Java Doc) ObservedObject retrieveObservedObject(ObjectName name)(Code)(Java Doc) Map retrieveObservedObjects()(Code)(Java Doc) void sendAttributeErrorNotification(ObservedObject object, String message)(Code)(Java Doc) void sendAttributeTypeErrorNotification(ObservedObject object, String message)(Code)(Java Doc) void sendNotification(ObservedObject object, String type, long timestamp, String message, String attribute, Object gauge, Object trigger)(Code)(Java Doc) void sendObjectErrorNotification(ObservedObject object, String message)(Code)(Java Doc) void sendRuntimeErrorNotification(ObservedObject object, String message)(Code)(Java Doc) public void setGranularityPeriod(long period) throws IllegalArgumentException(Code)(Java Doc) public void setObservedAttribute(String attribute) throws IllegalArgumentException(Code)(Java Doc) public void setObservedObject(ObjectName object) throws IllegalArgumentException(Code)(Java Doc) abstract public void start()(Code)(Java Doc) abstract public void stop()(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|