JavaTM 2 Platform
Standard Ed. 5.0

javax.management.modelmbean
Ŭ·¡½º RequiredModelMBean

java.lang.Object 
  »óÀ§¸¦ È®Àå javax.management.modelmbean.RequiredModelMBean
¸ðµç ±¸ÇöµÈ ÀÎÅÍÆäÀ̽º:
DynamicMBean, MBeanRegistration, ModelMBean, ModelMBeanNotificationBroadcaster, NotificationBroadcaster, NotificationEmitter, PersistentMBean

public class RequiredModelMBean
extends Object
implements ModelMBean, MBeanRegistration, NotificationEmitter

ÀÌ Å¬·¡½º´Â ModelMBean ±¸ÇöÀÔ´Ï´Ù. ¸ðµç JMX ¿¡ÀÌÀüÆ®¿¡ ÀûÀýÇÑ ModelMBean ±¸ÇöÀÌ ºÎ¼ÓµÇ¾î ÀÖÀ» Çʿ䰡 ÀÖ½À´Ï´Ù. ¶Ç, Ŭ·¡½º¸íÀº ¹Ýµå½Ã RequiredModelMBean ·Î ÇÕ´Ï´Ù.

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

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

JMX ÁذÅÀÇ MBean °¡ ¾Æ´Ñ Java ¿ÀºêÁ§Æ®´Â MBeanServer ¿¡ µî·ÏÇÒ ¼ö ¾ø½À´Ï´Ù. RequiredModelMBean¸¦ ÀνºÅϽºÈ­ÇÏ´Â °ÍÀ¸·Î ÀÚ¿øÀº MBean °¡ À¯È¿ÇÑ °ÍÀÌ º¸ÁõµË´Ï´Ù. ¸ðµç public ¸Þ¼­µå·Î MBeanException ¹× RuntimeOperationsException °¡ Throw µÉ Çʿ䰡 ÀÖ½À´Ï´Ù. À̰Ϳ¡ ÇØ, ºÐ»êÇü Åë½Å (RMI, EJB µî)À¸·ÎºÎÅÍÀÇ ¿¹¿ÜÀÇ ·¦ÀÌ °¡´ÉÇÏ°Ô µË´Ï´Ù.

µµÀÔµÈ ¹öÁ¯:
1.5

»ý¼ºÀÚ °³¿ä
RequiredModelMBean ()
          ÇÏ´ÃÀÇ ModelMBeanInfo À¸·Î RequiredModelMBean¸¦ ±¸ÃàÇÕ´Ï´Ù.
RequiredModelMBean (ModelMBeanInfo  mbi)
          °Ç³×¹ÞÀº ModelMBeanInfoÀ» »ç¿ëÇØ RequiredModelMBean ¿ÀºêÁ§Æ®¸¦ ±¸ÃàÇÕ´Ï´Ù.
 
¸Þ¼­µå °³¿ä
 void addAttributeChangeNotificationListener (NotificationListener  inlistener, String  inAttributeName, Object  inhandback)
          NotificationListener ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®½º³Ê·Î¼­ µî·ÏÇÕ´Ï´Ù.
 void addNotificationListener (NotificationListener  listener, NotificationFilter  filter, Object  handback)
          NotificationListener ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®½º³Ê·Î¼­ µî·ÏÇÕ´Ï´Ù.
 Object getAttribute (String  attrName)
          ÀÌ ModelMBean ¿¡ Á¤ÀÇµÈ Æ¯Á¤ÀÇ ¼Ó¼ºÀÇ °ªÀ» µ¹·ÁÁÝ´Ï´Ù.
 AttributeList getAttributes (String [] attrNames)
          ModelMBean ³»ÀÇ º¹¼öÀÇ ¼Ó¼ºÀÇ °ªÀ» µ¹·ÁÁÝ´Ï´Ù.
protected  ClassLoaderRepository getClassLoaderRepository ()
          Å¬·¡½ºÀÇ ·Îµå¿¡ »ç¿ëµÈ Ŭ·¡½º ·Î´õ ¸®Æ÷ÁöÅ͸®(repository)¸¦ µ¹·ÁÁÝ´Ï´Ù.
 MBeanInfo getMBeanInfo ()
          ÀÌ RequiredModelMBean °¡ °ü¸®¿ëÀ¸·Î¼­ °ø°³ÇÏ´Â ¼Ó¼º, ¿ÀÆÛ·¹À̼Ç, »ý¼ºÀÚ ¹× ÅëÁö¸¦ µ¹·ÁÁÝ´Ï´Ù.
 MBeanNotificationInfo [] getNotificationInfo ()
          RequiredModelMBean ¿¡ ÇØ »ý¼ºµÈ Notification ¹è¿­À» µ¹·ÁÁÝ´Ï´Ù.
 Object invoke (String  opName, Object [] opArgs, String [] sig)
          RequiredModelMBean ·ÎºÎÅÍ ¸Þ¼­µå¸¦ È£ÃâÇØ, ±× ½ÇÇà °á°ú¸¦ µ¹·ÁÁÝ´Ï´Ù.
 void load ()
          ÀÌ MBean ÀνºÅϽº¸¦ Áö¼Ó ½ºÅä¾î³»ÀÇ MBean ¿ë µ¥ÀÌÅÍ·Î ÀνºÅϽºÈ­ÇÕ´Ï´Ù.
 void postDeregister ()
          MBean ¼­¹ö·ÎºÎÅÍ µî·Ï ÇØÁ¦ÇÑ µÚ, MBean °¡ ÇÊ¿äÇÑ ¿ÀÆÛ·¹À̼ÇÀ» ½ÇÇàÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù.
 void postRegister (Boolean  registrationDone)
          MBean ¼­¹ö¿¡ÀÇ µî·ÏÀÌ ¼º°ø ¶Ç´Â ½ÇÆÐÇÑ µÚ, MBean °¡ ÇÊ¿äÇÑ ¿ÀÆÛ·¹À̼ÇÀ» ½ÇÇàÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù.
 void preDeregister ()
          MBean ¼­¹ö·ÎºÎÅÍ µî·Ï ÇØÁ¦Çϱâ Àü¿¡ MBean °¡ ÇÊ¿äÇÑ ¿ÀÆÛ·¹À̼ÇÀ» ½ÇÇàÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù.
 ObjectName preRegister (MBeanServer  server, ObjectName  name)
          MBean ¼­¹ö¿¡ µî·ÏÇϱâ Àü¿¡ MBean ¿¡ ÇÊ¿äÇÑ ¿ÀÆÛ·¹À̼ÇÀ» ½ÇÇà½Ãų ¼ö°¡ ÀÖ½À´Ï´Ù.
 void removeAttributeChangeNotificationListener (NotificationListener  inlistener, String  inAttributeName)
          RequiredModelMBean ·ÎºÎÅÍ attributeChangeNotification ¸®½º³Ê¸¦ »èÁ¦ÇÕ´Ï´Ù.
 void removeNotificationListener (NotificationListener  listener)
          RequiredModelMBean ·ÎºÎÅÍ Notification ¸®½º³Ê¸¦ »èÁ¦ÇÕ´Ï´Ù.
 void removeNotificationListener (NotificationListener  listener, NotificationFilter  filter, Object  handback)
          ÀÌ MBean ·ÎºÎÅÍ ¸®½º³Ê¸¦ »èÁ¦ÇÕ´Ï´Ù.
 void sendAttributeChangeNotification (Attribute  inOldVal, Attribute  inNewVal)
          ModelMBean »óÀÇ µî·ÏÀÌ ³¡³­ AttributeChangeNotification ¸®½º³Ê¿¡°Ô, ¼Ó¼ºÀÇ ³°Àº °ª°ú »õ·Î¿î °ªÀ» Æ÷ÇÔÇÑ attributeChangeNotification¸¦ ¼Û½ÅÇÕ´Ï´Ù.
 void sendAttributeChangeNotification (AttributeChangeNotification  ntfyObj)
          ModelMBean »óÀÇ µî·ÏÀÌ ³¡³­ attributeChangeNotification ¿¡ °Ç³×¹Þ´Â attributeChangeNotification¸¦ ¼Û½ÅÇÕ´Ï´Ù.
 void sendNotification (Notification  ntfyObj)
          ModelMBean »óÀÇ µî·ÏÀÌ ³¡³­ Notification ¸®½º³Ê¿¡°Ô, jmx.modelmbean.generic ÅëÁö·Î¼­ °Ç³×¹Þ´Â Notification¸¦ ¼Û½ÅÇÕ´Ï´Ù.
 void sendNotification (String  ntfyText)
          ModelMBean »óÀÇ µî·ÏÀÌ ³¡³­ Notification ¸®½º³Ê¿¡°Ô, °Ç³×¹Þ´Â ÅØ½ºÆ® ij¸¯ÅÍ ¶óÀÎÀ» Æ÷ÇÔÇÑ Notification¸¦ ¼Û½ÅÇÕ´Ï´Ù.
 void setAttribute (Attribute  attribute)
          ÁöÁ¤ÀÇ ModelMBean ƯÁ¤ÀÇ ¼Ó¼ºÀÇ °ªÀ» ¼³Á¤ÇÕ´Ï´Ù.
 AttributeList setAttributes (AttributeList  attributes)
          ÀÌ ModelMBean ¼Ó¼ºÀÇ ¹è¿­ÀÇ °ªÀ» ¼³Á¤ÇÕ´Ï´Ù.
 void setManagedResource (Object  mr, String  mr_type)
          ¿ÀºêÁ§Æ®ÀÇ ÀνºÅϽº ÇÚµéÀ» ¼³Á¤ÇÕ´Ï´Ù.
 void setModelMBeanInfo (ModelMBeanInfo  mbi)
          ModelMBeanInfo¸¦ »ç¿ëÇØ ModelMBean ¿ÀºêÁ§Æ®¸¦ ÃʱâÈ­ÇÕ´Ï´Ù.
 void store ()
          ÀÌ MBean ÀνºÅϽºÀÇ ÇöÀç »óŸ¦ ¼öÁß¿¡ ³Ö¾î, Áö¼Ó ½ºÅä¾î¿¡ ½á³À´Ï´Ù.
 
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

