JavaTM 2 Platform
Standard Ed. 5.0

javax.management
ÀÎÅÍÆäÀ̽º NotificationBroadcaster

¾Ë·ÁÁø ¼­ºê ÀÎÅÍÆäÀ̽º ¸ñ·Ï :
ModelMBean, ModelMBeanNotificationBroadcaster, NotificationEmitter
¾Ë·ÁÁø ±¸Çö Ŭ·¡½º ¸ñ·Ï:
CounterMonitor, GaugeMonitor, JMXConnectorServer, MBeanServerDelegate, Monitor, NotificationBroadcasterSupport, RelationService, RequiredModelMBean, RMIConnectorServer, StringMonitor, Timer

public interface NotificationBroadcaster

Notification¸¦ ¹ßÇàÇÏ´Â MBean°¡ ±¸ÇöÇÏ°í ÀÖ´Â ÀÎÅÍÆäÀ̽º. ÀÌ ÀÎÅÍÆäÀ̽º¿¡ÀÇÇØ ¸®½º³Ê¸¦ ÅëÁö ¸®½º³Ê·Î¼­ MBean¿¡ µî·ÏÇÒ ¼ö ÀÖ½À´Ï´Ù.

»õ·Î¿î ÄÚµå´Â NotificationEmitter ÀÎÅÍÆäÀ̽º¸¦ »ç¿ëÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù.

µµÀÔµÈ ¹öÀü :
1.5

¸Þ¼­µå °³¿ä
 void addNotificationListener (NotificationListener  listener, NotificationFilter  filter, Object  handback)
          ÀÌ MBean¿¡ ¸®½º³Ê¸¦ Ãß°¡ÇÕ´Ï´Ù.
 MBeanNotificationInfo [] getNotificationInfo ()
          ÀÌ MBean°¡ ÅëÁö¸¦ ¼Û½ÅÇÒ ¶§¸¶´Ù, ±× ÅëÁöÀÇ Java Ŭ·¡½º¸í°ú ÅëÁöÇüÀ» ³ªÅ¸³»´Â ¹è¿­À» ¸®ÅÏÇÕ´Ï´Ù.
 void removeNotificationListener (NotificationListener  listener)
          ÀÌ MBean ·ÎºÎÅÍ ¸®½º³Ê¸¦ »èÁ¦ÇÕ´Ï´Ù.
 

¸Þ¼­µåÀÇ »ó¼¼

addNotificationListener

void addNotificationListener(NotificationListener  listener,
                             NotificationFilter  filter,
                             Object  handback)
                             throws IllegalArgumentException 
ÀÌ MBean¿¡ ¸®½º³Ê¸¦ Ãß°¡ÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
listener - ºê·Îµå ij½ºÅÍ°¡ ¹ßÇàÇÑ ÅëÁö¸¦ ó¸®ÇÏ´Â ¸®½º³Ê °´Ã¼
filter - ÇÊÅÍ °´Ã¼. ÇÊÅÍ°¡ nullÀÎ °æ¿ì, ÅëÁö ó¸®Àü¿¡ ÇÊÅÍ´Â Àû¿ëµÇÁö ¾Ê´Â
handback - ÅëÁöÀÇ ¹ßÇà½Ã¿¡ ¸®½º³Ê¿¡°Ô ¼Û½ÅµÇ´Â ºÒÅõ¸íÇÑ °´Ã¼. Notification ºê·Îµå ij½ºÅÍ °´Ã¼´Â ÀÌ °´Ã¼¸¦ »ç¿ëÇÒ ¼ö ¾ø´Ù. ÀÌ °´Ã¼´Â ¼Õº¸Áö ¾Ê´Â »óÅ·ΠÅëÁö·ÎºÎÅÍ ¸®½º³Ê¿¡°Ô µ¹·Á º¸³»ÁöÁö ¾ÊÀ¸¸é ¾È µÈ´Ù
¿¹¿Ü:
IllegalArgumentException - ¸®½º³Ê ÆĶó¹ÌÅÍ°¡ nullÀÎ °æ¿ì
°ü·Ã Ç׸ñ:
removeNotificationListener(javax.management.NotificationListener)

removeNotificationListener

void removeNotificationListener(NotificationListener  listener)
                                throws ListenerNotFoundException 
ÀÌ MBean ·ÎºÎÅÍ ¸®½º³Ê¸¦ »èÁ¦ÇÕ´Ï´Ù. ¸®½º³Ê°¡ ´Ù¸¥ ÇÚµå¹é °´Ã¼ ¶Ç´Â ÅëÁö ÇÊÅÍ¿¡ µî·ÏµÇ¾î ÀÖ´Â °æ¿ì, ÀÌ ¸®½º³Ê¿¡°Ô ´ëÀÀÇÏ´Â ¸ðµç ¿£Æ®¸®°¡ »èÁ¦µË´Ï´Ù.

ÆĶó¹ÌÅÍ:
listener - ÀÌÀü¿¡ ÀÌ MBean¿¡ Ãß°¡µÈ ¸®½º³Ê
¿¹¿Ü:
ListenerNotFoundException - ¸®½º³Ê°¡ MBean¿¡ µî·ÏµÇÁö ¾ÊÀº °æ¿ì
°ü·Ã Ç׸ñ:
addNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object), NotificationEmitter.removeNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object)

getNotificationInfo

MBeanNotificationInfo [] getNotificationInfo()

ÀÌ MBean°¡ ÅëÁö¸¦ ¼Û½ÅÇÒ ¶§¸¶´Ù, ±× ÅëÁöÀÇ Java Ŭ·¡½º¸í°ú ÅëÁöÇüÀ» ³ªÅ¸³»´Â ¹è¿­À» ¸®ÅÏÇÕ´Ï´Ù.

MBean °¡ ÀÌ ¹è¿­¿¡ ±â¼úµÇ¾î ÀÖÁö ¾ÊÀº ÅëÁö¸¦ ¼Û½ÅÇÒ ¼ö ¾ø½À´Ï´Ù. ´Ù¸¸, ÀϺÎÀÇ MBean ¼­¹ö Ŭ¶óÀ̾ðÆ®´Â ÇöÀçÀÇ ±â´É¿¡ ÀÇÇØ ¿Ï¼ºÇÏ´Â ¹è¿­¿¡ Á¸ÇÏ°í ÀÖ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù.

¹Ýȯ°ª:
ÅëÁöÀÇ ¹è¿­

JavaTM 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.