Top Description Inners Fields Constructors Methods
javax.management.monitor

public Class CounterMonitor

extends Monitor
implements CounterMonitorMBean
Class Inheritance
All Implemented Interfaces
javax.management.monitor.CounterMonitorMBean, javax.management.monitor.MonitorMBean
Static Imports
com.sun.jmx.defaults.JmxProperties.MONITOR_LOGGER, javax.management.monitor.Monitor.NumericalType.*, javax.management.monitor.MonitorNotification.*

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

A counter monitor sends a threshold notification 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

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private boolean
differenceMode

Flag indicating if the counter difference mode is used.

private Number
initThreshold

Initial counter threshold.

private Number
modulus

Counter modulus.

private static final MBeanNotificationInfo[]
private boolean
notify

Flag indicating if the counter monitor notifies when exceeding the threshold.

private Number
offset

Counter offset.

private static final String[]
Inherited from javax.management.monitor.Monitor:
alreadyNotifiedalreadyNotifiedscapacityIncrementdbgTagelementCountINTEGER_ZEROOBSERVED_ATTRIBUTE_ERROR_NOTIFIEDOBSERVED_ATTRIBUTE_TYPE_ERROR_NOTIFIEDOBSERVED_OBJECT_ERROR_NOTIFIEDobservedObjectsRESET_FLAGS_ALREADY_NOTIFIEDRUNTIME_ERROR_NOTIFIEDserverTHRESHOLD_ERROR_NOTIFIED

Constructor Summary

AccessConstructor and Description
public
CounterMonitor()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
pack-priv synchronized MonitorNotification
pack-priv Monitor.ObservedObject
createObservedObject(ObjectName object)

Overrides javax.management.monitor.Monitor.createObservedObject.

Factory method for ObservedObject creation.

public synchronized Number

Returns:

The derived gauge of the specified object.
getDerivedGauge
(ObjectName
the name of the object whose derived gauge is to be returned.
object
)

Overrides javax.management.monitor.Monitor.getDerivedGauge.

Implements javax.management.monitor.CounterMonitorMBean.getDerivedGauge.

Gets the derived gauge of the specified object, if this object is contained in the set of observed MBeans, or null otherwise.

public synchronized Number

Returns:

The derived gauge.
getDerivedGauge
()

Implements javax.management.monitor.CounterMonitorMBean.getDerivedGauge.

Deprecated As of JMX 1.2, replaced by getDerivedGauge(ObjectName)

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

pack-priv synchronized Comparable<?>
public synchronized long

Returns:

The derived gauge timestamp of the specified object.
getDerivedGaugeTimeStamp
(ObjectName
the name of the object whose derived gauge timestamp is to be returned.
object
)

Overrides javax.management.monitor.Monitor.getDerivedGaugeTimeStamp.

Implements javax.management.monitor.CounterMonitorMBean.getDerivedGaugeTimeStamp.

Gets the derived gauge timestamp of the specified object, if this object is contained in the set of observed MBeans, or 0 otherwise.

public synchronized long

Returns:

The derived gauge timestamp.
getDerivedGaugeTimeStamp
()

Implements javax.management.monitor.CounterMonitorMBean.getDerivedGaugeTimeStamp.

Deprecated As of JMX 1.2, replaced by getDerivedGaugeTimeStamp(ObjectName)

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

public synchronized boolean

Returns:

true if the difference mode is used, false otherwise.
getDifferenceMode
()

Implements javax.management.monitor.CounterMonitorMBean.getDifferenceMode.

Gets the difference mode flag value common to all observed MBeans.

public synchronized Number

Returns:

The initial threshold.
getInitThreshold
()

Implements javax.management.monitor.CounterMonitorMBean.getInitThreshold.

Gets the initial threshold value common to all observed objects.

public synchronized Number

Returns:

The modulus value.
getModulus
()

Implements javax.management.monitor.CounterMonitorMBean.getModulus.

Gets the modulus value common to all observed MBeans.

public MBeanNotificationInfo[]
getNotificationInfo()