»ý¼ºÀÚ »ó¼¼

RequiredModelMBean

public RequiredModelMBean()
                   throws MBeanException,

                          RuntimeOperationsException 
ÇÏ´ÃÀÇ ModelMBeanInfo À¸·Î RequiredModelMBean¸¦ ±¸ÃàÇÕ´Ï´Ù.

RequiredModelMBean MBeanInfo ¹× Descriptor Àº,setModelMBeanInfo(javax.management.modelmbean.ModelMBeanInfo) ¸Þ¼­µå·Î Ä¿½ºÅ͸¶ÀÌÁî ÇÒ ¼ö ÀÖ½À´Ï´Ù. RequiredModelMBean MBeanInfo ¹× Descriptor Ä¿½ºÅ͸¶ÀÌÁî ÈÄ, RequiredModelMBean¸¦ MBeanServer ¿¡ µî·ÏÇÒ ¼ö°¡ ÀÖ½À´Ï´Ù.

¿¹¿Ü:
MBeanException - ¹èÄ¡°¡ ³¡³­ Åë½Å Exception¸¦ ·¦ ÇÑ´Ù
RuntimeOperationsException - ¿ÀºêÁ§Æ®ÀÇ ±¸Ãà½Ã¿¡ RuntimeException ¸¦ ·¦ ÇÑ´Ù

RequiredModelMBean

public RequiredModelMBean(ModelMBeanInfo  mbi)
                   throws MBeanException,

                          RuntimeOperationsException 
°Ç³×¹ÞÀº ModelMBeanInfoÀ» »ç¿ëÇØ RequiredModelMBean ¿ÀºêÁ§Æ®¸¦ ±¸ÃàÇÕ´Ï´Ù. RequiredModelMBean °¡ ¾ÆÁ÷ MBeanServer ¿¡ µî·ÏµÇÁö ¾ÊÀº °æ¿ì¿¡ ÇÑÁ¤ÇØ,setModelMBeanInfo(javax.management.modelmbean.ModelMBeanInfo) ¸Þ¼­µå¸¦ »ç¿ëÇØ RequiredModelMBean MBeanInfo ¹× Descriptor¸¦ Ä¿½ºÅ͸¶ÀÌÁî ÇÒ ¼ö ÀÖ½À´Ï´Ù. RequiredModelMBean MBeanInfo ¹× Descriptor Ä¿½ºÅ͸¶ÀÌÁî ÈÄ, RequiredModelMBean¸¦ MBeanServer ¿¡ µî·ÏÇÒ ¼ö°¡ ÀÖ½À´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
mbi - RequiredModelMBean ¿¡ ÇØ »ç¿ëµÇ´Â ModelMBeanInfo ¿ÀºêÁ§Æ®. ÁöÁ¤µÈ ModelMBeanInfo °¡,setModelMBeanInfo(javax.management.modelmbean.ModelMBeanInfo) ÁöÁ¤¿¡ µû¶ó º¹Á¦µÇ¾î º¯°æµÈ´Ù
¿¹¿Ü:
MBeanException - ¹èÄ¡°¡ ³¡³­ Åë½Å Exception¸¦ ·¦ ÇÑ´Ù
RuntimeOperationsException - {link java.lang.IllegalArgumentException}À» ·¦ ÇÑ´Ù. ÆÄ¶ó¹ÌÅÍ¿¡°Ô °Ç³×Áö´Â MBeanInfo °¡ null °æ¿ì
¸Þ¼­µåÀÇ »ó¼¼

setModelMBeanInfo

public void setModelMBeanInfo(ModelMBeanInfo  mbi)
                       throws MBeanException,

                              RuntimeOperationsException 
ModelMBeanInfo¸¦ »ç¿ëÇØ ModelMBean ¿ÀºêÁ§Æ®¸¦ ÃʱâÈ­ÇÕ´Ï´Ù. ÀÌ ¸Þ¼­µå¸¦ »ç¿ëÇϸé, ModelMBean »ó¿¡ MBeanServer ¿¡ µî·ÏµÇÁö ¾ÊÀº Ä¿½ºÅÒ ModelMBeanInfo¸¦ ¼³Á¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.
ModelMBean ModelMBeanInfo (Descriptor ÷ºÎ)¸¦ Ä¿½ºÅ͸¶ÀÌÁî ÇØ, ModelMBean ·Î ¼³Á¤ÇÑ µÚ, ModelMBean¸¦ MBeanServer ¿¡ µî·ÏÇÒ ¼ö°¡ ÀÖ½À´Ï´Ù.

ModelMBean °¡ ÇöÀç µî·ÏµÇ¾î ÀÖ´Â °æ¿ì, ÀÌ ¸Þ¼­µå´Â IllegalStateException ¸¦ °¨½Î´Â RuntimeOperationsException ¸¦ Throw ÇÕ´Ï´Ù.

ÁöÁ¤ÀÇ inModelMBeanInfo ¿¡ GENERIC ¶Ç´Â ATTRIBUTE_CHANGE ÅëÁö ModelMBeanNotificationInfo °¡ Æ÷ÇÔµÇÁö ¾Ê´Â °æ¿ì, RequiredModelMBean ¿¡ ÇØ, µðÆúÆ® ModelMBeanNotificationInfo °¡ Á¦°øµË´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º ModelMBean ³»ÀÇ setModelMBeanInfo
ÆÄ¶ó¹ÌÅÍ:
mbi - ModelMBean ¿¡ ÇØ »ç¿ëµÇ´Â ModelMBeanInfo ¿ÀºêÁ§Æ®
¿¹¿Ü:
MBeanException - ¹èÄ¡°¡ ³¡³­ Åë½Å Exception¸¦ ·¦ ÇÑ´Ù
RuntimeOperationsException -
  • ÆÄ¶ó¹ÌÅͷμ­ °Ç³×¹ÞÀº MBeanInfo °¡ null °æ¿ì,IllegalArgumentException ¸¦ ·¦ ÇÑ´Ù
  • ModelMBean °¡ ÇöÀç MBeanServer ¿¡ µî·ÏµÇ¾î ÀÖ´Â °æ¿ì,IllegalStateException ¸¦ ·¦ ÇÑ´Ù

