|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjavax.management.NotificationBroadcasterSupport
javax.management.monitor.Monitor
javax.management.monitor.CounterMonitor
public class CounterMonitor
카운터 속성의 값을 감시하도록(듯이) 설계된 모니터 MBean 를 정의합니다.
카운터 모니터는, 카운터의 값이 비교 레벨로서 알려지고 임계치(threshold) 이상이 되면(자),threshold notification
를 송신합니다. 통지 플래그는 true
로 설정할 필요가 있습니다.
게다가 오프셋(offset) 기구에 의해, 특정의 카운트 간격을 검출할 수 있습니다. 오프셋(offset)치가 0 이외의 경우, 카운터치가 비교 레벨에 이르러, 임계치가 트리거되면(자), 이 비교 레벨의 값이 오프셋(offset)치분증가합니다. 이 처리는 카운트가 증가하기 전에 순간적으로 행해집니다. 이 때문에, 각 레벨로, 오프셋(offset)치에 동일한 간격으로 카운트가 증가할 때마다, 임계치에 의해 이벤트 통지가 트리거됩니다.
카운터가 최대치를 랩 할 수 있는 경우, 계수(modulus)를 지정할 필요가 있습니다. 계수(modulus)는, 카운터가 제로에 리셋 되는 값입니다.
카운터 차분 모드에서는, 연속한 2 회의 관측에 의해 검출된 2 개의 카운터치의 차분으로서 파생 게이지의 값이 계산됩니다. 이 차분이 부의 수의 경우, 파생 게이지의 값에 계수(modulus)치가 추가됩니다. 파생 게이지의 값 (V[t])은, 다음과 같이 해 계산됩니다.
Byte
,Integer
,Short
,Long
)이 아니면 안됩니다.
필드의 개요 |
---|
클래스 javax.management.monitor. Monitor 로부터 상속된 필드 |
---|
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 |
생성자 의 개요 | |
---|---|
CounterMonitor ()
디폴트의 생성자 입니다. |
메소드의 개요 | |
---|---|
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 ()
감시 대상의 MBean 모두에게 공통의 차분 모드 플래그치를 가져옵니다. |
Number |
getInitThreshold ()
감시 대상 객체 모두에게 공통의 초기 임계치를 가져옵니다. |
Number |
getModulus ()
감시 대상의 MBean 모두에게 공통의 계수(modulus)치를 가져옵니다. |
MBeanNotificationInfo [] |
getNotificationInfo ()
통지의 Java 클래스명과 카운터 모니터에 의해 송신되는 통지형을 포함한 NotificationInfo 객체를 돌려줍니다. |
boolean |
getNotify ()
감시 대상의 MBean 모두에게 공통의 통지의 온/오프 스위치 값를 가져옵니다. |
Number |
getOffset ()
감시 대상의 MBean 모두에게 공통의 오프셋(offset)치를 가져옵니다. |
Number |
getThreshold ()
추천 되고 있지 않습니다. JMX 1.2 이후, getThreshold(ObjectName) 으로 치환되고 있습니다. |
Number |
getThreshold (ObjectName object)
지정의 객체가 감시 대상의 MBean 세트에 포함되는 경우, 이 객체의 현재의 임계치를 가져옵니다. |
void |
setDifferenceMode (boolean value)
감시 대상의 MBean 모두에게 공통의 차분 모드 플래그치를 설정합니다. |
void |
setInitThreshold (Number value)
감시 대상의 객체 모두에게 공통의 초기 임계치를 설정합니다. |
void |
setModulus (Number value)
감시 대상의 MBean 모두에게 공통의 계수(modulus)치를 설정합니다. |
void |
setNotify (boolean value)
감시 대상의 MBean 모두에게 공통의 통지의 온/오프 스위치 값를 설정합니다. |
void |
setOffset (Number value)
감시 대상의 MBean 모두에게 공통의 오프셋(offset)치를 설정합니다. |
void |
setThreshold (Number value)
추천 되고 있지 않습니다. JMX 1.2 이후, setInitThreshold(java.lang.Number) 로 치환되고 있습니다. |
void |
start ()
카운터 모니터를 개시합니다. |
void |
stop ()
카운터 모니터를 정지합니다. |
클래스 javax.management.monitor. Monitor 로부터 상속된 메소드 |
---|
addObservedObject , containsObservedObject , getGranularityPeriod , getObservedAttribute , getObservedObject , getObservedObjects , isActive , postDeregister , postRegister , preDeregister , preRegister , removeObservedObject , setGranularityPeriod , setObservedAttribute , setObservedObject |
클래스 javax.management. NotificationBroadcasterSupport 로부터 상속된 메소드 |
---|
addNotificationListener , handleNotification , removeNotificationListener , removeNotificationListener , sendNotification |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
인터페이스 javax.management.monitor. MonitorMBean 로부터 상속된 메소드 |
---|
addObservedObject , containsObservedObject , getGranularityPeriod , getObservedAttribute , getObservedObject , getObservedObjects , isActive , removeObservedObject , setGranularityPeriod , setObservedAttribute , setObservedObject |
생성자 의 상세 |
---|
public CounterMonitor()
메소드의 상세 |
---|
public void start()
MonitorMBean
내의 start
Monitor
내의 start
public void stop()
MonitorMBean
내의 stop
Monitor
내의 stop
public Number getDerivedGauge(ObjectName object)
null
를 가져옵니다.
CounterMonitorMBean
내의 getDerivedGauge
object
- 객체의 이름.
이 객체의 파생 게이지가 반환된다
public long getDerivedGaugeTimeStamp(ObjectName object)
0
을 가져옵니다.
CounterMonitorMBean
내의 getDerivedGaugeTimeStamp
object
- 객체의 이름.
이 객체의 파생 게이지의 타임 스탬프가 반환된다
public Number getThreshold(ObjectName object)
null
를 가져옵니다.
CounterMonitorMBean
내의 getThreshold
object
- 객체의 이름.
이 객체의 임계치가 반환된다
CounterMonitorMBean.setThreshold(java.lang.Number)
public Number getInitThreshold()
CounterMonitorMBean
내의 getInitThreshold
setInitThreshold(java.lang.Number)
public void setInitThreshold(Number value) throws IllegalArgumentException
CounterMonitorMBean
내의 setInitThreshold
value
- 초기 임계치
IllegalArgumentException
- 지정되었다
임계치가 null 인가, 제로보다 작은 경우getInitThreshold()
@Deprecated public Number getDerivedGauge()
getDerivedGauge(ObjectName)
로 치환되고 있습니다.
CounterMonitorMBean
내의 getDerivedGauge
@Deprecated public long getDerivedGaugeTimeStamp()
getDerivedGaugeTimeStamp(ObjectName)
로 치환되고 있습니다.
CounterMonitorMBean
내의 getDerivedGaugeTimeStamp
@Deprecated public Number getThreshold()
getThreshold(ObjectName)
로 치환되고 있습니다.
CounterMonitorMBean
내의 getThreshold
setThreshold(java.lang.Number)
@Deprecated public void setThreshold(Number value) throws IllegalArgumentException
setInitThreshold(java.lang.Number)
로 치환되고 있습니다.
CounterMonitorMBean
내의 setThreshold
value
- 초기 임계치
IllegalArgumentException
- 지정되었고 임계치(threshold)가 null 인가,
제로보다 작은 경우getThreshold()
public Number getOffset()
CounterMonitorMBean
내의 getOffset
setOffset(java.lang.Number)
public void setOffset(Number value) throws IllegalArgumentException
CounterMonitorMBean
내의 setOffset
value
- 오프셋(offset)치
IllegalArgumentException
- 지정되었다
오프셋(offset)치가 null 인가, 제로보다 작은 경우getOffset()
public Number getModulus()
CounterMonitorMBean
내의 getModulus
setModulus(java.lang.Number)
public void setModulus(Number value) throws IllegalArgumentException
CounterMonitorMBean
내의 setModulus
value
- 계수(modulus)치
IllegalArgumentException
- 지정되었다
계수(modulus)치가 null 인가, 제로보다 작은 경우getModulus()
public boolean getNotify()
CounterMonitorMBean
내의 getNotify
true
,
그렇지 않은 경우는 false
setNotify(boolean)
public void setNotify(boolean value)
CounterMonitorMBean
내의 setNotify
value
- 통지의 온/오프 스위치 값getNotify()
public boolean getDifferenceMode()
CounterMonitorMBean
내의 getDifferenceMode
true
,
그렇지 않은 경우는 false
setDifferenceMode(boolean)
public void setDifferenceMode(boolean value)
CounterMonitorMBean
내의 setDifferenceMode
value
- 차분 모드 플래그치getDifferenceMode()
public MBeanNotificationInfo [] getNotificationInfo()
NotificationInfo
객체를 돌려줍니다.
NotificationBroadcaster
내의 getNotificationInfo
NotificationBroadcasterSupport
내의 getNotificationInfo
|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.