Overrides javax.management.NotificationBroadcasterSupport.getNotificationInfo.

Implements javax.management.NotificationBroadcaster.getNotificationInfo.

Returns a NotificationInfo object containing the name of the Java class of the notification and the notification types sent by the counter monitor.

public synchronized boolean

Returns:

true if the counter monitor notifies when exceeding the threshold, false otherwise.
getNotify
()

Implements javax.management.monitor.CounterMonitorMBean.getNotify.

Gets the notification's on/off switch value common to all observed MBeans.

public synchronized Number

Returns:

The offset value.
getOffset
()

Implements javax.management.monitor.CounterMonitorMBean.getOffset.

Gets the offset value common to all observed MBeans.

public synchronized Number

Returns:

The threshold value of the specified object.
getThreshold
(ObjectName
the name of the object whose threshold is to be returned.
object
)

Implements javax.management.monitor.CounterMonitorMBean.getThreshold.

Gets the current threshold value of the specified object, if this object is contained in the set of observed MBeans, or null otherwise.

public synchronized Number

Returns:

The threshold value.
getThreshold
()

Implements javax.management.monitor.CounterMonitorMBean.getThreshold.

Deprecated As of JMX 1.2, replaced by getThreshold(ObjectName)

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

pack-priv synchronized boolean
isComparableTypeValid(ObjectName object, String attribute, Comparable<?> value)

Overrides javax.management.monitor.Monitor.isComparableTypeValid.

This method globally sets the derived gauge type for the given "object" and "attribute" after checking that the type of the supplied observed attribute value is one of the value types supported by this monitor.

pack-priv synchronized boolean

Returns:

true if type is the same, false otherwise.
isThresholdTypeValid
(ObjectName
The observed object.
object
,
String
The observed attribute.
attribute
,
Comparable<?>
The sample value.
value
)

Overrides javax.management.monitor.Monitor.isThresholdTypeValid.

Tests if the threshold, offset and modulus of the specified observed object are of the same type as the counter.

pack-priv synchronized void
private synchronized void
setDerivedGaugeWithDifference(Number
The value of the observed attribute.
scanCounter
,
Number
The counter modulus value.
mod
,
CounterMonitor.CounterMonitorObservedObject
The observed object.
o
)

Sets the derived gauge of the specified observed object when the differenceMode flag is set to true.

public synchronized void
setDifferenceMode(boolean
The difference mode flag value.
value
)

Implements javax.management.monitor.CounterMonitorMBean.setDifferenceMode.

Sets the difference mode flag value common to all observed MBeans.

public synchronized void
setInitThreshold(Number
The initial threshold value.
value
)

Implements javax.management.monitor.CounterMonitorMBean.setInitThreshold.

Sets the initial threshold value common to all observed objects.

public synchronized void
setModulus(Number
The modulus value.
value
)

Implements javax.management.monitor.CounterMonitorMBean.setModulus.

Sets the modulus value common to all observed MBeans.

public synchronized void
setNotify(boolean
The notification's on/off switch value.
value
)

Implements javax.management.monitor.CounterMonitorMBean.setNotify.

Sets the notification's on/off switch value common to all observed MBeans.

public synchronized void
setOffset(Number
The offset value.
value
)

Implements javax.management.monitor.CounterMonitorMBean.setOffset.

Sets the offset value common to all observed MBeans.

public synchronized void
setThreshold(Number
The initial threshold value.
value
)

Implements javax.management.monitor.CounterMonitorMBean.setThreshold.

Deprecated As of JMX 1.2, replaced by setInitThreshold

Sets the initial threshold value.

public synchronized void
start()

Implements abstract javax.management.monitor.Monitor.start.

Implements javax.management.monitor.MonitorMBean.start.

Starts the counter monitor.

public synchronized void
stop()

Implements abstract javax.management.monitor.Monitor.stop.

Implements javax.management.monitor.MonitorMBean.stop.

Stops the counter monitor.

private synchronized boolean

Returns:

