JavaTM 2 Platform
Standard Ed. 5.0

javax.management.modelmbean
ÀÎÅÍÆäÀ̽º ModelMBeanNotificationBroadcaster

¸ðµç ½´ÆÛ ÀÎÅÍÆäÀ̽º:
NotificationBroadcaster
¾Ë·ÁÁø ¼­ºê ÀÎÅÍÆäÀ̽º ¸ñ·Ï :
ModelMBean
¾Ë·ÁÁø ±¸Çö Ŭ·¡½º ¸ñ·Ï:
RequiredModelMBean

public interface ModelMBeanNotificationBroadcaster
extends NotificationBroadcaster

ModelMBean´Â ÀÌ ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù. ÀÌ ÀÎÅÍÆäÀ̽ºÀÇ ±¸ÇöÀº ¸ðµç JMX ¿¡ÀÌÀüÆ®¿¡ ºÎ¼ÓµÇ¾î ÀÖ½À´Ï´Ù.

°ü¸® ´ë»óÀÌ µÇ´Â Java ÀÚ¿øÀº MBeanServer createMBean ¸Þ¼­µå¸¦ »ç¿ëÇØ, ModelMBean¸¦ ÀνºÅϽºÈ­ÇÕ´Ï´Ù. ´ÙÀ½¿¡ ModelMBean ÀνºÅϽºÀÇ ModelMBeanInfo (Descriptor ÷ºÎ)¸¦ ¼³Á¤ÇÕ´Ï´Ù. ModelMBean ModelMBeanInfo ¿¡¼­ °ø°³µÈ ¼Ó¼º°ú ¿ÀÆÛ·¹À̼ǿ¡´Â MBean, Ä¿³ØÅÍ, ¾î´ðÅͷκÎÅÍ ¾×¼¼½º ÇÒ ¼ö ÀÖ½À´Ï´Ù. ModelMBeanInfo Descriptor¸¦ »ç¿ëÇØ, °ü¸® ´ë»ó ¾îÇø®ÄÉÀ̼dz»ÀÇ °ª°ú ¸Þ¼­µå¸¦ Á¤ÀÇÇØ, ModelMBean ¼Ó¼º ¹× ¿ÀÆÛ·¹À̼ǿ¡ ¸Ê ÇÒ ¼ö ÀÖ½À´Ï´Ù . ÀÌ ¸ÅÇÎÀº XML Çü½ÄÀÇ ÆÄÀÏÀ» »ç¿ëÇÑ °³¹ß½Ã, ¶Ç´Â ½ÇÇà½Ã¿¡ ÇÁ·Î±×·¥À» »ç¿ëÇØ µ¿ÀûÀ¸·Î Á¤ÀÇÇÒ ¼ö ÀÖ½À´Ï´Ù.

MBeanServer ·Î ÀνºÅϽºÈ­ µÈ MBean´Â ¸ðµÎ °ü¸® ´ë»óÀÌ µË´Ï´Ù. ÀÌ·¯ÇÑ MBean ¼Ó¼º°ú ¿ÀÆÛ·¹À̼ǿ¡´Â MBeanServer¿¡ Á¢¼ÓµÈ Ä¿³ØÅÍ ¶Ç´Â ¾î´ðÅÍ °æÀ¯·Î ¿ø°Ý Á¢±Ù ÇÒ ¼ö ÀÖ½À´Ï´Ù. JMX ÁØ°ÅÀÇ MBean°¡ ¾Æ´Ñ Java °´Ã¼´Â MBeanServer¿¡ µî·ÏÇÒ ¼ö ¾ø½À´Ï´Ù. ÀÚ¿øÀº ModelMBean¸¦ ÀνºÅϽºÈ­ÇÏ´Â °ÍÀ¸·Î MBean À¯È¿¼ºÀ» º¸ÁõÇÕ´Ï´Ù.