setManagedResource

public void setManagedResource(Object  mr,
                               String  mr_type)
                        throws MBeanException,

                               RuntimeOperationsException,

                               InstanceNotFoundException,

                               InvalidTargetObjectTypeException 
¿ÀºêÁ§Æ®ÀÇ ÀνºÅϽº ÇÚµéÀ» ¼³Á¤ÇÕ´Ï´Ù. ÀÌ ÀνºÅϽº Çڵ鿡 ´ëÇØ¼­, ÀÌ ModelMBean °ü¸® ÀÎÅÍÆäÀ̽º³»ÀÇ ¸ðµç ¸Þ¼­µå (MBeanInfo ¿Í Descriptor)°¡ ½ÇÇàµË´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º ModelMBean ³»ÀÇ setManagedResource
ÆÄ¶ó¹ÌÅÍ:
mr - °ü¸® ´ë»óÀÇ ÀÚ¿øÀÌ µÇ¾î ÀÖ´Â ¿ÀºêÁ§Æ®
mr_type - °ü¸® ´ë»óÀÇ ÀÚ¿øÀÇ ÂüÁ¶ÀÇ ÇüÅÂ.
ObjectReference, Handle, IOR, EJBHandle, ¶Ç´Â RMIReference.
ÀÌ ±¸ÇöÀ¸·Î ¼­Æ÷Æ®µÇ´Â °ÍÀº ObjectReference ¸¶¼Å
¿¹¿Ü:
MBeanException - ¿ÀºêÁ§Æ®ÀÇ ÀÌ´Ï»þ¶óÀÌÀÚ°¡ ¿¹¿Ü¸¦ Throw ÇßÀ» °æ¿ì
InstanceNotFoundException - °ü¸® ´ë»óÀÇ ÀÚ¿ø ¿ÀºêÁ§Æ®°¡ ¹ß°ßµÇÁö ¾Ê´Â °æ¿ì
InvalidTargetObjectTypeException - °ü¸® ´ë»óÀÇ ÀÚ¿øÀÇ ÇüÅ´ ObjectReference °¡ ¾Æ´Ï¸é ¾ÈµÈ´Ù
RuntimeOperationsException - ÀÚ¿øÀÇ ¼³Á¤½Ã¿¡ RuntimeException ¸¦ ·¦ ÇÑ´Ù

load

public void load()
          throws MBeanException,

                 RuntimeOperationsException,

                 InstanceNotFoundException 

ÀÌ MBean ÀνºÅϽº¸¦ Áö¼Ó ½ºÅä¾î³»ÀÇ MBean ¿ë µ¥ÀÌÅÍ·Î ÀνºÅϽºÈ­ÇÕ´Ï´Ù. µ¥ÀÌÅͷμ­ ¼Ó¼º°ú ¿ÀÆÛ·¹À̼ÇÀÇ °ªÀ» ·ÎµåÇÒ ¼ö ÀÖ½À´Ï´Ù.

ÀÌ ¸Þ¼­µå´Â ÀÌ ÀνºÅϽºÀÇ ±¸Ãà ¶Ç´Â ÃʱâÈ­½Ã, MBean¸¦ MBeanServer ¿¡ µî·ÏÇϱâ Àü¿¡ È£ÃâÇÕ´Ï´Ù.

ÀÌ Å¬·¡½ºÀÇ ±¸ÇöÀÌ Áö¼Ó¼ºÀ» ¼­Æ÷Æ®ÇÏÁö ¾Ê´Â °æ¿ì,ServiceNotFoundException ¸¦ °¨½Î´Â MBeanException °¡ Throw µË´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º PersistentMBean ³»ÀÇ load
¿¹¿Ü:
MBeanException - ±× ¿ÜÀÇ ¿¹¿Ü¸¦°¨½Î´Â °æ¿ì, ¶Ç´Â Áö¼Ó¼ºÀÌ ¼­Æ÷Æ®µÇÁö ¾Ê´Â °æ¿ì
RuntimeOperationsException - Áö¼Ó µµ±¸ ·ÎºÎÅÍÀÇ ¿¹¿Ü¸¦°¨½Î´Â °æ¿ì
InstanceNotFoundException - ÀÌ MBean °¡ ¹ß°ßµÇÁö ¾Ê´Â °æ¿ì, ¶Ç´Â Áö¼Ó ½ºÅ丮Áö·ÎºÎÅÍ ·ÎµåÇÒ ¼ö ¾ø´Â °æ¿ì

store

public void store()
           throws MBeanException,

                  RuntimeOperationsException,

                  InstanceNotFoundException 

ÀÌ MBean ÀνºÅϽºÀÇ ÇöÀç »óŸ¦ ¼öÁß¿¡ ³Ö¾î, Áö¼Ó ½ºÅä¾î¿¡ ½á³À´Ï´Ù. ¼Ó¼ºÀ̳ª ¿ÀÆÛ·¹À̼ÇÀÇ °ªÀÌ, »óÅ·μ­ Æ÷ÇԵǴ °æ¿ìµµ ÀÖ½À´Ï´Ù.

ÀÌ Å¬·¡½ºÀÇ ±¸ÇöÀÌ Áö¼Ó¼ºÀ» ¼­Æ÷Æ®ÇÏÁö ¾Ê´Â °æ¿ì,ServiceNotFoundException ¸¦ °¨½Î´Â MBeanException °¡ Throw µË´Ï´Ù.

MBean Áö¼Ó¼º Æú¸®½Ã ¹× ¼Ó¼º ±â¼úÀÚ¸¦ »ç¿ëÇØ, ÀÌ ¸Þ¼­µåÀÇ ½ÇÇàÀ» Á¦¾îÇÕ´Ï´Ù. persistPolicy Çʵ尡 ´ÙÀ½ÀÇ ³»¿ëÀÌ µÇ¾î ÀÖ´Â °æ¿ì, MBean´Â Æ÷ÇԵ˴ϴÙ.

  ! = "never" = "always" = "onTimer" and now > 'lastPersistTime' + 'persistPeriod' = "NoMoreOftenThan" and now > 'lastPersistTime' + 'persistPeriod' 

persistPolicy Çʵ尡 ´ÙÀ½ÀÇ ³»¿ëÀÌ µÇ¾î ÀÖ´Â °æ¿ì, MBean´Â Æ÷ÇÔµÇÁö ¾Ê½À´Ï´Ù.

 = "never" = "onUpdate" = "onTimer" && now < 'lastPersistTime' + 'persistPeriod' 

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º PersistentMBean ³»ÀÇ store
¿¹¿Ü:
MBeanException - ±× ¿ÜÀÇ ¿¹¿Ü¸¦°¨½Î´Â °æ¿ì, ¶Ç´Â Áö¼Ó¼ºÀÌ ¼­Æ÷Æ®µÇÁö ¾Ê´Â °æ¿ì
RuntimeOperationsException - Áö¼Ó µµ±¸ ·ÎºÎÅÍÀÇ ¿¹¿Ü¸¦°¨½Î´Â °æ¿ì
InstanceNotFoundException - Áö¼Ó ½ºÅä¾î°¡ ¹ß°ßµÇÁö ¾Ê´Â °æ¿ì, ¶Ç´Â ¾×¼¼½º ÇÒ ¼ö ¾ø´Â °æ¿ì

getMBeanInfo

public MBeanInfo  getMBeanInfo()
ÀÌ RequiredModelMBean °¡ °ü¸®¿ëÀ¸·Î¼­ °ø°³ÇÏ´Â ¼Ó¼º, ¿ÀÆÛ·¹À̼Ç, »ý¼ºÀÚ ¹× ÅëÁö¸¦ µ¹·ÁÁÝ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º DynamicMBean ³»ÀÇ getMBeanInfo
¹Ýȯ°ª:
ModelMBeanInfo ÀνºÅϽº. ÀÌ MBean ¸ðµç ¼Ó¼º, ¿ÀÆÛ·¹ÀÌ¼Ç ¹× ÅëÁöÀÇ ÃëµæÀ» Çã°¡ÇÑ´Ù

