public class GaugeMonitor extends Monitor implements GaugeMonitorMBean
规范监视器观察到一个与时间连续变量的属性。仪表监视器发送通知如下:
threshold high notification
发送。通知高标志必须设置true
。threshold low notification
发送。通知低标志必须设置true
。如果使用规范差分模式,计算派生表的值,计算所观察到的两个连续观测值之间的差值。
the派生表值(V [t])是用以下方法计算:
Byte
,
Integer
,
Short
,
Long
,
Float
,
Double
)。
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 and Description |
---|
GaugeMonitor()
默认构造函数。
|
Modifier and Type | Method and Description |
---|---|
Number |
getDerivedGauge()
过时的。
作为JMX 1.2,取而代之的
getDerivedGauge(ObjectName)
|
Number |
getDerivedGauge(ObjectName object)
获取指定对象的派生表,如果该对象包含在观察MBeans的集合,或
null 否则。
|
long |
getDerivedGaugeTimeStamp()
过时的。
作为JMX 1.2,取而代之的
getDerivedGaugeTimeStamp(ObjectName)
|
long |
getDerivedGaugeTimeStamp(ObjectName object)
获取派生表的时间戳指定对象,如果该对象包含在观察MBeans的集合,或
0 否则。
|
boolean |
getDifferenceMode()
得到差分模式的标志值的所有观察到的MBeans常见。
|
Number |
getHighThreshold()
获取高阈值的所有观察到的MBeans常见。
|
Number |
getLowThreshold()
获得低阈值的所有观察到的MBeans常见。
|
MBeanNotificationInfo[] |
getNotificationInfo()
返回一个包含
NotificationInfo 对象的通知和仪表监控发送的通知类型的java类的名称。
|
boolean |
getNotifyHigh()
获取高通知的开关值,所有观察到的MBeans常见。
|
boolean |
getNotifyLow()
得到通知的低开关值的所有观察到的MBeans常见。
|
void |
setDifferenceMode(boolean value)
设置不同模式的标志值的所有观察到的MBeans常见。
|
void |
setNotifyHigh(boolean value)
集高通知的开关值,所有观察到的MBeans常见。
|
void |
setNotifyLow(boolean value)
设置低通知的开关值,所有观察到的MBeans常见。
|
void |
setThresholds(Number highValue, Number lowValue)
设置高、低阈值,所有观察到的MBeans常见。
|
void |
start()
启动仪表监视器。
|
void |
stop()
停止仪表监视器。
|
addObservedObject, containsObservedObject, getGranularityPeriod, getObservedAttribute, getObservedObject, getObservedObjects, isActive, postDeregister, postRegister, preDeregister, preRegister, removeObservedObject, setGranularityPeriod, setObservedAttribute, setObservedObject
addNotificationListener, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addObservedObject, containsObservedObject, getGranularityPeriod, getObservedAttribute, getObservedObject, getObservedObjects, isActive, removeObservedObject, setGranularityPeriod, setObservedAttribute, setObservedObject
public void start()
start
接口
MonitorMBean
start
方法重写,继承类
Monitor
public void stop()
stop
接口
MonitorMBean
stop
方法重写,继承类
Monitor
public Number getDerivedGauge(ObjectName object)
null
否则。
getDerivedGauge
接口
GaugeMonitorMBean
object
- MBean的名字。
public long getDerivedGaugeTimeStamp(ObjectName object)
0
否则。
getDerivedGaugeTimeStamp
接口
GaugeMonitorMBean
object
-的派生表的时间戳是要返回的对象的名称。
@Deprecated public Number getDerivedGauge()
getDerivedGauge(ObjectName)
getDerivedGauge
接口
GaugeMonitorMBean
@Deprecated public long getDerivedGaugeTimeStamp()
getDerivedGaugeTimeStamp(ObjectName)
getDerivedGaugeTimeStamp
接口
GaugeMonitorMBean
public Number getHighThreshold()
getHighThreshold
接口
GaugeMonitorMBean
setThresholds(java.lang.Number, java.lang.Number)
public Number getLowThreshold()
getLowThreshold
接口
GaugeMonitorMBean
setThresholds(java.lang.Number, java.lang.Number)
public void setThresholds(Number highValue, Number lowValue) throws IllegalArgumentException
setThresholds
接口
GaugeMonitorMBean
highValue
-高阈值。
lowValue
-低阈值。
IllegalArgumentException
-指定的高/低阈值为零或低阈值大于高阈值或高阈值和低阈值的不同类型的。
getHighThreshold()
,
getLowThreshold()
public boolean getNotifyHigh()
getNotifyHigh
接口
GaugeMonitorMBean
true
如果计监测通知当超过门槛高,
false
否则。
setNotifyHigh(boolean)
public void setNotifyHigh(boolean value)
setNotifyHigh
接口
GaugeMonitorMBean
value
-高通知的开关/价值。
getNotifyHigh()
public boolean getNotifyLow()
getNotifyLow
接口
GaugeMonitorMBean
true
如果计监测通知当超过阈值低,
false
否则。
setNotifyLow(boolean)
public void setNotifyLow(boolean value)
setNotifyLow
接口
GaugeMonitorMBean
value
-低通知的开关/价值。
getNotifyLow()
public boolean getDifferenceMode()
getDifferenceMode
接口
GaugeMonitorMBean
true
如果差异模式的使用,
false
否则。
setDifferenceMode(boolean)
public void setDifferenceMode(boolean value)
setDifferenceMode
接口
GaugeMonitorMBean
value
-差分模式的标志值。
getDifferenceMode()
public MBeanNotificationInfo[] getNotificationInfo()
NotificationInfo
对象。
getNotificationInfo
接口
NotificationBroadcaster
getNotificationInfo
方法重写,继承类
NotificationBroadcasterSupport
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.