¸ðµç public ¸Þ¼­µå·Î MBeanException ¹× RuntimeOperationsException°¡ Throw µÉ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù. ÀÌ·¸°Ô ÇÏ´Â °ÍÀ¸·Î ºÐ»êÇü Åë½Å (RMI, EJB µî)¿¡ ÇÑ ¿¹¿Ü¸¦ ·¦ ÇÒ ¼ö ÀÖ½À´Ï´Ù. »ç¾ç ¹× javadoc¿¡ ±âÀçµÇ¾î ÀÖ´Â ½Ã³ª¸®¿À ÀÌ¿Ü¿¡¼­´Â ±¸ÇöÀÌ ¹Ýµå½Ã ÀÌ·¯ÇÑ ¿¹¿Ü¸¦ Throw ÇÑ´Ù°í´Â ÇÒ ¼ö ¾ø½À´Ï´Ù.

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

¸Þ¼­µå °³¿ä
 void addAttributeChangeNotificationListener (NotificationListener  listener, String  attributeName, Object  handback)
          NotificationListener ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇÏ´Â °´Ã¼¸¦ ¸®½º³Ê·Î¼­ µî·ÏÇÕ´Ï´Ù.
 void removeAttributeChangeNotificationListener (NotificationListener  listener, String  attributeName)
          RequiredModelMBean ·ÎºÎÅÍ attributeChangeNotification ¸®½º³Ê¸¦ »èÁ¦ÇÕ´Ï´Ù.
 void sendAttributeChangeNotification (Attribute  oldValue, Attribute  newValue)
          ModelMBean »óÀÇ µî·ÏÀÌ ³¡³­ AttributeChangeNotification ¸®½º³Ê¿¡°Ô, ¼Ó¼ºÀÇ ³°Àº °ª°ú »õ·Î¿î °ªÀ» Æ÷ÇÔÇÑ attributeChangeNotification¸¦ ¼Û½ÅÇÕ´Ï´Ù.
 void sendAttributeChangeNotification (AttributeChangeNotification  notification)
          ModelMBean »óÀÇ µî·ÏÀÌ ³¡³­ attributeChangeNotification ¿¡ °Ç³×¹Þ´Â attributeChangeNotification¸¦ ¼Û½ÅÇÕ´Ï´Ù.
 void sendNotification (Notification  ntfyObj)
          ModelMBean »óÀÇ µî·ÏÀÌ ³¡³­ Notification ¸®½º³Ê¿¡°Ô, jmx.modelmbean.generic ÅëÁö·Î¼­ °Ç³×¹Þ´Â Notification¸¦ ¼Û½ÅÇÕ´Ï´Ù.
 void sendNotification (String  ntfyText)
          ModelMBean »óÀÇ µî·ÏÀÌ ³¡³­ Notification ¸®½º³Ê¿¡°Ô, °Ç³×¹Þ´Â ÅؽºÆ® ij¸¯ÅÍ ¶óÀÎÀ» Æ÷ÇÔÇÑ Notification¸¦ ¼Û½ÅÇÕ´Ï´Ù.
 
ÀÎÅÍÆäÀ̽º javax.management. NotificationBroadcaster ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
addNotificationListener, getNotificationInfo, removeNotificationListener
 

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

sendNotification

void sendNotification(Notification  ntfyObj)
                      throws MBeanException,

                             RuntimeOperationsException 
ModelMBean »óÀÇ µî·ÏÀÌ ³¡³­ Notification ¸®½º³Ê¿¡°Ô, jmx.modelmbean.generic ÅëÁö·Î¼­ °Ç³×¹Þ´Â Notification¸¦ ¼Û½ÅÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
ntfyObj - ¸®½º³Ê °´Ã¼ÀÇ handleNotification ¸Þ¼­µå¿¡°Ô °Ç³×Áö´Â ÅëÁö
¿¹¿Ü:
MBeanException - ¹è°ªÀÌ ³¡³­ Åë½Å ExceptionÀ» ·¦ ÇÑ´Ù
RuntimeOperationsException - IllegalArgumentExceptionÀ» ·¦ ÇÑ´Ù. ÆĶó¹ÌÅͷμ­ °Ç³×¹ÞÀº Notification °´Ã¼°¡ nullÀÎ °æ¿ì

sendNotification

void sendNotification(String  ntfyText)
                      throws MBeanException,

                             RuntimeOperationsException 