invoke

public Object  invoke(String  opName,
                     Object [] opArgs,
                     String [] sig)
              throws MBeanException,

                     ReflectionException 
RequiredModelMBean ·ÎºÎÅÍ ¸Þ¼­µå¸¦ È£ÃâÇØ, ±× ½ÇÇà °á°ú¸¦ µ¹·ÁÁÝ´Ï´Ù.

ºÒ·Á °¡´Â ¸Þ¼­µå¿Í ½Ã±×´ÏÃİ¡ RequiredModelMbean ·ÎºÎÅÍ ¾×¼¼½º °¡´ÉÇÑ ¸Þ¼­µåÀÇ ¾î´À ÂÊÀΰ¡¿¡ ÀÏÄ¡Çϰí ÀÖ´Â °æ¿ì, ÀÌ ¸Þ¼­µå°¡ ºÒ·Á °©´Ï´Ù. ±× ¿ÜÀÇ °æ¿ì, °ü¸® ´ë»óÀÇ ÀÚ¿ø»ó¿¡¼­, ÁöÁ¤ÀÇ ¸Þ¼­µåÀÇ È£ÃâÀÌ ½ÃÇàµË´Ï´Ù.

¿ÀÆÛ·¹À̼ǿ¡ ÇØ µ¹·ÁÁÖ°íÁö´Â ¸¶Áö¸· °ªÀº, ModelMBeanOperationInfo ±â¼úÀÚ³»ÀÇ ¿ÀÆÛ·¹ÀÌ¼Ç ±â¼úÀÚ¿¡°Ô ij½¬µÇ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù. À¯È¿ÇÑ °ªÀÌ Á¸ÀçÇÏ´Â °æ¿ì, value Çʵ峻¿¡ Á¸ÀçÇÕ´Ï´Ù. °ªÀÌ Ä³½¬µÉÁö ¾î¶³Áö´Â ±â¼úÀÚ³»ÀÇ currencyTimeLimit ÇʵåÀÇ °ª¿¡ ÇØ Á¤ÇØÁý´Ï´Ù.

ÁÖ: ÀÌÀüÀÇ ¹öÁ¯ÀÇ »ç¾ç°úÀÇ ºÎÁ¤ÇÕÀÌ Àֱ⠶§¹®¿¡ currencyTimeLimit ¿¡´Â Á¦·Î ÀÌÇÏÀÇ °ªÀ» »ç¿ëÇÏÁö ¾Ê°Ô ÇØ ÁÖ¼¼¿ä. ij½¬¿¡ µé¾î°£ °ªÀÌ À¯È¿ÇÏÁö ¾ÊÀº °ÍÀ» ³ªÅ¸³»°í ½ÍÀº °æ¿ì´Â currencyTimeLimit Çʵ带 »ý·« ÇÕ´Ï´Ù. ÀÌ °ªÀÌ Ç×»ó À¯È¿ÇÑ °ÍÀ» ³ªÅ¸³»°í ½ÍÀº °æ¿ì´Â ÀÌ Çʵ忡 ¸Å¿ì Å« °ªÀ» ÁöÁ¤ÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º DynamicMBean ³»ÀÇ invoke
ÆÄ¶ó¹ÌÅÍ:
opName - ºÒ·Á °¡´Â ¸Þ¼­µåÀÇ À̸§. Ŭ·¡½º¸íÀ» Æ÷ÇÔÇÑ ¿ÏÀü ¼ö½Ä ¸Þ¼­µå¸í. ¿ÀÆÛ·¹ÀÌ¼Ç ±â¼úÀÚÀÇ class Çʵ忡 Ŭ·¡½º¸íÀÌ Á¤Àǵǰí ÀÖ´Â °æ¿ì´Â ¸Þ¼­µå¸í¸¸
opArgs - ¿ÀÆÛ·¹À̼ÇÀÇ È£Ãâ½Ã·Î ¼³Á¤µÇ´Â ÆÄ¶ó¹ÌÅ͸¦ Æ÷ÇÔÇÑ ¹è¿­
sig - ¿ÀÆÛ·¹À̼ÇÀÇ ½Ã±×´ÏÃĸ¦ Æ÷ÇÔÇÑ ¹è¿­. Ŭ·¡½º ¿ÀºêÁ§Æ®ÀÇ ·Îµå¿¡´Â ¿ÀÆÛ·¹À̼ÇÀ» È£ÃâÇÑ MBean¸¦ ·ÎµåÇÒ ¶§¿Í °°Àº Ŭ·¡½º ·Î´õ°¡ »ç¿ëµÈ´Ù
¹Ýȯ°ª:
¸Þ¼­µå¿¡ ÇØ µ¹·ÁÁÖ°íÁö´Â ¿ÀºêÁ§Æ®. ÁöÁ¤µÈ °ü¸® ´ë»óÀÇ ÀÚ¿ø»ó¿¡¼­ ¸Þ¼­µå¸¦ È£ÃâÇÑ °á°ú¸¦ ³ªÅ¸³½´Ù
¿¹¿Ü:
MBeanException - ´ÙÀ½ÀÇ ¸î°³ÀÇ Exception¸¦ ·¦ ÇÑ´Ù:
  • °ü¸® ´ë»ó ¿ÀºêÁ§Æ®ÀÇ È£Ãâ ¸Þ¼­µå¿¡ ÇØ Throw µÈ Exception
  • ServiceNotFoundException . ModelMBeanOperationInfo °¡ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì, ÁöÁ¤ÀÇ ¿ÀÆÛ·¹À̼ÇÀÇ ±â¼úÀÚ°¡ Á¤ÀǵǾî ÀÖÁö ¾ÊÀº °æ¿ì, ¶Ç´Â °ü¸® ´ë»óÀÇ ÀÚ¿øÀÌ null °æ¿ì
  • InvalidTargetObjectTypeException . targetType ÇʵåÀÇ °ªÀÌ objectReference °¡ ¾Æ´Ñ °æ¿ì
ReflectionException - ¸Þ¼­µåÀÇ È£Ãâ½Ã¿¡ Throw µÇ´Â Exception ¸¦ ·¦ ÇÑ´Ù
RuntimeOperationsException - IllegalArgumentException ¸¦ ·¦ ÇÑ´Ù. ¸Þ¼­µå¸íÀÌ null °æ¿ì

getAttribute

public Object  getAttribute(String  attrName)
                    throws AttributeNotFoundException,

                           MBeanException,

                           ReflectionException 
ÀÌ ModelMBean ¿¡ Á¤ÀÇµÈ Æ¯Á¤ÀÇ ¼Ó¼ºÀÇ °ªÀ» µ¹·ÁÁÝ´Ï´Ù. ¼Ó¼º¿¡ ÇØ µ¹·ÁÁÖ°íÁö´Â ¸¶Áö¸· °ªÀº, ¼Ó¼ºÀÇ ±â¼úÀÚ³»¿¡ ij½¬µÇ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù. À¯È¿ÇÑ °ªÀÌ Á¸ÀçÇÏ´Â °æ¿ì, value Çʵ峻¿¡ Á¸ÀçÇÕ´Ï´Ù. °ªÀÌ Ä³½¬µÉÁö ¾î¶³Áö´Â ±â¼úÀÚ³»ÀÇ currencyTimeLimit ÇʵåÀÇ °ª¿¡ ÇØ Á¤ÇØÁý´Ï´Ù.

