public interface CounterMonitorMBean extends MonitorMBean
Exposes the remote management interface of the counter monitor MBean.
@Deprecated Number getDerivedGauge()
Deprecated. As of JMX 1.2, replaced by getDerivedGauge(ObjectName)
Gets the derived gauge.
@Deprecated long getDerivedGaugeTimeStamp()
Deprecated. As of JMX 1.2, replaced by getDerivedGaugeTimeStamp(ObjectName)
Gets the derived gauge timestamp.
@Deprecated Number getThreshold()
Deprecated. As of JMX 1.2, replaced by getThreshold(ObjectName)
Gets the threshold value.
setThreshold(Number)
@Deprecated void setThreshold(Number value) throws IllegalArgumentException
Deprecated. As of JMX 1.2, replaced by setInitThreshold(java.lang.Number)
Sets the threshold value.
value
- The threshold value.IllegalArgumentException
- The specified threshold is null or the threshold value is less than zero.getThreshold()
Number getDerivedGauge(ObjectName object)
Gets the derived gauge for the specified MBean.
object
- the MBean for which the derived gauge is to be returnednull
otherwise.long getDerivedGaugeTimeStamp(ObjectName object)
Gets the derived gauge timestamp for the specified MBean.
object
- the MBean for which the derived gauge timestamp is to be returnednull
otherwise.Number getThreshold(ObjectName object)
Gets the threshold value for the specified MBean.
object
- the MBean for which the threshold value is to be returnednull
otherwise.setThreshold(java.lang.Number)
Number getInitThreshold()
Gets the initial threshold value common to all observed objects.
setInitThreshold(java.lang.Number)
void setInitThreshold(Number value) throws IllegalArgumentException
Sets the initial threshold value common to all observed MBeans.
value
- The initial threshold value.IllegalArgumentException
- The specified threshold is null or the threshold value is less than zero.getInitThreshold()
Number getOffset()
Gets the offset value.
setOffset(Number)
void setOffset(Number value) throws IllegalArgumentException
Sets the offset value.
value
- The offset value.IllegalArgumentException
- The specified offset is null or the offset value is less than zero.getOffset()
Number getModulus()
Gets the modulus value.
setModulus(java.lang.Number)
void setModulus(Number value) throws IllegalArgumentException
Sets the modulus value.
value
- The modulus value.IllegalArgumentException
- The specified modulus is null or the modulus value is less than zero.getModulus()
boolean getNotify()
Gets the notification's on/off switch value.
true
if the counter monitor notifies when exceeding the threshold, false
otherwise.setNotify(boolean)
void setNotify(boolean value)
Sets the notification's on/off switch value.
value
- The notification's on/off switch value.getNotify()
boolean getDifferenceMode()
Gets the difference mode flag value.
true
if the difference mode is used, false
otherwise.setDifferenceMode(boolean)
void setDifferenceMode(boolean value)
Sets the difference mode flag value.
value
- The difference mode flag value.getDifferenceMode()
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.