public interface GaugeMonitorMBean extends MonitorMBean
Modifier and Type | Method and Description |
---|---|
Number |
getDerivedGauge()
已弃用
截至JMX 1.2,由
getDerivedGauge(ObjectName) 替代
|
Number |
getDerivedGauge(ObjectName object)
获取指定MBean的派生量规。
|
long |
getDerivedGaugeTimeStamp()
已弃用
截至JMX 1.2,由
getDerivedGaugeTimeStamp(ObjectName) 替代
|
long |
getDerivedGaugeTimeStamp(ObjectName object)
获取指定MBean的派生标尺时间戳。
|
boolean |
getDifferenceMode()
获取差分模式标志值。
|
Number |
getHighThreshold()
获得高阈值。
|
Number |
getLowThreshold()
获得低阈值。
|
boolean |
getNotifyHigh()
获取高通知的开/关开关值。
|
boolean |
getNotifyLow()
获取低通知的开/关开关值。
|
void |
setDifferenceMode(boolean value)
设置差模态标志值。
|
void |
setNotifyHigh(boolean value)
设置高通知的开/关开关值。
|
void |
setNotifyLow(boolean value)
设置低通知的开/关开关值。
|
void |
setThresholds(Number highValue, Number lowValue)
设置高和低阈值。
|
addObservedObject, containsObservedObject, getGranularityPeriod, getObservedAttribute, getObservedObject, getObservedObjects, isActive, removeObservedObject, setGranularityPeriod, setObservedAttribute, setObservedObject, start, stop
@Deprecated Number getDerivedGauge()
getDerivedGauge(ObjectName)
@Deprecated long getDerivedGaugeTimeStamp()
getDerivedGaugeTimeStamp(ObjectName)
替代
Number getDerivedGauge(ObjectName object)
object
- 要返回派生量规的MBean
null
null。
long getDerivedGaugeTimeStamp(ObjectName object)
object
- 要为其返回派生标尺时间戳的MBean
null
null。
Number getHighThreshold()
Number getLowThreshold()
void setThresholds(Number highValue, Number lowValue) throws IllegalArgumentException
highValue
- 高阈值。
lowValue
- 低阈值。
IllegalArgumentException
- 指定的高/低阈值为零或低阈值大于高阈值或高阈值,低阈值不是相同类型。
boolean getNotifyHigh()
true
如果仪表监视器在超过高阈值时通知,
false
false。
setNotifyHigh(boolean)
void setNotifyHigh(boolean value)
value
- 高通知的开/关开关值。
getNotifyHigh()
boolean getNotifyLow()
true
如果量规监测器在超过低阈值时通知,
false
false。
setNotifyLow(boolean)
void setNotifyLow(boolean value)
value
- 低通知的开/关开关值。
getNotifyLow()
boolean getDifferenceMode()
true
如果使用差异模式,
false
false。
setDifferenceMode(boolean)
void setDifferenceMode(boolean value)
value
- 差异模式标志值。
getDifferenceMode()
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.