ÁÖ: ÀÌÀüÀÇ ¹öÁ¯ÀÇ »ç¾ç°úÀÇ ºÎÁ¤ÇÕÀÌ Àֱ⠶§¹®¿¡ currencyTimeLimit ¿¡´Â Á¦·Î ÀÌÇÏÀÇ °ªÀ» »ç¿ëÇÏÁö ¾Ê°Ô ÇØ ÁÖ¼¼¿ä. ij½¬¿¡ µé¾î°£ °ªÀÌ À¯È¿ÇÏÁö ¾ÊÀº °ÍÀ» ³ªÅ¸³»°í ½ÍÀº °æ¿ì´Â currencyTimeLimit Çʵ带 »ý·« ÇÕ´Ï´Ù. ÀÌ °ªÀÌ Ç×»ó À¯È¿ÇÑ °ÍÀ» ³ªÅ¸³»°í ½ÍÀº °æ¿ì´Â ÀÌ Çʵ忡 ¸Å¿ì Å« °ªÀ» ÁöÁ¤ÇÕ´Ï´Ù.

getMethod Çʵ忡 À¯È¿ÇÑ ¿ÀÆÛ·¹ÀÌ¼Ç ±â¼úÀÚÀÇ À̸§ÀÌ Æ÷ÇԵǴ °æ¿ì, ÀÌ ¿ÀÆÛ·¹ÀÌ¼Ç ±â¼úÀÚ¿¡ ÇØ ±â¼úµÈ ¸Þ¼­µå°¡ ½ÇÇàµË´Ï´Ù. ¸Þ¼­µå´Â ÀÀ´äÀ¸·Î¼­ ¼Ó¼ºÄ¡¸¦ µ¹·ÁÁÝ´Ï´Ù. ¿ÀÆÛ·¹À̼ÇÀÌ ½ÇÆÐÇßÀ» °æ¿ì, ¶Ç´Â ¹Ýȯ°ªÀÇ ÇüŰ¡ ¼Ó¼ºÀÇ ÇüÅÂ¿Í ´Ù¸£°í ÀÖ´Â °æ¿ì, ¿¹¿Ü°¡ Throw µË´Ï´Ù. getMethod Çʵ尡 Á¤ÀǵǾî ÀÖÁö ¾ÊÀº °æ¿ì, ¼Ó¼ºÀÇ µðÆúƮġ°¡ µ¹·ÁÁÖ°íÁý´Ï´Ù. ÀÌ ±¸ÇöÀ¸·Î getMethod¸¦ È£ÃâÇÒ Çʿ䰡 ÀÖ´Â °æ¿ì´Â È£ÃâÀÌ Á¤»óÀûÀ¸·Î ÇàÇØÁöµµ·Ï, ÀÌ getMethod ¿¡ ´ëÇØ¼­ ¿ÀÆÛ·¹À̼ÇÀ» ÁöÁ¤ÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù. À̰ÍÀº, ¸Þ¼­µå°¡ Ç¥ÁØÀÇ È£Ãâ ¸Þ¼­µå·ÎºÎÅÍ ºÒ·Á °¡ operationInfo °¡ ÇÊ¿äÇÏ°Ô µÇ±â ¶§¹®ÀÔ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º DynamicMBean ³»ÀÇ getAttribute
ÆÄ¶ó¹ÌÅÍ:
attrName - ÃëµæµÇ´Â ¼Ó¼ºÀÇ À̸§À» ÁöÁ¤ÇÏ´Â String. ModelMBeanAttributeInfo À̸§¿¡ ÀÏÄ¡Çϰí ÀÖÀ» Çʿ䰡 ÀÖ´Ù
¹Ýȯ°ª:
±â¼úÀÚÀÇ value Çʵå·ÎºÎÅÍ ÃëµæÇÑ ¼Ó¼ºÀÇ °ª. ¶Ç´Â ±â¼úÀÚÀÇ getMethod Çʵ峻ÀÇ ¿ÀÆÛ·¹À̼ÇÀÇ È£Ãâ¿¡ ÇØ ÃëµæÇÑ ¼Ó¼ºÀÇ °ª
¿¹¿Ü:
AttributeNotFoundException - ÁöÁ¤ÀÇ ¼Ó¼ºÀÌ MBean ¿¡ ¾×¼¼½º ÇÒ ¼ö ¾ø´Â °æ¿ì. ´ÙÀ½ÀÇ °æ¿ì, AttributeNotFoundException °¡ Throw µÉ °¡´É¼ºÀÌ ÀÖ´Ù
  • ModelMBean ModelMBeanInfo °¡ ¹ß°ßµÇÁö ¾Ê´Â °æ¿ì
  • ÁöÁ¤ÀÇ ¼Ó¼º¸íÀÇ ModelMBeanAttributeInfo °¡ ¹ß°ßµÇÁö ¾Ê´Â °æ¿ì
  • ModelMBeanAttributeInfo isReadable ¸Þ¼­µåÀÇ ¹Ýȯ°ªÀÌ false °æ¿ì
MBeanException - ´ÙÀ½ÀÇ ¸î°³ÀÇ Exception¸¦ ·¦ ÇÑ´Ù:
  • InvalidAttributeValueException . ¼Ó¼ºÀÇ Ãëµæ ¸Þ¼­µå·ÎºÎÅÍ ¹ÞÀº °ªÀÇ ÇüŰ¡ ºÎÁ¤ÇÑ °æ¿ì, ¶Ç´Â ¼Ó¼ºÀÇ ±â¼úÀÚ³»¿¡ getMethod Çʵ尡 Á¤ÀǵÇÁö ¾Ê°í, µðÆúƮġ°¡ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì
  • ServiceNotFoundException . ¼Ó¼ºÀÇ Ãëµæ ¸Þ¼­µå¿¡ ´ëÇØ¼­ ModelMBeanOperationInfo °¡ Á¤ÀǵǾî ÀÖÁö ¾ÊÀº °æ¿ì, ModelMBeanOperationInfo ¿¡ ±â¼úÀÚ°¡ °ü·ÃÁöÀ» ¼ö ÀÖÁö ¾ÊÀº °æ¿ì, ¶Ç´Â °ü¸® ´ë»óÀÇ ÀÚ¿øÀÌ null °æ¿ì
  • InvalidTargetObjectTypeException . targetType ÇʵåÀÇ °ªÀÌ objectReference °¡ ¾Æ´Ñ °æ¿ì
  • °ü¸® ´ë»ó ¿ÀºêÁ§Æ®ÀÇ Ãëµæ ¸Þ¼­µå¿¡ ÇØ Throw µÈ Exception
ReflectionException - Ãëµæ ¸Þ¼­µåÀÇ È£Ãâ½Ã¿¡ Throw µÇ´Â Exception ¸¦ ·¦ ÇÑ´Ù
RuntimeOperationsException - IllegalArgumentException ¸¦ ·¦ ÇÑ´Ù. ÆÄ¶ó¹ÌÅͳ»ÀÇ ¼Ó¼º¸íÀÌ null °æ¿ì
°ü·Ã Ç׸ñ:
setAttribute(javax.management.Attribute)

getAttributes

public AttributeList  getAttributes(String [] attrNames)
ModelMBean ³»ÀÇ º¹¼öÀÇ ¼Ó¼ºÀÇ °ªÀ» µ¹·ÁÁÝ´Ï´Ù. °Ç³×¹Þ´Â attrNames ¹è¿­³»ÀÇ ¼Ó¼º¸í ¸¶´Ù getAttribute¸¦ ½ÇÇàÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º DynamicMBean ³»ÀÇ getAttributes
ÆÄ¶ó¹ÌÅÍ:
attrNames - ÃëµæµÇ´Â ¼Ó¼ºÀÇ À̸§¿¡¼­ ¿Ï¼ºµÇ´Â String ¹è¿­
¹Ýȯ°ª:
ÃëµæµÇ´Â ¼Ó¼ºÀÇ ¹è¿­
¿¹¿Ü:
RuntimeOperationsException - IllegalArgumentException ¸¦ ·¦ ÇÑ´Ù. ÆÄ¶ó¹ÌÅͳ»ÀÇ ¿ÀºêÁ§Æ®¸íÀÌ null °æ¿ì, ¶Ç´Â ÆÄ¶ó¹ÌÅͳ»ÀÇ ¼Ó¼ºÀÌ null °æ¿ì
°ü·Ã Ç׸ñ:
setAttributes(javax.management.AttributeList)

