|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
java.lang.Objectjava.util.EventObject
javax.management.Notification
javax.management.AttributeChangeNotification
public class AttributeChangeNotification
MBean 에 의해 송신되는 속성 변경 통지를 정의합니다.
속성이 변경되었을 때 속성 변경 통지를 작성해, 송신하는 것은, 그 속성을 소유하는 MBean 입니다. 따라서, 속성이 변경되는 MBean 는,NotificationBroadcaster
인터페이스를 구현할 필요가 있습니다.
예:MBean 에 의해 불려 가는 myMbean
는, 다음의 속성이 변경되었을 때, 등록을 마친 청취자에게 통지를 보낼 필요가 있습니다.
String myString
myMbean
에 의해 작성되어 송신되는 통지의 내용은 다음과 같습니다.
new AttributeChangeNotification(myMbean, sequenceNumber, timeStamp, msg, "myString", "String", oldValue, newValue);
필드의 개요 | |
---|---|
static String |
ATTRIBUTE_CHANGE
감시 대상의 MBean 속성치가 변경된 것을 나타내는 통지형입니다. |
클래스 javax.management. Notification 로부터 상속된 필드 |
---|
source |
생성자 의 개요 | |
---|---|
AttributeChangeNotification (Object source,
long sequenceNumber,
long timeStamp,
String msg,
String attributeName,
String attributeType,
Object oldValue,
Object newValue)
속성 변경 통지 객체를 구축합니다. |
메소드의 개요 | |
---|---|
String |
getAttributeName ()
변경된 속성의 이름을 가져옵니다. |
String |
getAttributeType ()
변경된 속성의 형태를 가져옵니다. |
Object |
getNewValue ()
변경된 속성의 새로운 값을 가져옵니다. |
Object |
getOldValue ()
변경된 속성의 낡은 값을 가져옵니다. |
클래스 javax.management. Notification 로부터 상속된 메소드 |
---|
getMessage , getSequenceNumber , getTimeStamp , getType , getUserData , setSequenceNumber , setSource , setTimeStamp , setUserData , toString |
클래스 java.util. EventObject 로부터 상속된 메소드 |
---|
getSource |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
필드의 상세 |
---|
public static final String ATTRIBUTE_CHANGE
jmx.attribute.change
입니다.
생성자 의 상세 |
---|
public AttributeChangeNotification(Object source, long sequenceNumber, long timeStamp, String msg, String attributeName, String attributeType, Object oldValue, Object newValue)
source
- 통지의 작성원. 그 속성을 소유하는 MBeansequenceNumber
- 소스 객체내의 통지 순서 번호timeStamp
- 통지가 송신되는 일자msg
- 통지의 메세지를 포함한 StringattributeName
- 속성의 이름을 지정하는 StringattributeType
- 속성의 형태를 포함한 StringoldValue
- 속성의 변경전의 값을 나타내는 객체newValue
- 속성의 변경 후의 값을 나타내는 객체메소드의 상세 |
---|
public String getAttributeName()
public String getAttributeType()
public Object getOldValue()
public Object getNewValue()
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.