|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
java.lang.Objectjavax.management.NotificationFilterSupport
public class NotificationFilterSupport
NotificationFilter 인터페이스의 구현을 제공합니다. 통지형 속성에는, 필터링이 적용됩니다.
유효한 통지형의 리스트를 관리합니다. 사용자는, 메소드를 이용해, 필요한 수의 통지형을 유효 또는 무효로 할 수 있습니다.
통지 브로드 캐스터는, 필터에 등록된 청취자에게 통지를 송신하기 전에, 이 통지형과 필터에 의해 유효화 되는 모든 통지형을 비교합니다. 필터가 이 통지형을 유효하게 하는 경우에 한정해, 통지는 청취자에게 송신됩니다.
례:
NotificationFilterSupport myFilter = new NotificationFilterSupport();
myFilter.enableType("my_example.my_type");
myBroadcaster.addListener(myListener, myFilter, null);
청취자 myListener 는, 「my_example.my_type」라고 동일한지, 이 캐릭터 라인으로 시작되는 형태의 통지만을 수신합니다.
NotificationBroadcaster.addNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object) ,
직렬화 된 형식 | 생성자 의 개요 | |
|---|---|
NotificationFilterSupport ()
|
|
| 메소드의 개요 | |
|---|---|
void |
disableAllTypes ()
모든 통지형을 무효로 합니다. |
void |
disableType (String prefix)
접두사 리스트로부터 지정된 접두사를 삭제합니다. |
void |
enableType (String prefix)
특정의 접두사로 시작되는 모든 통지형의 통지를 청취자에게 송신합니다. |
Vector <String > |
getEnabledTypes ()
이 필터용으로, 모든 유효한 통지형을 가져옵니다. |
boolean |
isNotificationEnabled (Notification notification)
청취자에게로의 특정의 통지의 송신전에 불려 갑니다. |
| 클래스 java.lang. Object 로부터 상속된 메소드 |
|---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
| 생성자 의 상세 |
|---|
public NotificationFilterSupport()
| 메소드의 상세 |
|---|
public boolean isNotificationEnabled(Notification notification)
true 를 돌려줍니다.
NotificationFilter 내의 isNotificationEnabled notification - 송신되는 통지
true, 그렇지 않은 경우는 false
public void enableType(String prefix)
throws IllegalArgumentException
례:
// Enables all notifications the type of which starts with "my_example" to be sent.
myFilter.enableType("my_example");
// Enables all notifications the type of which is "my_example.my_type" to be sent.
myFilter.enableType("my_example.my_type");
다음의 점에 주의해 주세요.
myFilter.enableType("my_example. *");
(은)는, 어느 통지형과도 일치하지 않습니다.
prefix - 접두사
IllegalArgumentException - 접두사 파라미터가 null 의 경우public void disableType(String prefix)
prefix - 접두사public void disableAllTypes()
public Vector <String > getEnabledTypes()
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.