setAttribute

public void setAttribute(Attribute  attribute)
                  throws AttributeNotFoundException,

                         InvalidAttributeValueException,

                         MBeanException,

                         ReflectionException 
ÁöÁ¤ÀÇ ModelMBean ƯÁ¤ÀÇ ¼Ó¼ºÀÇ °ªÀ» ¼³Á¤ÇÕ´Ï´Ù. ¼Ó¼ºÀÇ ±â¼úÀÚÀÇ setMethod Çʵ忡 À¯È¿ÇÑ ¿ÀÆÛ·¹ÀÌ¼Ç ±â¼úÀÚÀÇ À̸§ÀÌ Æ÷ÇԵǴ °æ¿ì, ÀÌ ¿ÀÆÛ·¹ÀÌ¼Ç ±â¼úÀÚ¿¡ ÇØ ±â¼úµÈ ¸Þ¼­µå°¡ ½ÇÇàµË´Ï´Ù. ÀÌ ±¸Çö¿¡¼­´Â setMethod¸¦ Á¤»óÀûÀ¸·Î µ¿ÀÛ½Ã۱⠶§¹®¿¡ ¿ÀÆÛ·¹ÀÌ¼Ç ±â¼úÀÚ¸¦ ¿Ã¹Ù¸£°Ô ÁöÁ¤ÇØ, modelMBeanInfo ¿¡ ÇÒ´çÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù. ¸Þ¼­µå·ÎºÎÅÍÀÇ ÀÀ´ä ³»¿ëÀº, ±â¼úÀÚ³»ÀÇ ¼Ó¼ºÀÇ °ªÀ¸·Î ÇØ¼­ ¼³Á¤µË´Ï´Ù.

currencyTimeLimit °¡ > 0 °æ¿ì, ¼Ó¼ºÀÇ »õ·Î¿î °ªÀÌ ¼Ó¼º ±â¼úÀÚÀÇ value Çʵ忡 ij½¬µÇ¾î lastUpdatedTimeStamp Çʵ忡 ÇöÀçÀÇ Å¸ÀÓ ½ºÅÆÇÁ°¡ ¼³Á¤µË´Ï´Ù.

¼Ó¼ºÀÇ ±â¼úÀÚÀÇ Áö¼Ó Çʵ尡 null ÀÌ¿ÜÀÇ °æ¿ì, Áö¼Ó ½ºÅä¾î³»¿¡ ¼Ó¼ºÀ» Æ÷ÇÔÇϱâ À§ÇØ, ¼Ó¼º ±â¼úÀÚÀÇ Persistance Æú¸®½Ã°¡ »ç¿ëµË´Ï´Ù.
persistPolicy Çʵ尡 ´ÙÀ½ÀÇ ³»¿ëÀÌ µÇ¾î ÀÖ´Â °æ¿ì, MBean °¡ Æ÷ÇԵ˴ϴÙ.

persistPolicy Çʵ尡 ´ÙÀ½ÀÇ ³»¿ëÀÌ µÇ¾î ÀÖ´Â °æ¿ì, MBean´Â Æ÷ÇÔµÇÁö ¾Ê½À´Ï´Ù.

Model MBean ModelMBeanInfo´Â ÆÄÀÏ¿¡ Æ÷ÇԵ˴ϴÙ.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º DynamicMBean ³»ÀÇ setAttribute
ÆÄ¶ó¹ÌÅÍ:
attribute - ¼³Á¤µÇ´Â ¼Ó¼ºÀÇ À̸§°ú ¼³Á¤Ä¡¸¦ Æ÷ÇÔÇÑ Attribute ÀνºÅϽº
¿¹¿Ü:
AttributeNotFoundException - ÁöÁ¤ÀÇ ¼Ó¼ºÀÌ MBean ¿¡ ¾×¼¼½º ÇÒ ¼ö ¾ø´Â °æ¿ì.
´ÙÀ½ÀÇ °æ¿ì, AttributeNotFoundException °¡ Throw µÉ °¡´É¼ºÀÌ ÀÖ´Ù
  • ÁöÁ¤ÀÇ ¼Ó¼ºÀÇ ModelMBeanAttributeInfo °¡ ¹ß°ßµÇÁö ¾Ê´Â °æ¿ì
  • ModelMBeanAttributeInfo isWritable ¸Þ¼­µåÀÇ ¹Ýȯ°ªÀÌ false °æ¿ì
InvalidAttributeValueException - ÁöÁ¤ÀÇ ¼Ó¼º¿¡ ±â¼úÀÚ°¡ Á¤ÀǵǾî ÀÖÁö ¾ÊÀº °æ¿ì
MBeanException - ´ÙÀ½ÀÇ ¸î°³ÀÇ Exception¸¦ ·¦ ÇÑ´Ù:
  • °ü¸® ´ë»ó ¿ÀºêÁ§Æ®ÀÇ ¼³Á¤ ¸Þ¼­µå¿¡ ÇØ Throw µÈ Exception
  • ServiceNotFoundException . ¼Ó¼ºÀÇ ±â¼úÀÚ¿¡°Ô setMethod Çʵ尡 Á¤ÀǵǾî ÀÖÁö ¾ÊÀºÁö, °ü¸® ´ë»óÀÇ ÀÚ¿øÀÌ null °æ¿ì
  • InvalidTargetObjectTypeException . targetType ÇʵåÀÇ °ªÀÌ objectReference °¡ ¾Æ´Ñ °æ¿ì
  • °ü¸® ´ë»ó ¿ÀºêÁ§Æ®ÀÇ Ãëµæ ¸Þ¼­µå¿¡ ÇØ Throw µÈ Exception
ReflectionException - ¼³Á¤ ¸Þ¼­µåÀÇ È£Ãâ½Ã¿¡ Throw µÇ´Â Exception ¸¦ ·¦ ÇÑ´Ù
RuntimeOperationsException - IllegalArgumentException ¸¦ ·¦ ÇÑ´Ù. ÆÄ¶ó¹ÌÅͳ»ÀÇ ¼Ó¼ºÀÌ null °æ¿ì
°ü·Ã Ç׸ñ:
getAttribute(java.lang.String)

setAttributes

public AttributeList  setAttributes(AttributeList  attributes)
ÀÌ ModelMBean ¼Ó¼ºÀÇ ¹è¿­ÀÇ °ªÀ» ¼³Á¤ÇÕ´Ï´Ù. ¸®½ºÆ®³»ÀÇ °¢ ¼Ó¼º¿¡ ´ëÇØ¼­ setAttribute() ¸Þ¼­µå¸¦ ½ÇÇàÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º DynamicMBean ³»ÀÇ setAttributes
ÆÄ¶ó¹ÌÅÍ:
attributes - ¼Ó¼ºÀÇ ¸®½ºÆ® (¼³Á¤µÇ´Â ¼Ó¼ºÀÇ ID ¿Í ¼³Á¤µÇ´Â °ª)
¹Ýȯ°ª:
Attribute ÀνºÅϽº³»ÀÇ »õ·Î¿î °ªÀ¸·Î ¼³Á¤µÈ ¼Ó¼ºÀÇ ¹è¿­
¿¹¿Ü:
RuntimeOperationsException - IllegalArgumentException ¸¦ ·¦ ÇÑ´Ù. ÆÄ¶ó¹ÌÅͳ»ÀÇ ¿ÀºêÁ§Æ®¸íÀÌ null °æ¿ì, ¶Ç´Â ÆÄ¶ó¹ÌÅͳ»ÀÇ ¼Ó¼ºÀÌ null °æ¿ì
°ü·Ã Ç׸ñ:
getAttributes(java.lang.String[])

addNotificationListener

public void addNotificationListener(NotificationListener  listener,
                                    NotificationFilter  filter,
                                    Object  handback)
                             throws IllegalArgumentException 