ModelMBean »óÀÇ µî·ÏÀÌ ³¡³­ Notification ¸®½º³Ê¿¡°Ô, °Ç³×¹Þ´Â ÅؽºÆ® ij¸¯ÅÍ ¶óÀÎÀ» Æ÷ÇÔÇÑ Notification¸¦ ¼Û½ÅÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
ntfyText - Notification ·Î ÁöÁ¤µÇ¾î ¸®½º³Ê °´Ã¼ÀÇ handleNotification ¸Þ¼­µå¿¡°Ô °Ç³×Áö´Â ÅؽºÆ®. ±¸Ãà ³¡³­ Notification´Â type "jmx.modelmbean.generic" source this ModelMBean instance sequence 1
¿¹¿Ü:
MBeanException - ¹è°ªÀÌ ³¡³­ Åë½Å ExceptionÀ» ·¦ ÇÑ´Ù
RuntimeOperationsException - IllegalArgumentExceptionÀ» ·¦ ÇÑ´Ù. ÆĶó¹ÌÅͷμ­ °Ç³×¹ÞÀº Notification ÅؽºÆ® ij¸¯ÅÍ ¶óÀÎÀÌ nullÀÎ °æ¿ì

sendAttributeChangeNotification

void sendAttributeChangeNotification(AttributeChangeNotification  notification)
                                     throws MBeanException,

                                            RuntimeOperationsException 
ModelMBean »óÀÇ µî·ÏÀÌ ³¡³­ attributeChangeNotification ¿¡ °Ç³×¹Þ´Â attributeChangeNotification¸¦ ¼Û½ÅÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
notification - ¸®½º³Ê °´Ã¼ÀÇ handleNotification ¸Þ¼­µå¿¡°Ô °Ç³×Áö´Â ÅëÁö
¿¹¿Ü:
MBeanException - ¹è°ªÀÌ ³¡³­ Åë½Å ExceptionÀ» ·¦ ÇÑ´Ù
RuntimeOperationsException - IllegalArgumentExceptionÀ» ·¦ ÇÑ´Ù. ÆĶó¹ÌÅͷμ­ °Ç³×¹ÞÀº AttributeChangeNotification °´Ã¼°¡ nullÀÎ °æ¿ì

sendAttributeChangeNotification

void sendAttributeChangeNotification(Attribute  oldValue,
                                     Attribute  newValue)
                                     throws MBeanException,

                                            RuntimeOperationsException 
ModelMBean »óÀÇ µî·ÏÀÌ ³¡³­ AttributeChangeNotification ¸®½º³Ê¿¡°Ô, ¼Ó¼ºÀÇ ³°Àº °ª°ú »õ·Î¿î °ªÀ» Æ÷ÇÔÇÑ attributeChangeNotification¸¦ ¼Û½ÅÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
oldValue - Attribute ÃʱⰪ
newValue - Attribute ÇöÀçÀÇ °ª

   ±¸Ãà ³¡³­ attributeChangeNotification. type        "jmx.attribute.change" source      this ModelMBean instance sequence    1 attributeName oldValue.getName() attributeType oldValue's class attributeOldValue oldValue.getValue() attributeNewValue newValue.getValue() 
¿¹¿Ü:
MBeanException - ¹è°ªÀÌ ³¡³­ Åë½Å ExceptionÀ» ·¦ ÇÑ´Ù
RuntimeOperationsException - IllegalArgumentExceptionÀ» ·¦ ÇÑ´Ù. ÆĶó¹ÌÅͷμ­ °Ç³×¹Þ´Â Attribute °´Ã¼°¡ null ÀÎ °æ¿ì, ¶Ç´Â ÆĶó¹ÌÅÍ¿¡ °°Àº À̸§ÀÇ Attribute °´Ã¼°¡ º¹¼ö ÁöÁ¤µÇ¾úÀ» °æ¿ì

addAttributeChangeNotificationListener

void addAttributeChangeNotificationListener(NotificationListener  listener,
                                            String  attributeName,
                                            Object  handback)
                                            throws MBeanException,

                                                   RuntimeOperationsException,

                                                   IllegalArgumentException 
