javax.management.monitor
Interface CounterMonitorMBean

All Known Implementing Classes:

CounterMonitor

public interface CounterMonitorMBean

extends MonitorMBean

Exposes the remote management interface of the counter monitor MBean.

Version:

1.5

Author:

Max Parlione, Maurizio Simeoni, Massimo Tarquini

 

Method Summary

 java.lang.Number getDerivedGauge()
    Gets the derived gauge.
 long getDerivedGaugeTimeStamp()
    Gets the derived gauge timestamp.
 boolean getDifferenceMode()
    Gets the difference mode flag value.
 java.lang.Number getModulus()
    Gets the modulus value.
 boolean getNotify()
    Gets the notification's on/off switch value.
 java.lang.Number getOffset()
    Gets the offset value.
 java.lang.Number getThreshold()
    Gets the threshold value.
 void setDifferenceMode(boolean value)
    Sets the difference mode flag value.
 void setModulus(java.lang.Number value)
    Sets the modulus value.
 void setNotify(boolean value)
    Sets the notification's on/off switch value.
 void setOffset(java.lang.Number value)
    Sets the offset value.
 void setThreshold(java.lang.Number value)
    Sets the threshold value.
 
Methods inherited from interface javax.management.monitor.MonitorMBean
getGranularityPeriod, getObservedAttribute, getObservedObject, isActive, setGranularityPeriod, setObservedAttribute, setObservedObject, start, stop
 

 

Method Detail

getDerivedGauge

public java.lang.Number getDerivedGauge()

Gets the derived gauge.

 

Returns:

The derived gauge.

getDerivedGaugeTimeStamp

public long getDerivedGaugeTimeStamp()

Gets the derived gauge timestamp.

 

Returns:

The derived gauge timestamp.

getDifferenceMode

public boolean getDifferenceMode()

Gets the difference mode flag value.

 

Returns:

true if the difference mode is used, false otherwise.

getModulus

public java.lang.Number getModulus()

Gets the modulus value.

 

Returns:

The modulus value.

getNotify

public boolean getNotify()

Gets the notification's on/off switch value.

 

Returns:

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

getOffset

public java.lang.Number getOffset()

Gets the offset value.

 

Returns:

The offset value.

getThreshold

public java.lang.Number getThreshold()

Gets the threshold value.

 

Returns:

The threshold value.

setDifferenceMode

public void setDifferenceMode(boolean value)

Sets the difference mode flag value.

 

Parameters:

value - The difference mode flag value.

setModulus

public void setModulus(java.lang.Number value)
                throws java.lang.IllegalArgumentException

Sets the modulus value.

 

Parameters:

value - The modulus value.

 

Throws:

java.lang.IllegalArgumentException - The specified modulus is null or the modulus value is less than zero.

setNotify

public void setNotify(boolean value)

Sets the notification's on/off switch value.

 

Parameters:

value - The notification's on/off switch value.

setOffset

public void setOffset(java.lang.Number value)
               throws java.lang.IllegalArgumentException

Sets the offset value.

 

Parameters:

value - The offset value.

 

Throws:

java.lang.IllegalArgumentException - The specified offset is null or the offset value is less than zero.

setThreshold

public void setThreshold(java.lang.Number value)
                  throws java.lang.IllegalArgumentException

Sets the threshold value.

 

Parameters:

value - The threshold value.

 

Throws:

java.lang.IllegalArgumentException - The specified threshold is null or the threshold value is less than zero.