JavaTM Platform
Standard Ed. 6

javax.management.relation
클래스 MBeanServerNotificationFilter

java.lang.Object 
  상위를 확장 javax.management.NotificationFilterSupport 
      상위를 확장 javax.management.relation.MBeanServerNotificationFilter
모든 구현된 인터페이스:
Serializable , NotificationFilter


public class MBeanServerNotificationFilter
extends NotificationFilterSupport

MBeanServerNotification 의 필터입니다. ObjectName 와 오퍼레이션 (등록, 등록 해제, 또는 그 양쪽 모두)을 선택해, MBeanServerNotification 통지를 필터링 합니다.

이 클래스의 serialVersionUID2605900539589789736L 입니다.

도입된 버젼:
1.5
관련 항목:
직렬화 된 형식

생성자 의 개요
MBeanServerNotificationFilter ()
          모든 ObjectName 에 대해서, 모든 MBeanServerNotification 통지를 선택하는 필터를 작성합니다.
 
메소드의 개요
 void disableAllObjectNames ()
          모든 ObjectName 의 선택을 해제해, MBeanServerNotification 를 무효로 합니다.
 void disableObjectName (ObjectName  objectName)
          지정된 ObjectName 에 대해서, MBeanServerNotification 를 무효로 합니다.
 void enableAllObjectNames ()
          모든 ObjectName 를 선택해, 모든 MBeanServerNotification 를 유효하게 합니다.
 void enableObjectName (ObjectName  objectName)
          지정된 ObjectName 에 대해서, MBeanServerNotification 를 유효하게 합니다.
 Vector <ObjectName > getDisabledObjectNames ()
          무효인 모든 ObjectName 를 가져옵니다.
 Vector <ObjectName > getEnabledObjectNames ()
          유효한 모든 ObjectName 를 가져옵니다.
 boolean isNotificationEnabled (Notification  notif)
          청취자에게로의 특정의 통지의 송신전에 불려 갑니다.
 
클래스 javax.management. NotificationFilterSupport 로부터 상속된 메소드
disableAllTypes , disableType , enableType , getEnabledTypes
 
클래스 java.lang. Object 로부터 상속된 메소드
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

생성자 의 상세

MBeanServerNotificationFilter

public MBeanServerNotificationFilter()
모든 ObjectName 에 대해서, 모든 MBeanServerNotification 통지를 선택하는 필터를 작성합니다.

메소드의 상세

disableAllObjectNames

public void disableAllObjectNames()
모든 ObjectName 의 선택을 해제해, MBeanServerNotification 를 무효로 합니다.


disableObjectName

public void disableObjectName(ObjectName  objectName)
                       throws IllegalArgumentException 
지정된 ObjectName 에 대해서, MBeanServerNotification 를 무효로 합니다.

파라미터:
objectName - 대상외가 된 ObjectName
예외:
IllegalArgumentException - 지정된 ObjectName 가 null 의 경우

enableAllObjectNames

public void enableAllObjectNames()
모든 ObjectName 를 선택해, 모든 MBeanServerNotification 를 유효하게 합니다.


enableObjectName

public void enableObjectName(ObjectName  objectName)
                      throws IllegalArgumentException 
지정된 ObjectName 에 대해서, MBeanServerNotification 를 유효하게 합니다.

파라미터:
objectName - 대상이 되는 ObjectName
예외:
IllegalArgumentException - 지정된 ObjectName 가 null 의 경우

getEnabledObjectNames

public Vector <ObjectName > getEnabledObjectNames()
유효한 모든 ObjectName 를 가져옵니다.

반환값:
ObjectName의 벡터:

- null 의 경우, 명시적으로 선택 해제된 것을 제외한다 모든 ObjectName 가 암묵적으로 선택된다

- 빈 상태(empty)의 경우, 모든 ObjectName 의 선택이 해제된다. 즉 선택되고 있는 ObjectName 는 없어진다


getDisabledObjectNames

public Vector <ObjectName > getDisabledObjectNames()
무효인 모든 ObjectName 를 가져옵니다.

반환값:
ObjectName의 벡터:

- null 의 경우, 명시적으로 선택된 것을 제외한다 모든 ObjectName 가 암묵적으로 선택 해제된다

- 빈 상태(empty)의 경우, 모든 ObjectName 가 선택된다. 즉 선택 해제되고 있는 ObjectName 는 없어진다


isNotificationEnabled

public boolean isNotificationEnabled(Notification  notif)
                              throws IllegalArgumentException 
청취자에게로의 특정의 통지의 송신전에 불려 갑니다.

다음의 조건이 성립하는 경우:

- 문제의 MBean 의 ObjectName 가 선택 (명시적으로, 혹은 암묵적으로 (즉 명시적으로 선택 해제되어 있지 않다)) 되고 있는 경우

한편

- 오퍼레이션 (등록 또는 등록 해제)의 형태가 선택되고 있는 경우

청취자에게 통지가 송신됩니다.

정의:
인터페이스 NotificationFilter 내의 isNotificationEnabled
오버라이드(override):
클래스 NotificationFilterSupport 내의 isNotificationEnabled
파라미터:
notif - 송신되는 통지
반환값:
통지를 청취자에게 송신할 필요가 있는 경우는 true, 그렇지 않은 경우는 false
예외:
IllegalArgumentException - 파라미터가 null 의 경우

JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.