NotificationListener ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇÏ´Â ¿ÀºêÁ§Æ®¸¦ ¸®½º³Ê·Î¼­ µî·ÏÇÕ´Ï´Ù. ModelMBean ¿¡ ÇØ ÀÓÀÇÀÇ ÅëÁö°¡ ¹ßÇàµÇ¸é, ÀÌ ¿ÀºêÁ§Æ®ÀÇ handleNotification() ¸Þ¼­µå°¡ ºÒ·Á °©´Ï´Ù. attributeChangeNotification´Â Æ÷ÇÔÇÏÁö ¾Ê½À´Ï´Ù. À̰͵éÀº °³º°ÀûÀ¸·Î µî·ÏÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º NotificationBroadcaster ³»ÀÇ addNotificationListener
ÆÄ¶ó¹ÌÅÍ:
listener - µî·ÏÀÌ ³¡³­ MBean °¡ ¹ßÇàÇÑ ÅëÁö¸¦ ó¸®ÇÏ´Â ¸®½º³Ê ¿ÀºêÁ§Æ®
filter - ÇÊÅÍ ¿ÀºêÁ§Æ®. null °æ¿ì, ÅëÁö ó¸®Àü¿¡ ÇÊÅÍ´Â Àû¿ëµÇÁö ¾Ê´Â
handback - ÅëÁö°¡ ¹ßÇàµÇ¾úÀ» ¶§ ÅëÁö¿Í ÇÔ²² ¸®½º³Ê¿¡°Ô ¼Û½ÅµÇ´Â ÄÁÅØ½ºÆ®
¿¹¿Ü:
IllegalArgumentException - ¸®½º³Ê´Â null ·Î ÇÒ ¼ö ¾ø´Â
°ü·Ã Ç׸ñ:
removeNotificationListener(javax.management.NotificationListener)

removeNotificationListener

public void removeNotificationListener(NotificationListener  listener)
                                throws ListenerNotFoundException 
RequiredModelMBean ·ÎºÎÅÍ Notification ¸®½º³Ê¸¦ »èÁ¦ÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º NotificationBroadcaster ³»ÀÇ removeNotificationListener
ÆÄ¶ó¹ÌÅÍ:
listener - µî·ÏÀÌ ³¡³­ MBean °¡ ¹ßÇàÇÑ ÅëÁö¸¦ ó¸®Çϰí ÀÖ´ø ¸®½º³ÊÀÇ À̸§. ÀÌ ¸Þ¼­µå´Â ÀÌ ¸®½º³Ê¿¡ °üÇÑ ¸ðµç Á¤º¸¸¦ »èÁ¦ÇÑ´Ù
¿¹¿Ü:
ListenerNotFoundException - ¸®½º³Ê°¡ MBean ¿¡ µî·ÏµÇÁö ¾ÊÀºÁö, null °æ¿ì
°ü·Ã Ç׸ñ:
addNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object)

removeNotificationListener

public void removeNotificationListener(NotificationListener  listener,
                                       NotificationFilter  filter,
                                       Object  handback)
                                throws ListenerNotFoundException 
ÀÎÅÍÆäÀ̽º NotificationEmitter ±â¼ú:

ÀÌ MBean ·ÎºÎÅÍ ¸®½º³Ê¸¦ »èÁ¦ÇÕ´Ï´Ù. MBean´Â ÁöÁ¤µÈ listener,filter ¹× handback ÆÄ¶ó¹ÌÅÍ¿Í Á¤È®ÇÏ°Ô ÀÏÄ¡ÇÏ´Â ¸®½º³Ê¸¦ °¡Áö°í ÀÖÀ» Çʿ䰡 ÀÖ½À´Ï´Ù. ÇØ´çÇÏ´Â ¸®½º³Ê°¡ º¹¼ö Á¸ÀçÇÏ´Â °æ¿ì, ±× ÁßÀÇ 1 °³¸¸ÀÌ »èÁ¦µË´Ï´Ù.

»èÁ¦µÇ´Â ¸®½º³Ê³»¿¡¼­ null °¡ ÁöÁ¤µÇ°í ÀÖ´Â °æ¿ì,filter ¹× handback ÆÄ¶ó¹ÌÅÍ´Â null °¡ µË´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º NotificationEmitter ³»ÀÇ removeNotificationListener
ÆÄ¶ó¹ÌÅÍ:
listener - ÀÌÀü¿¡ ÀÌ MBean ¿¡ Ãß°¡µÈ ¸®½º³Ê
filter - ¸®½º³ÊÀÇ Ãß°¡½Ã·Î ÁöÁ¤µÈ ÇÊÅÍ
handback - ¸®½º³ÊÀÇ Ãß°¡½Ã·Î ÁöÁ¤µÈ ÇÚµå¹é
¿¹¿Ü:
ListenerNotFoundException - ¸®½º³Ê°¡ MBean ¿¡ µî·ÏµÇÁö ¾ÊÀº °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ ÇÊÅÍ ¹× ÇÚµå¹éÀ¸·Î µî·ÏµÇÁö ¾ÊÀº °æ¿ì

sendNotification

public void sendNotification(Notification  ntfyObj)
                      throws MBeanException,

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

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

sendNotification

public void sendNotification(String  ntfyText)
                      throws MBeanException,

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

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

getNotificationInfo

public MBeanNotificationInfo [] getNotificationInfo()
RequiredModelMBean ¿¡ ÇØ »ý¼ºµÈ Notification ¹è¿­À» µ¹·ÁÁÝ´Ï´Ù.

RequiredModelMBean´Â 2 °³ÀÇ Ãß°¡ ÅëÁö¸¦ ¼Û½ÅÇÏ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù.

ÀÌ·¯ÇÑ 2 °³ÀÇ ÅëÁö´Â ¾îÇø®ÄÉÀ̼ǿ¡ ÇØ ÁöÁ¤µÈ ÅëÁö¿¡ Ç×»ó Ãß°¡µË´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º NotificationBroadcaster ³»ÀÇ getNotificationInfo
¹Ýȯ°ª:
MBeanNotificationInfo[]

addAttributeChangeNotificationListener

public void addAttributeChangeNotificationListener(NotificationListener  inlistener,
                                                   String  inAttributeName,
                                                   Object  inhandback)
                                            throws MBeanException,

                                                   RuntimeOperationsException,

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

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

removeAttributeChangeNotificationListener

public void removeAttributeChangeNotificationListener(NotificationListener  inlistener,
                                                      String  inAttributeName)
                                               throws MBeanException,

                                                      RuntimeOperationsException,

                                                      ListenerNotFoundException 
ÀÎÅÍÆäÀ̽º ModelMBeanNotificationBroadcaster ±â¼ú:
RequiredModelMBean ·ÎºÎÅÍ attributeChangeNotification ¸®½º³Ê¸¦ »èÁ¦ÇÕ´Ï´Ù.

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

sendAttributeChangeNotification

public void sendAttributeChangeNotification(AttributeChangeNotification  ntfyObj)
                                     throws MBeanException,

                                            RuntimeOperationsException 
ÀÎÅÍÆäÀ̽º ModelMBeanNotificationBroadcaster ±â¼ú:
ModelMBean »óÀÇ µî·ÏÀÌ ³¡³­ attributeChangeNotification ¿¡ °Ç³×¹Þ´Â attributeChangeNotification¸¦ ¼Û½ÅÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º ModelMBeanNotificationBroadcaster ³»ÀÇ sendAttributeChangeNotification
ÆÄ¶ó¹ÌÅÍ:
ntfyObj - ¸®½º³Ê ¿ÀºêÁ§Æ®ÀÇ handleNotification ¸Þ¼­µå¿¡°Ô °Ç³×Áö´Â ÅëÁö
¿¹¿Ü:
MBeanException - ¹èÄ¡°¡ ³¡³­ Åë½Å Exception¸¦ ·¦ ÇÑ´Ù
RuntimeOperationsException - IllegalArgumentException¸¦ ·¦ ÇÑ´Ù. ÆÄ¶ó¹ÌÅͷμ­ °Ç³×¹ÞÀº AttributeChangeNotification ¿ÀºêÁ§Æ®°¡ null °æ¿ì

