|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjavax.management.StandardMBean
public class StandardMBean
Java 인터페이스의 리플렉션에 의해 관리 인터페이스를 결정하는 MBean 입니다.
이 클래스는, Standard MBean 의 사용에 있어서의 관리 인터페이스의 개념의 유연성을 향상시킵니다. JMX 스펙에 설명되고 있는 Standard MBean 의 패턴의 단순한 사용 방법에는, MBean 의 구현 클래스와 관리 인터페이스간에 고정한 관계가 있다고 설명되고 있습니다 (즉, 구현 클래스가 Thing 의 경우, 관리 인터페이스는 ThingMBean 가 아니면 안된다). 이 클래스는, 구현 클래스와 인터페이스 클래스간의 이름의 관련성을 필요로 하지 않고, Java 인터페이스에 의한 관리 인터페이스의 지정에 도움이 됩니다.
MBean 로부터 DynamicMBean 를 제외하는 것으로써, 이 클래스는, MBean 가 구현하는 임의의 인터페이스를 관리 인터페이스로서 선택할 수 있습니다. 다만, JMX 패턴에 준거하는 인터페이스가 아니면 안됩니다 (취득 메소드 또는 설정 메소드에 의해 정의된 속성 등).
이 클래스는, DynamicMBean 인터페이스로부터 반환되는 MBeanInfo
에 커스텀의 기술과 이름을 할당할 수가 있는 훅을 제공합니다.
이 클래스를 사용해, 임의의 구현 클래스명 Impl 와 임의의 인터페이스 Intf 로 정의된 관리 인터페이스 (현재의 Standard MBean 용)를 지정해 MBean 를 작성할 수 있습니다. 일반적으로, 다음의 몇개의 작성 방법을 선택합니다.
StandardMBean(impl, interface)
를 사용
MBeanServer mbs; ... Impl impl = new Impl(...); StandardMBean mbean = new StandardMBean(impl, Intf.class, false); mbs.registerMBean(mbean, objectName);
public class Impl extends StandardMBean implements Intf { public Impl() { super(Intf.class, false); } // implement methods of Intf } [...] MBeanServer mbs; .... Impl impl = new Impl(); mbs.registerMBean(impl, objectName);
어느 경우도, 클래스 Impl 는 인터페이스 Intf 를 구현할 필요가 있습니다.
구현 클래스와 인터페이스 클래스간의 이름의 관련성에 근거한 Standard MBean 도, 계속 사용 가능합니다.
이 클래스는, MXBean 의 구축에도 사용할 수 있습니다. 사용법은, 위의 예의 생성자 에게 건네지는 false
파라미터 또는 super(...)
의 호출이 대신에 true
가 되는 것을 제외해, Standard MBean 와 완전히 같습니다.
생성자 의 개요 | |
---|---|
protected |
StandardMBean (Class <? > mbeanInterface)
특정의 mbeanInterface 클래스를 사용해, DynamicMBean 를 this 로부터 제외합니다. |
protected |
StandardMBean (Class <? > mbeanInterface,
boolean isMXBean)
특정의 mbeanInterface 클래스를 사용해, DynamicMBean 를 this 로부터 제외합니다. |
|
StandardMBean (T implementation,
Class <T> mbeanInterface)
특정의 mbeanInterface 클래스를 사용해, DynamicMBean 를 객체 implementation 로부터 제외합니다. |
|
StandardMBean (T implementation,
Class <T> mbeanInterface,
boolean isMXBean)
특정의 mbeanInterface 클래스를 사용해, DynamicMBean 를 객체 implementation 로부터 제외합니다. |
메소드의 개요 | |
---|---|
protected void |
cacheMBeanInfo (MBeanInfo info)
커스터마이즈 훅:이 객체용으로 구축된 MBeanInfo 를 캐쉬에 넣습니다. |
Object |
getAttribute (String attribute)
Dynamic MBean 의 특정의 속성의 값을 가져옵니다. |
AttributeList |
getAttributes (String [] attributes)
Dynamic MBean 의 복수의 속성의 값을 가져옵니다. |
protected MBeanInfo |
getCachedMBeanInfo ()
커스터마이즈 훅:이 객체용으로 캐쉬된 MBeanInfo 를 돌려줍니다. |
protected String |
getClassName (MBeanInfo info)
커스터마이즈 훅:이 MBean 로부터 반환되는 MBeanInfo 내에서 사용되는 className 를 가져옵니다. |
protected MBeanConstructorInfo [] |
getConstructors (MBeanConstructorInfo [] ctors,
Object impl)
커스터마이즈 훅:이 MBean 로부터 반환되는 MBeanInfo 로 사용되는 MBeanConstructorInfo[] 를 가져옵니다. |
protected String |
getDescription (MBeanAttributeInfo info)
커스터마이즈 훅:이 MBean 가 돌려주는 MBeanAttributeInfo 내에서 사용되는 설명을 가져옵니다. |
protected String |
getDescription (MBeanConstructorInfo info)
커스터마이즈 훅:이 MBean 로부터 반환되는 MBeanConstructorInfo 내에서 사용되는 설명을 가져옵니다. |
protected String |
getDescription (MBeanConstructorInfo ctor,
MBeanParameterInfo param,
int sequence)
커스터마이즈 훅:이 MBean 로부터 반환되는 MBeanConstructorInfo 의 sequence MBeanParameterInfo 에 사용되는 설명을 가져옵니다. |
protected String |
getDescription (MBeanFeatureInfo info)
커스터마이즈 훅:이 MBean 가 돌려주는 MBeanFeatureInfo 내에서 사용되는 설명을 가져옵니다. |
protected String |
getDescription (MBeanInfo info)
커스터마이즈 훅:이 MBean 로부터 반환되는 MBeanInfo 내에서 사용되는 설명을 가져옵니다. |
protected String |
getDescription (MBeanOperationInfo info)
커스터마이즈 훅:이 MBean 로부터 반환되는 MBeanOperationInfo 내에서 사용되는 설명을 가져옵니다. |
protected String |
getDescription (MBeanOperationInfo op,
MBeanParameterInfo param,
int sequence)
커스터마이즈 훅:이 MBean 로부터 반환되는 MBeanOperationInfo 의 sequence MBeanParameterInfo 에 사용되는 설명을 가져옵니다. |
protected int |
getImpact (MBeanOperationInfo info)
커스터마이즈 훅:이 MBean 로부터 반환되는 MBeanOperationInfo 로 사용되는 오퍼레이션의 impact 플래그를 가져옵니다. |
Object |
getImplementation ()
이 Standard MBean (또는 MXBean)의 구현을 가져옵니다. |
Class <? > |
getImplementationClass ()
이 Standard MBean (또는 MXBean)의 구현의 클래스를 가져옵니다. |
MBeanInfo |
getMBeanInfo ()
이 MBean MBeanInfo 를 가져옵니다. |
Class <? > |
getMBeanInterface ()
이 Standard MBean (또는 MXBean)의 관리 인터페이스를 가져옵니다. |
protected String |
getParameterName (MBeanConstructorInfo ctor,
MBeanParameterInfo param,
int sequence)
커스터마이즈 훅:이 MBean 로부터 반환되는 MBeanConstructorInfo 의 sequence MBeanParameterInfo 에 사용되는 이름을 가져옵니다. |
protected String |
getParameterName (MBeanOperationInfo op,
MBeanParameterInfo param,
int sequence)
커스터마이즈 훅:이 MBean 로부터 반환되는 MBeanOperationInfo 의 sequence MBeanParameterInfo 에 사용되는 이름을 가져옵니다. |
Object |
invoke (String actionName,
Object [] params,
String [] signature)
Dynamic MBean 상에서의 액션의 실행을 허가합니다. |
void |
postDeregister ()
MBean 서버로부터 등록 해제한 뒤, MBean 가 필요한 오퍼레이션을 실행할 수 있도록(듯이) 합니다. |
void |
postRegister (Boolean registrationDone)
MBean 서버에의 등록이 성공 또는 실패한 뒤, MBean 가 필요한 오퍼레이션을 실행할 수 있도록(듯이) 합니다. |
void |
preDeregister ()
MBean 서버로부터 등록 해제하기 전에, MBean 가 필요한 오퍼레이션을 실행할 수 있도록(듯이) 합니다. |
ObjectName |
preRegister (MBeanServer server,
ObjectName name)
MBean 서버에 등록하기 전에, MBean 에 필요한 오퍼레이션을 실행시킬 수가 있습니다. |
void |
setAttribute (Attribute attribute)
Dynamic MBean 의 특정의 속성의 값을 설정합니다. |
AttributeList |
setAttributes (AttributeList attributes)
Dynamic MBean 의 복수의 속성의 값을 설정합니다. |
void |
setImplementation (Object implementation)
이 객체내의 랩 된 구현 객체를 치환합니다. |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
생성자 의 상세 |
---|
public StandardMBean(T implementation, Class <T> mbeanInterface) throws NotCompliantMBeanException
특정의 mbeanInterface 클래스를 사용해, DynamicMBean 를 객체 implementation 로부터 제외합니다.
T
- mbeanInterface
로 기술된 클래스를 implementation
가
실제로 구현하고 있는지 체크하는 것을
컴파일러에 허가한다. 컴파일러가 이 체크를 실행할 수 있는 것은,
mbeanInterface
가 MyMBean.class
등의
클래스 리터럴인 경우만implementation
- 이 MBean 의 구현mbeanInterface
- 이 MBean 의 구현에 의해 export 된다
관리 인터페이스. null
의 경우, 이
객체는 표준 JMX 설계 패턴을 사용해,
지정된 구현에 관련지을 수 있었던 관리 인터페이스를
특정한다
IllegalArgumentException
- 지정되었다
implementation 가 null 의 경우
NotCompliantMBeanException
- mbeanInterface 가
관리 인터페이스의 JMX 설계 패턴에 따르지 않은 경우, 또는
지정된 implementation 가
특정의 인터페이스를 구현하고 있지 않는 경우protected StandardMBean(Class <? > mbeanInterface) throws NotCompliantMBeanException
특정의 mbeanInterface 클래스를 사용해, DynamicMBean 를 this 로부터 제외합니다.
this(this, mbeanInterface)
를 호출합니다. 이 생성자 은 서브 클래스용으로서 예약되고 있습니다.
mbeanInterface
- 이 MBean 에 의해 export 된다
관리 인터페이스
NotCompliantMBeanException
- mbeanInterface 가
관리 인터페이스의 JMX 설계 패턴에 따르지 않은 경우, 또는
this 가 특정의 인터페이스를 구현하고 있지 않는 경우public StandardMBean(T implementation, Class <T> mbeanInterface, boolean isMXBean)
특정의 mbeanInterface 클래스를 사용해, DynamicMBean 를 객체 implementation 로부터 제외합니다. 이 생성자 은, Standard MBean 또는 MXBean 의 작성에 사용할 수 있습니다. StandardMBean(Object, Class)
생성자 과는 달라, 이것은 NotCompliantMBeanException 를 throw 하지 않습니다.
T
- mbeanInterface
로 기술된 클래스를 implementation
가
실제로 구현하고 있는지 체크하는 것을
컴파일러에 허가한다. 컴파일러가 이 체크를 실행할 수 있는 것은,
mbeanInterface
가 MyMBean.class
등의
클래스 리터럴인 경우만implementation
- 이 MBean 의 구현mbeanInterface
- 이 MBean 의 구현에 의해 export 된다
관리 인터페이스. null
의 경우, 이
객체는 표준 JMX 설계 패턴을 사용해,
지정된 구현에 관련지을 수 있었던 관리 인터페이스를
특정하는isMXBean
- true 의 경우,mbeanInterface
파라미터에 의해
MXBean 인터페이스가 명명되어 생성되는 MBean 는 MXBean 가 된다
IllegalArgumentException
- 지정되었다
implementation 가 null 의 경우,mbeanInterface 가
관리 인터페이스의 JMX 설계 패턴에 따르지 않은 경우, 또는
지정된 implementation 가
특정의 인터페이스를 구현하고 있지 않는 경우protected StandardMBean(Class <? > mbeanInterface, boolean isMXBean)
특정의 mbeanInterface 클래스를 사용해, DynamicMBean 를 this 로부터 제외합니다. 이 생성자 은, Standard MBean 또는 MXBean 의 작성에 사용할 수 있습니다. StandardMBean(Object, Class)
생성자 과는 달라, 이것은 NotCompliantMBeanException 를 throw 하지 않습니다.
this(this, mbeanInterface, isMXBean)
를 호출합니다. 이 생성자 은 서브 클래스용으로서 예약되고 있습니다.
mbeanInterface
- 이 MBean 에 의해 export 된다
관리 인터페이스isMXBean
- true 의 경우,mbeanInterface
파라미터에 의해
MXBean 인터페이스가 명명되어 생성되는 MBean 는 MXBean 가 된다
IllegalArgumentException
- mbeanInterface 가
관리 인터페이스의 JMX 설계 패턴에 따르지 않은 경우, 또는
this 가 특정의 인터페이스를 구현하고 있지 않는 경우메소드의 상세 |
---|
public void setImplementation(Object implementation) throws NotCompliantMBeanException
이 객체내의 랩 된 구현 객체를 치환합니다.
implementation
- 이 Standard MBean (또는 MXBean)의
새로운 구현. implementation
객체는,
StandardMBean
의 구축시에 제공된 Standard MBean (또는 MXBean) 인터페이스를
구현할 필요가 있다
IllegalArgumentException
- 지정되었다
implementation 가 null 의 경우
NotCompliantMBeanException
- 지정되었다
implementation 가 구축시에 제공되었다
Standard MBean (또는 MXBean) 인터페이스를
구현하고 있지 않는 경우getImplementation()
public Object getImplementation()
setImplementation(java.lang.Object)
public final Class <? > getMBeanInterface()
public Class <? > getImplementationClass()
public Object getAttribute(String attribute) throws AttributeNotFoundException , MBeanException , ReflectionException
DynamicMBean
의 기술:
DynamicMBean
내의 getAttribute
attribute
- 취득되는 속성의 이름
AttributeNotFoundException
MBeanException
- MBean 의 취득 메소드에 의해 throw 되는 java.lang.Exception
를 랩 하는 경우
ReflectionException
- 취득 메소드의 호출시에 throw 되는 java.lang.Exception
를 랩 하는 경우DynamicMBean.setAttribute(javax.management.Attribute)
public void setAttribute(Attribute attribute) throws AttributeNotFoundException , InvalidAttributeValueException , MBeanException , ReflectionException
DynamicMBean
의 기술:
DynamicMBean
내의 setAttribute
attribute
- 설정되는 속성의 ID 와
설정되는 값
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
- MBean 의 설정 메소드에 의해 throw 되는 java.lang.Exception
를 랩 하는 경우
ReflectionException
- MBean 의 설정 메소드의 호출시에 throw 되는 java.lang.Exception
를 랩 하는 경우DynamicMBean.getAttribute(java.lang.String)
public AttributeList getAttributes(String [] attributes)
DynamicMBean
의 기술:
DynamicMBean
내의 getAttributes
attributes
- 취득되는 속성의 리스트
DynamicMBean.setAttributes(javax.management.AttributeList)
public AttributeList setAttributes(AttributeList attributes)
DynamicMBean
의 기술:
DynamicMBean
내의 setAttributes
attributes
- 속성의 리스트. 설정되는 속성의 ID 와
설정되는 값
DynamicMBean.getAttributes(java.lang.String[])
public Object invoke(String actionName, Object [] params, String [] signature) throws MBeanException , ReflectionException
DynamicMBean
의 기술:
DynamicMBean
내의 invoke
actionName
- 불려 가는 액션의 이름params
- 액션의 호출시로 설정되는 파라미터를 포함한다
배열signature
- 액션의 시그니챠를 포함한 배열. 클래스 객체의 로드에는,
액션을 호출하는 MBean 를 로드할 때와 같은 클래스 로더가
사용된다
MBeanException
- MBean 의 호출 메소드에 의해 throw 되는 java.lang.Exception
를 랩 하는 경우
ReflectionException
- 메소드의 호출시에 throw 되는 java.lang.Exception
를 랩 하는 경우public MBeanInfo getMBeanInfo()
MBeanInfo
를 가져옵니다.
이 메소드는,DynamicMBean.getMBeanInfo()
를 구현합니다.
이 메소드는, 최초로, 캐쉬되고 있는 이 MBean 의 MBeanInfo 를 취득하기 위해(때문에),getCachedMBeanInfo()
를 호출합니다. getCachedMBeanInfo()
는 null 이외의 MBeanInfo 를 돌려줍니다.
MBeanInfo 가 null 의 경우, 이 메소드는, 이 MBean 의 지정의 관리 인터페이스를 사용해, 이 MBean 의 디폴트의 MBeanInfo 를 구축합니다.
이 메소드는, MBeanInfo 의 구축시에, 서브 클래스가 커스텀의 기술, 파라미터, 이름등을 제공할 수 있도록(듯이) 하는 커스터마이즈 훅을 호출합니다.
최종적으로는, 새로운 MBeanInfo 를 캐쉬하기 위해(때문에),cacheMBeanInfo()
를 호출합니다.
DynamicMBean
내의 getMBeanInfo
protected String getClassName(MBeanInfo info)
info.getClassName()
를 돌려줍니다.
info
- 리플렉션에 의해 파생한 디폴트의 MBeanInfo
protected String getDescription(MBeanInfo info)
info.getDescription()
를 돌려줍니다.
info
- 리플렉션에 의해 파생한 디폴트의 MBeanInfo
protected String getDescription(MBeanFeatureInfo info)
커스터마이즈 훅:이 MBean 가 돌려주는 MBeanFeatureInfo 내에서 사용되는 설명을 가져옵니다.
서브 클래스는, 커스텀의 설명을 제공하기 위해(때문에), 이 메소드를 재정의할 수 있습니다. 디폴트의 구현은 info.getDescription()
를 돌려줍니다.
이 메소드는,getDescription(MBeanAttributeInfo)
,getDescription(MBeanOperationInfo)
,getDescription(MBeanConstructorInfo)
에 불려 갑니다.
info
- 리플렉션에 의해 파생한 디폴트의 MBeanFeatureInfo
protected String getDescription(MBeanAttributeInfo info)
서브 클래스는, 커스텀의 설명을 제공하기 위해(때문에), 이 메소드를 재정의할 수 있습니다. 디폴트의 구현은 getDescription((MBeanFeatureInfo) info)
를 돌려줍니다.
info
- 리플렉션에 의해 파생한 디폴트의 MBeanAttributeInfo
protected String getDescription(MBeanConstructorInfo info)
getDescription((MBeanFeatureInfo) info)
를 돌려줍니다.
info
- 리플렉션에 의해 파생한 디폴트의 MBeanConstructorInfo
protected String getDescription(MBeanConstructorInfo ctor, MBeanParameterInfo param, int sequence)
param.getDescription()
를 돌려줍니다.
ctor
- 리플렉션에 의해 파생한 디폴트의 MBeanConstructorInfoparam
- 리플렉션에 의해 파생한 디폴트의 MBeanParameterInfosequence
- 파라미터의 순서 번호.
0 은 최초의 파라미터, 1 은 2 번째의 파라미터
(이하 같이)
protected String getParameterName(MBeanConstructorInfo ctor, MBeanParameterInfo param, int sequence)
param.getName()
를 돌려줍니다.
ctor
- 리플렉션에 의해 파생한 디폴트의 MBeanConstructorInfoparam
- 리플렉션에 의해 파생한 디폴트의 MBeanParameterInfosequence
- 파라미터의 순서 번호.
0 은 최초의 파라미터, 1 은 2 번째의 파라미터
(이하 같이)
protected String getDescription(MBeanOperationInfo info)
getDescription((MBeanFeatureInfo) info)
를 돌려줍니다.
info
- 리플렉션에 의해 파생한 디폴트의 MBeanOperationInfo
protected int getImpact(MBeanOperationInfo info)
info.getImpact()
를 돌려줍니다.
info
- 리플렉션에 의해 파생한 디폴트의 MBeanOperationInfo
protected String getParameterName(MBeanOperationInfo op, MBeanParameterInfo param, int sequence)
param.getName()
를 돌려줍니다.
op
- 리플렉션에 의해 파생한 디폴트의 MBeanOperationInfoparam
- 리플렉션에 의해 파생한 디폴트의 MBeanParameterInfosequence
- 파라미터의 순서 번호.
0 은 최초의 파라미터, 1 은 2 번째의 파라미터
(이하 같이)
protected String getDescription(MBeanOperationInfo op, MBeanParameterInfo param, int sequence)
param.getDescription()
를 돌려줍니다.
op
- 리플렉션에 의해 파생한 디폴트의 MBeanOperationInfoparam
- 리플렉션에 의해 파생한 디폴트의 MBeanParameterInfosequence
- 파라미터의 순서 번호.
0 은 최초의 파라미터, 1 은 2 번째의 파라미터
(이하 같이)
protected MBeanConstructorInfo [] getConstructors(MBeanConstructorInfo [] ctors, Object impl)
null
를 돌려줍니다. 랩 된 구현이 이 객체 자체가 아닌 경우,MBeanServer.createMBean(...)
(을)를 통해 구현 생성자 을 호출해도, 랩 된 구현을 다시 작성할 수 없습니다.
ctors
- 리플렉션에 의해 파생한 디폴트의 MBeanConstructorInfo[]impl
- 랩 된 구현. null
가 건네받으면(자),
랩 된 구현은 무시되어
ctors 가 반환된다
protected MBeanInfo getCachedMBeanInfo()
서브 클래스는, 고유의 캐싱 정책를 구현하기 위해(때문에), 이 메소드를 재정의할 수 있습니다. 디폴트의 구현은, 인스턴스 마다 MBeanInfo
객체를 1 개씩 포함합니다.
cacheMBeanInfo(MBeanInfo)
protected void cacheMBeanInfo(MBeanInfo info)
서브 클래스는, 고유의 캐싱 정책를 구현하기 위해(때문에), 이 메소드를 재정의할 수 있습니다. 디폴트의 구현은, 이 인스턴스에 info
를 포함합니다. 서브 클래스는, 그 외의 정책도 정의할 수 있습니다. 예를 들어,getMBeanInfo()
의 호출마다 재구축 되도록(듯이) info
를 보존하지 않는 정책나, 복수의 StandardMBean
인스턴스가 동등 MBeanInfo
치를 가지는 경우에 단일 MBeanInfo
객체를 공유하는 정책등을 정의할 수 있습니다.
info
- 캐쉬하는 새로운 MBeanInfo
. 이전에 캐쉬된 값은
모두 파기된다. 새롭게 캐쉬된 값이 없는 경우,
이 파라미터는 nullpublic ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
MBean 서버에 등록하기 전에, MBean 에 필요한 오퍼레이션을 실행시킬 수가 있습니다. MBean 의 이름을 지정하지 않으면 MBean 에 의해, 등록용의 이름이 제공됩니다. 예외가 throw 되었을 경우, MBean 는 MBean 서버에 등록되지 않습니다.
이 메소드의 디폴트 구현은,name
파라미터를 돌려줍니다. Standard MBean 의 경우, 그 밖에 아무것도 실시하지 않습니다. MXBean 의 경우,MBeanServer
및 ObjectName
파라미터가 기록됩니다. 이것들은, MXBean 간의 참조 변환에 사용할 수 있습니다.
이 메소드를 오버라이드(override) 하는 서브 클래스로부터, 오버라이드(override) 된 메소드를 super.preRegister(...)
(을)를 개입시켜 호출하는 것을 추천합니다. 이 객체가, 다른 MXBean 의 속성 또는 오퍼레이션에 의해 참조되는 MXBean 인 경우, 이것은 필수의 방법입니다.
MBeanRegistration
내의 preRegister
server
- MBean 서버. MBean 는 여기에 등록되는name
- MBean 의 객체명MBeanServer
인터페이스내의
createMBean
또는
registerMBean
메소드의 name 파라미터가 null 의 경우,
이 이름은 null 가 된다. 이 경우, 이 메소드는,
새로운 MBean 용으로서 null 이외의 ObjectName 를 반드시 돌려준다
name
파라미터가 null 이외의 경우, 일반적으로은 값이 돌려주어지지만,
이것은 필수는 아니다
IllegalArgumentException
- 이것이 MXBean 로,
name
가 null 의 경우
InstanceAlreadyExistsException
- 이것이 MXBean 로,
이 MBean Server 또는 다른 MBean Server 에,
다른 이름으로 등록을 마친 경우
Exception
- 이 메소드에 의해 다른 체크가 끝난 예외가 throw 될 것은 없지만,
서브 클래스가 이 메소드를 오버라이드(override) 해 독자적인 예외를 throw 할 수 있도록(듯이),
Exception
가 선언되는public void postRegister(Boolean registrationDone)
MBean 서버에의 등록이 성공 또는 실패한 뒤, MBean 가 필요한 오퍼레이션을 실행할 수 있도록(듯이) 합니다.
이 메소드의 디폴트 구현에서는, Standard MBean 에 대해서 어떤 처리도 행해지지 않습니다. MXBean 에서는, 등록이 실패하면(자),preRegister
에 의해 실행된 처리가 모두 삭제됩니다.
이 메소드를 오버라이드(override) 하는 서브 클래스로부터, 오버라이드(override) 된 메소드를 super.postRegister(...)
(을)를 개입시켜 호출하는 것을 추천합니다. 이 객체가, 다른 MXBean 의 속성 또는 오퍼레이션에 의해 참조되는 MXBean 인 경우, 이것은 필수의 방법입니다.
MBeanRegistration
내의 postRegister
registrationDone
- MBean 가 MBean 서버에
정상적으로 등록되었는지의 여부를 나타낸다. 등록에
실패했을 경우의 값은 falsepublic void preDeregister() throws Exception
MBean 서버로부터 등록 해제하기 전에, MBean 가 필요한 오퍼레이션을 실행할 수 있도록(듯이) 합니다.
이 메소드의 디폴트 구현에서는 어떤 처리도 행해지지 않습니다.
이 메소드를 오버라이드(override) 하는 서브 클래스로부터, 오버라이드(override) 된 메소드를 super.preDeegister(...)
(을)를 개입시켜 호출하는 것을 추천합니다.
MBeanRegistration
내의 preDeregister
Exception
- 이 메소드에 의해 체크가 끝난 예외는 throw 되지 않지만,
서브 클래스가 이 메소드를 오버라이드(override) 해 독자적인 예외를 throw 할 수 있도록(듯이),
Exception
가 선언되는public void postDeregister()
MBean 서버로부터 등록 해제한 뒤, MBean 가 필요한 오퍼레이션을 실행할 수 있도록(듯이) 합니다.
이 메소드의 디폴트 구현에서는, Standard MBean 에 대해서 어떤 처리도 행해지지 않습니다. MXBean 에서는,preRegister
메소드에 의해 기록된 정보가 모두 삭제됩니다.
이 메소드를 오버라이드(override) 하는 서브 클래스로부터, 오버라이드(override) 된 메소드를 super.postRegister(...)
(을)를 개입시켜 호출하는 것을 추천합니다. 이 객체가, 다른 MXBean 의 속성 또는 오퍼레이션에 의해 참조되는 MXBean 인 경우, 이것은 필수의 방법입니다.
MBeanRegistration
내의 postDeregister
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.