NotificationListener ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇÏ´Â °´Ã¼¸¦ ¸®½º³Ê·Î¼­ µî·ÏÇÕ´Ï´Ù. ModelMBean¿¡ ÀÇÇØ ÀÓÀÇÀÇ attributeChangeNotification°¡ ¹ßÇàµÇ¸é, ÀÌ °´Ã¼ÀÇ handleNotification() ¸Þ¼­µå°¡ È£ÃâµË´Ï´Ù. ±× ¿ÜÀÇ Notification´Â Æ÷ÇÔÇÏÁö ¾Ê½À´Ï´Ù. ±× ¿ÜÀÇ Notification´Â °³º°ÀûÀ¸·Î µî·ÏÇÒ ÇÊ¿ä°¡ ÀÖ½À´Ï´Ù. ÀÌ attributeName¿ëÀÇ AttributeChangeNotification°¡ »ý¼ºµË´Ï´Ù.

ÆĶó¹ÌÅÍ:
listener - µî·ÏÀÌ ³¡³­ MBean°¡ ¹ßÇàÇÑ ÅëÁö¸¦ ó¸®ÇÏ´Â ¸®½º³Ê °´Ã¼
attributeName - ModelMBean ¼Ó¼ºÀÇ À̸§. ÀÌ ¼Ó¼ºÀÇ º¯°æ ÅëÁö¸¦ ¼ö½ÅÇÑ´Ù. nullÀÎ °æ¿ì, ¾î´À ¼Ó¼ºÀÌ º¯°æµÇ¾úÀ» ¶§µµ attributeChangeNotification°¡ ¹ßÇàµÇ´Â
handback - ÅëÁö°¡ ¹ßÇàµÇ¾úÀ» ¶§ ÅëÁö¿Í ÇÔ²² ¸®½º³Ê¿¡°Ô ¼Û½ÅµÇ´Â ÄÁÅؽºÆ®
¿¹¿Ü:
IllegalArgumentException - ¸®½º³Ê´Â null ·Î ÇÒ ¼ö ¾ø´Ù
MBeanException - ¹è°ªÀÌ ³¡³­ Åë½Å ExceptionÀ» ·¦ ÇÑ´Ù
RuntimeOperationsException - IllegalArgumentExceptionÀ» ·¦ ÇÑ´Ù. ÆĶó¹ÌÅͷμ­ °Ç³×¹Þ´Â ¼Ó¼º¸íÀÌ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì
°ü·Ã Ç׸ñ:
removeAttributeChangeNotificationListener(javax.management.NotificationListener, java.lang.String)

removeAttributeChangeNotificationListener

void removeAttributeChangeNotificationListener(NotificationListener  listener,
                                               String  attributeName)
                                               throws MBeanException,

                                                      RuntimeOperationsException,

                                                      ListenerNotFoundException 
RequiredModelMBean ·ÎºÎÅÍ attributeChangeNotification ¸®½º³Ê¸¦ »èÁ¦ÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
listener - µî·ÏÀÌ ³¡³­ MBean°¡ ¹ßÇàÇÑ ÅëÁö¸¦ ó¸®ÇÏ°í ÀÖ´ø ¸®½º³ÊÀÇ À̸§. ÀÌ ¸Þ¼­µå´Â ÀÌ ¸®½º³Ê¿¡ °üÇÑ ¸ðµç Á¤º¸¸¦ »èÁ¦ÇÏ´Â
attributeName - ¼Ó¼º. ¸®½º³Ê´Â ÀÌ ¼Ó¼ºÀÇ attributeChangeNotification¸¦ ¼ö½ÅÇÒ ÇÊ¿ä°¡ ¾ø¾îÁ³´Ù. nullÀÎ °æ¿ì, ¸ðµç attributeChangeNotification ¸®½º³Ê°¡ »èÁ¦µÈ´Ù
¿¹¿Ü:
ListenerNotFoundException - ¸®½º³Ê°¡ MBean¿¡ µî·ÏµÇÁö ¾ÊÀºÁö, nullÀÎ °æ¿ì
MBeanException - ¹è°ªÀÌ ³¡³­ Åë½Å ExceptionÀ» ·¦ ÇÑ´Ù
RuntimeOperationsException - IllegalArgumentExceptionÀ» ·¦ ÇÑ´Ù. inAttributeName ÆĶó¹ÌÅÍ°¡ ¼Ó¼º¸í¿¡ ÀÏÄ¡ÇÏÁö ¾Ê´Â °æ¿ì
°ü·Ã Ç׸ñ:
addAttributeChangeNotificationListener(javax.management.NotificationListener, java.lang.String, java.lang.Object)

JavaTM 2 Platform
Standard Ed. 5.0

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