sendAttributeChangeNotification

public void sendAttributeChangeNotification(Attribute  inOldVal,
                                            Attribute  inNewVal)
                                     throws MBeanException,

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

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º ModelMBeanNotificationBroadcaster ³»ÀÇ sendAttributeChangeNotification
ÆÄ¶ó¹ÌÅÍ:
inOldVal - Attribute ÃʱâÄ¡
inNewVal - 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 ¿ÀºêÁ§Æ®°¡ º¹¼ö ÁöÁ¤µÇ¾úÀ» °æ¿ì

getClassLoaderRepository

protected ClassLoaderRepository  getClassLoaderRepository()
Ŭ·¡½ºÀÇ ·Îµå¿¡ »ç¿ëµÈ Ŭ·¡½º ·Î´õ ¸®Æ÷ÁöÅ͸®(repository)¸¦ µ¹·ÁÁÝ´Ï´Ù. ¼­ºê Ŭ·¡½º´Â ÀÌ ¿ÀºêÁ§Æ®³»¿¡¼­ »ç¿ëÇÏ´Â ÀûÀýÇÑ ClassLoaderRepository ¸¦ µ¹·ÁÁֱ⠶§¹®¿¡ ÀÌ ¸Þ¼­µå¸¦ ÀçÁ¤ÀÇÇÒ ¼ö°¡ ÀÖ½À´Ï´Ù.

¹Ýȯ°ª:
Ŭ·¡½º ·Î´õ ¸®Æ÷ÁöÅ͸®(repository)

preRegister

public ObjectName  preRegister(MBeanServer  server,
                              ObjectName  name)
                       throws Exception 
MBean ¼­¹ö¿¡ µî·ÏÇϱâ Àü¿¡ MBean ¿¡ ÇÊ¿äÇÑ ¿ÀÆÛ·¹À̼ÇÀ» ½ÇÇà½Ãų ¼ö°¡ ÀÖ½À´Ï´Ù. MBean À̸§À» ÁöÁ¤ÇÏÁö ¾ÊÀ¸¸é MBean ¿¡ ÇØ, µî·Ï¿ëÀÇ À̸§ÀÌ Á¦°øµË´Ï´Ù. ¿¹¿Ü°¡ Throw µÇ¾úÀ» °æ¿ì, MBean´Â MBean ¼­¹ö¿¡ µî·ÏµÇÁö ¾Ê½À´Ï´Ù.

RequireModelMBean °¡ ½ÇÇà½Ã¿¡ ÀûÀýÈ÷ ±â´ÉÇϵµ·Ï, ÀÌ ¸Þ¼­µå¸¦ overload ¶Ç´Â ¿À¹ö¶óÀ̵å(override) ÇÏ´Â RequiredModelMBean ¼­ºê Ŭ·¡½º´Â °íÀ¯ÀÇ preRegister ±¸Çö³»ÀÇ super.preRegister(server, name)¸¦ È£ÃâÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º MBeanRegistration ³»ÀÇ preRegister
ÆÄ¶ó¹ÌÅÍ:
server - MBean ¼­¹ö. MBean´Â ¿©±â¿¡ µî·ÏµÇ´Â
name - MBean ¿ÀºêÁ§Æ®¸í. MBeanServer ÀÎÅÍÆäÀ̽º³»ÀÇ createMBean ¶Ç´Â registerMBean ¸Þ¼­µåÀÇ name ÆÄ¶ó¹ÌÅͰ¡ null °æ¿ì, ÀÌ À̸§µµ null °¡ µÈ´Ù. ÀÌ °æ¿ì, ÀÌ ¸Þ¼­µå´Â »õ·Î¿î MBean ¿ëÀ¸·Î¼­ null ÀÌ¿ÜÀÇ ObjectName¸¦ µ¹·ÁÁØ´Ù
¹Ýȯ°ª:
MBean µî·Ï¸í. null´Â ÁöÁ¤ÇÒ ¼ö ¾ø´Ù. name ÆÄ¶ó¹ÌÅÍÀÇ °ªÀÌ null ÀÌ¿ÜÀÇ °æ¿ì, ÀϹÝÀûÀ¸·Î °ªÀÌ µ¹·ÁÁÖ°íÁöÁö¸¸, À̰ÍÀº Çʼö´Â ¾Æ´Ï´Ù
¿¹¿Ü:
Exception - ÀÌ ¿¹¿Ü´Â MBean ¼­¹ö¿¡ ijġ µÇ¾îMBeanRegistrationException ·Î¼­ ÀçThrow µÈ´Ù

postRegister

public void postRegister(Boolean  registrationDone)
MBean ¼­¹ö¿¡ÀÇ µî·ÏÀÌ ¼º°ø ¶Ç´Â ½ÇÆÐÇÑ µÚ, MBean °¡ ÇÊ¿äÇÑ ¿ÀÆÛ·¹À̼ÇÀ» ½ÇÇàÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù.

RequireModelMBean °¡ ½ÇÇà½Ã¿¡ ÀûÀýÈ÷ ±â´ÉÇϵµ·Ï, ÀÌ ¸Þ¼­µå¸¦ overload ¶Ç´Â ¿À¹ö¶óÀ̵å(override) ÇÏ´Â RequiredModelMBean ¼­ºê Ŭ·¡½º´Â °íÀ¯ÀÇ postRegister ±¸Çö³»ÀÇ super.postRegister(registrationDone)¸¦ È£ÃâÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º MBeanRegistration ³»ÀÇ postRegister
ÆÄ¶ó¹ÌÅÍ:
registrationDone - MBean °¡ MBean ¼­¹ö¿¡ Á¤»óÀûÀ¸·Î µî·ÏµÇ¾ú´ÂÁö ¾î¶°Çß´ÂÁö¸¦ ³ªÅ¸³½´Ù. µî·Ï¿¡ ½ÇÆÐÇßÀ» °æ¿ìÀÇ °ªÀº false

preDeregister

public void preDeregister()
                   throws Exception 
MBean ¼­¹ö·ÎºÎÅÍ µî·Ï ÇØÁ¦Çϱâ Àü¿¡ MBean °¡ ÇÊ¿äÇÑ ¿ÀÆÛ·¹À̼ÇÀ» ½ÇÇàÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù.

RequireModelMBean °¡ ½ÇÇà½Ã¿¡ ÀûÀýÈ÷ ±â´ÉÇϵµ·Ï, ÀÌ ¸Þ¼­µå¸¦ overload ¶Ç´Â ¿À¹ö¶óÀ̵å(override) ÇÏ´Â RequiredModelMBean ¼­ºê Ŭ·¡½º´Â °íÀ¯ÀÇ preDeregister ±¸Çö³»ÀÇ super.preDeregister()¸¦ È£ÃâÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º MBeanRegistration ³»ÀÇ preDeregister
¿¹¿Ü:
Exception - ÀÌ ¿¹¿Ü´Â MBean ¼­¹ö¿¡ ijġ µÇ¾îMBeanRegistrationException ·Î¼­ ÀçThrow µÈ´Ù

postDeregister

public void postDeregister()
MBean ¼­¹ö·ÎºÎÅÍ µî·Ï ÇØÁ¦ÇÑ µÚ, MBean °¡ ÇÊ¿äÇÑ ¿ÀÆÛ·¹À̼ÇÀ» ½ÇÇàÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù.

RequireModelMBean °¡ ½ÇÇà½Ã¿¡ ÀûÀýÈ÷ ±â´ÉÇϵµ·Ï, ÀÌ ¸Þ¼­µå¸¦ overload ¶Ç´Â ¿À¹ö¶óÀ̵å(override) ÇÏ´Â RequiredModelMBean ¼­ºê Ŭ·¡½º´Â °íÀ¯ÀÇ postDeregister ±¸Çö³»ÀÇ super.postDeregister()¸¦ È£ÃâÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º MBeanRegistration ³»ÀÇ postDeregister

JavaTM 2 Platform
Standard Ed. 5.0

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