true if the derived gauge value is valid, false otherwise. The derived gauge value is invalid when the differenceMode flag is set to true and it is the first notification (so we haven't 2 consecutive values to update the derived gauge).
updateDerivedGauge
(Object
The value of the observed attribute.
scanCounter
,
CounterMonitor.CounterMonitorObservedObject
The observed object.
o
)

Updates the derived gauge attribute of the observed object.

private synchronized MonitorNotification
updateNotifications(CounterMonitor.CounterMonitorObservedObject
The observed object.
o
)

Updates the notification attribute of the observed object and notifies the listeners only once if the notify flag is set to true.

private synchronized void
updateThreshold(CounterMonitor.CounterMonitorObservedObject
The observed object.
o
)

Updates the threshold attribute of the observed object.

Inherited from javax.management.monitor.Monitor:
addObservedObjectbuildErrorNotificationclassForTypecomputeAlreadyNotifiedIndexcontainsObservedObjectcreateAlreadyNotifieddoStartdoStopgetAttributegetComparableFromAttributegetGranularityPeriodgetObservedAttributegetObservedObjectgetObservedObjectgetObservedObjectsisActiveisAlreadyNotifiedisValidForTypepostDeregisterpostRegisterpreDeregisterpreRegisterremoveObservedObjectresetAllAlreadyNotifiedresetAlreadyNotifiedsetAlreadyNotifiedsetGranularityPeriodsetObservedAttributesetObservedObjectupdateAlreadyNotifiedupdateDeprecatedAlreadyNotified

Field Detail

differenceModeback to summary
private boolean differenceMode

Flag indicating if the counter difference mode is used. If the counter difference mode is used, the derived gauge is the difference between two consecutive observed values. Otherwise, the derived gauge is directly the value of the observed attribute. The default value is set to false.

initThresholdback to summary
private Number initThreshold

Initial counter threshold. This value is used to initialize the threshold when a new object is added to the list and reset the threshold to its initial value each time the counter resets.

modulusback to summary
private Number modulus

Counter modulus.
The default value is a null Integer object.

notifsInfoback to summary
private static final MBeanNotificationInfo[] notifsInfo
notifyback to summary
private boolean notify

Flag indicating if the counter monitor notifies when exceeding the threshold. The default value is set to false.

offsetback to summary
private Number offset

Counter offset.
The default value is a null Integer object.

typesback to summary
private static final String[] types

Constructor Detail

CounterMonitorback to summary
public CounterMonitor()

Default constructor.

Method Detail

buildAlarmNotificationback to summary
pack-priv synchronized MonitorNotification buildAlarmNotification(ObjectName object, String attribute, Comparable<?> value)

Overrides javax.management.monitor.Monitor.buildAlarmNotification.

Annotations
@Override
createObservedObjectback to summary
pack-priv Monitor.ObservedObject createObservedObject(ObjectName object)

Overrides javax.management.monitor.Monitor.createObservedObject.

Factory method for ObservedObject creation.

Annotations
@Override
Since
1.6
getDerivedGaugeback to summary
public synchronized Number getDerivedGauge(ObjectName object)

Overrides javax.management.monitor.Monitor.getDerivedGauge.

Implements javax.management.monitor.CounterMonitorMBean.getDerivedGauge.

Gets the derived gauge of the specified object, if this object is contained in the set of observed MBeans, or null otherwise.

Parameters
object:ObjectName

the name of the object whose derived gauge is to be returned.

Returns:Number

The derived gauge of the specified object.

Annotations
@Override
getDerivedGaugeback to summary
public synchronized Number getDerivedGauge()

Implements javax.management.monitor.CounterMonitorMBean.getDerivedGauge.

Deprecated

As of JMX 1.2, replaced by getDerivedGauge(ObjectName)

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

Returns:Number

The derived gauge.

Annotations
@Deprecated
getDerivedGaugeFromComparableback to summary
pack-priv synchronized Comparable<?> getDerivedGaugeFromComparable(ObjectName object, String attribute, Comparable<?> value)

Overrides javax.management.monitor.Monitor.getDerivedGaugeFromComparable.

Annotations
@Override
getDerivedGaugeTimeStampback to summary
public synchronized long getDerivedGaugeTimeStamp(ObjectName object)

Overrides javax.management.monitor.Monitor.getDerivedGaugeTimeStamp.

Implements javax.management.monitor.CounterMonitorMBean.getDerivedGaugeTimeStamp.

Gets the derived gauge timestamp of the specified object, if this object is contained in the set of observed MBeans, or 0 otherwise.

Parameters
object:ObjectName

the name of the object whose derived gauge timestamp is to be returned.

Returns:long

The derived gauge timestamp of the specified object.

Annotations
@Override
getDerivedGaugeTimeStampback to summary
public synchronized long getDerivedGaugeTimeStamp()

Implements javax.management.monitor.CounterMonitorMBean.getDerivedGaugeTimeStamp.

Deprecated

As of JMX 1.2, replaced by getDerivedGaugeTimeStamp(ObjectName)

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

Returns:long

The derived gauge timestamp.

Annotations
@Deprecated
getDifferenceModeback to summary
public synchronized boolean getDifferenceMode()

Implements javax.management.monitor.CounterMonitorMBean.getDifferenceMode.

Gets the difference mode flag value common to all observed MBeans.

Returns:boolean

true if the difference mode is used, false otherwise.

See Also
setDifferenceMode
getInitThresholdback to summary
public synchronized Number getInitThreshold()

Implements javax.management.monitor.CounterMonitorMBean.getInitThreshold.

Gets the initial threshold value common to all observed objects.

Returns:Number

The initial threshold.

See Also
setInitThreshold
getModulusback to summary
public synchronized Number getModulus()

Implements javax.management.monitor.CounterMonitorMBean.getModulus.

Gets the modulus value common to all observed MBeans.

Returns:Number

The modulus value.

See Also
setModulus
getNotificationInfoback to summary
public MBeanNotificationInfo[] getNotificationInfo()

Overrides javax.management.NotificationBroadcasterSupport.getNotificationInfo.

Implements javax.management.NotificationBroadcaster.getNotificationInfo.

Returns a NotificationInfo object containing the name of the Java class of the notification and the notification types sent by the counter monitor.

Returns:MBeanNotificationInfo[]

Doc from javax.management.NotificationBroadcaster.getNotificationInfo.

the array of possible notifications.

Annotations
@Override
getNotifyback to summary
public synchronized boolean getNotify()

Implements javax.management.monitor.CounterMonitorMBean.getNotify.

Gets the notification's on/off switch value common to all observed MBeans.

Returns:boolean

true if the counter monitor notifies when exceeding the threshold, false otherwise.

See Also
setNotify
getOffsetback to summary
public synchronized Number getOffset()

Implements javax.management.monitor.CounterMonitorMBean.getOffset.

Gets the offset value common to all observed MBeans.

Returns:Number

The offset value.

See Also
setOffset
getThresholdback to summary
public synchronized Number getThreshold(ObjectName object)

Implements javax.management.monitor.CounterMonitorMBean.getThreshold.

Gets the current threshold value of the specified object, if this object is contained in the set of observed MBeans, or null otherwise.

Parameters
object:ObjectName

the name of the object whose threshold is to be returned.

Returns:Number

The threshold value of the specified object.

getThresholdback to summary
public synchronized Number getThreshold()

Implements javax.management.monitor.CounterMonitorMBean.getThreshold.

Deprecated

As of JMX 1.2, replaced by getThreshold(ObjectName)

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

Returns:Number

The threshold value.

Annotations
@Deprecated
See Also
setThreshold
isComparableTypeValidback to summary
pack-priv synchronized boolean isComparableTypeValid(ObjectName object, String attribute, Comparable<?> value)

Overrides javax.management.monitor.Monitor.isComparableTypeValid.

This method globally sets the derived gauge type for the given "object" and "attribute" after checking that the type of the supplied observed attribute value is one of the value types supported by this monitor.

Annotations
@Override
isThresholdTypeValidback to summary
pack-priv synchronized boolean isThresholdTypeValid(ObjectName object, String attribute, Comparable<?> value)

Overrides javax.management.monitor.Monitor.isThresholdTypeValid.

Tests if the threshold, offset and modulus of the specified observed object are of the same type as the counter. Only integer types are allowed.

Note

If the optional offset or modulus have not been initialized, their default value is an Integer object with a value equal to zero.

Parameters
object:ObjectName

The observed object.

attribute:String

The observed attribute.

value:Comparable<?>

The sample value.

Returns:boolean

true if type is the same, false otherwise.

Annotations
@Override
onErrorNotificationback to summary
pack-priv synchronized void onErrorNotification(MonitorNotification notification)

Overrides javax.management.monitor.Monitor.onErrorNotification.

Annotations
@Override
setDerivedGaugeWithDifferenceback to summary
private synchronized void setDerivedGaugeWithDifference(Number scanCounter, Number mod, CounterMonitor.CounterMonitorObservedObject o)

Sets the derived gauge of the specified observed object when the differenceMode flag is set to true. Integer types only are allowed.

Parameters
scanCounter:Number

The value of the observed attribute.

mod:Number

The counter modulus value.

o:CounterMonitor.CounterMonitorObservedObject

The observed object.

setDifferenceModeback to summary
public synchronized void setDifferenceMode(boolean value)

Implements javax.management.monitor.CounterMonitorMBean.setDifferenceMode.

Sets the difference mode flag value common to all observed MBeans.

Parameters
value:boolean

The difference mode flag value.

See Also
getDifferenceMode
setInitThresholdback to summary
public synchronized void setInitThreshold(Number value) throws IllegalArgumentException

Implements javax.management.monitor.CounterMonitorMBean.setInitThreshold.

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.

Parameters
value:Number

The initial threshold value.

Exceptions
IllegalArgumentException:
The specified threshold is null or the threshold value is less than zero.
See Also
getInitThreshold
setModulusback to summary
public synchronized void setModulus(Number value) throws IllegalArgumentException

Implements javax.management.monitor.CounterMonitorMBean.setModulus.

Sets the modulus value common to all observed MBeans.

Parameters
value:Number

The modulus value.

Exceptions
IllegalArgumentException:
The specified modulus is null or the modulus value is less than zero.
See Also
getModulus
setNotifyback to summary
public synchronized void setNotify(boolean value)

Implements javax.management.monitor.CounterMonitorMBean.setNotify.

Sets the notification's on/off switch value common to all observed MBeans.

Parameters
value:boolean

The notification's on/off switch value.

See Also
getNotify
setOffsetback to summary
public synchronized void setOffset(Number value) throws IllegalArgumentException

Implements javax.management.monitor.CounterMonitorMBean.setOffset.

Sets the offset value common to all observed MBeans.

Parameters
value:Number

The offset value.

Exceptions
IllegalArgumentException:
The specified offset is null or the offset value is less than zero.
See Also
getOffset
setThresholdback to summary
public synchronized void setThreshold(Number value) throws IllegalArgumentException

Implements javax.management.monitor.CounterMonitorMBean.setThreshold.

Deprecated

As of JMX 1.2, replaced by setInitThreshold

Sets the initial threshold value.

Parameters
value:Number

The initial threshold value.

Annotations
@Deprecated
Exceptions
IllegalArgumentException:
The specified threshold is null or the threshold value is less than zero.
See Also
getThreshold()
startback to summary
public synchronized void start()

Implements abstract javax.management.monitor.Monitor.start.

Implements javax.management.monitor.MonitorMBean.start.

Starts the counter monitor.

stopback to summary
public synchronized void stop()

Implements abstract javax.management.monitor.Monitor.stop.

Implements javax.management.monitor.MonitorMBean.stop.

Stops the counter monitor.

updateDerivedGaugeback to summary
private synchronized boolean updateDerivedGauge(Object scanCounter, CounterMonitor.CounterMonitorObservedObject o)

Updates the derived gauge attribute of the observed object.

Parameters
scanCounter:Object

The value of the observed attribute.

o:CounterMonitor.CounterMonitorObservedObject

The observed object.

Returns:boolean

true if the derived gauge value is valid, false otherwise. The derived gauge value is invalid when the differenceMode flag is set to true and it is the first notification (so we haven't 2 consecutive values to update the derived gauge).

updateNotificationsback to summary
private synchronized MonitorNotification updateNotifications(CounterMonitor.CounterMonitorObservedObject o)

Updates the notification attribute of the observed object and notifies the listeners only once if the notify flag is set to true.

Parameters
o:CounterMonitor.CounterMonitorObservedObject

The observed object.

updateThresholdback to summary
private synchronized void updateThreshold(CounterMonitor.CounterMonitorObservedObject o)

Updates the threshold attribute of the observed object.

Parameters
o:CounterMonitor.CounterMonitorObservedObject

The observed object.

javax.management.monitor back to summary

pack-priv Class CounterMonitor.CounterMonitorObservedObject

extends ObservedObject
Class Inheritance

Field Summary

Modifier and TypeField and Description
private Number
private boolean
private boolean
private boolean
private Number
private Number
private Monitor.NumericalType

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final synchronized Number
public final synchronized boolean
public final synchronized boolean
public final synchronized boolean
public final synchronized Number
public final synchronized Number
public final synchronized Monitor.NumericalType
public final synchronized void
setDerivedGaugeExceeded(Number derivedGaugeExceeded)

public final synchronized void
setDerivedGaugeValid(boolean derivedGaugeValid)

public final synchronized void
setEventAlreadyNotified(boolean eventAlreadyNotified)

public final synchronized void
setModulusExceeded(boolean modulusExceeded)

public final synchronized void
setPreviousScanCounter(Number previousScanCounter)

public final synchronized void
setThreshold(Number threshold)

public final synchronized void
Inherited from javax.management.monitor.Monitor.ObservedObject:
getAlreadyNotifiedgetDerivedGaugegetDerivedGaugeTimeStampgetObservedObjectsetAlreadyNotifiedsetDerivedGaugesetDerivedGaugeTimeStamp

Field Detail

derivedGaugeExceededback to summary
private Number derivedGaugeExceeded
derivedGaugeValidback to summary
private boolean derivedGaugeValid
eventAlreadyNotifiedback to summary
private boolean eventAlreadyNotified
modulusExceededback to summary
private boolean modulusExceeded
previousScanCounterback to summary
private Number previousScanCounter
thresholdback to summary
private Number threshold
typeback to summary
private Monitor.NumericalType type

Constructor Detail

CounterMonitorObservedObjectback to summary
public CounterMonitorObservedObject(ObjectName observedObject)

Method Detail

getDerivedGaugeExceededback to summary
public final synchronized Number getDerivedGaugeExceeded()
getDerivedGaugeValidback to summary
public final synchronized boolean getDerivedGaugeValid()
getEventAlreadyNotifiedback to summary
public final synchronized boolean getEventAlreadyNotified()
getModulusExceededback to summary
public final synchronized boolean getModulusExceeded()
getPreviousScanCounterback to summary
public final synchronized Number getPreviousScanCounter()
getThresholdback to summary
public final synchronized Number getThreshold()
getTypeback to summary
public final synchronized Monitor.NumericalType getType()
setDerivedGaugeExceededback to summary
public final synchronized void setDerivedGaugeExceeded(Number derivedGaugeExceeded)
setDerivedGaugeValidback to summary
public final synchronized void setDerivedGaugeValid(boolean derivedGaugeValid)
setEventAlreadyNotifiedback to summary
public final synchronized void setEventAlreadyNotified(boolean eventAlreadyNotified)
setModulusExceededback to summary
public final synchronized void setModulusExceeded(boolean modulusExceeded)
setPreviousScanCounterback to summary
public final synchronized void setPreviousScanCounter(Number previousScanCounter)
setThresholdback to summary
public final synchronized void setThreshold(Number threshold)
setTypeback to summary
public final synchronized void setType(Monitor.NumericalType type)