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À» ¹ß»ý½Ãŵ´Ï´Ù.

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

store

public void store()
           throws MBeanException,

                  RuntimeOperationsException,

                  InstanceNotFoundException 

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

ÀÌ Å¬·¡½ºÀÇ ±¸ÇöÀÌ Áö¼Ó¼ºÀ» Áö¿ø ÇÏÁö ¾Ê´Â °æ¿ì, ServiceNotFoundException¸¦ °¨½Î´Â MBeanExceptionÀ» ¹ß»ý½Ãŵ´Ï´Ù.

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 - ¸Þ¼­µåÀÇ È£Ãâ½Ã¿¡ ¹ß»ýµÇ´Â Exception¸¦ ·¦ ÇÑ´Ù
RuntimeOperationsException - IllegalArgumentException¸¦ ·¦ ÇÑ´Ù. ¸Þ¼­µå¸íÀÌ nullÀÎ °æ¿ì

getAttribute

public Object  getAttribute(String  attrName)
                    throws AttributeNotFoundException,

                           MBeanException,

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

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

getMethod Çʵ忡 À¯È¿ÇÑ ¿ÀÆÛ·¹ÀÌ¼Ç ±â¼úÀÚÀÇ À̸§ÀÌ Æ÷ÇԵǴ °æ¿ì, ÀÌ ¿ÀÆÛ·¹ÀÌ¼Ç ±â¼úÀÚ¿¡ ÀÇÇØ ±â¼úµÈ ¸Þ¼­µå°¡ ½ÇÇàµË´Ï´Ù. ¸Þ¼­µå´Â ÀÀ´äÀ¸·Î¼­ ¼Ó¼º°ªÀ» ¸®ÅÏÇÕ´Ï´Ù. ¿ÀÆÛ·¹À̼ÇÀÌ ½ÇÆÐÇßÀ» °æ¿ì, ¶Ç´Â ¹Ýȯ°ªÀÇ ÇüÅ°¡ ¼Ó¼ºÀÇ ÇüÅÂ¿Í ´Ù¸£°í ÀÖ´Â °æ¿ì, ¿¹¿Ü°¡ ¹ß»ý µË´Ï´Ù. 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 - Ãëµæ ¸Þ¼­µåÀÇ È£Ãâ½Ã¿¡ ¹ß»ýµÇ´Â 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 - ¼³Á¤ ¸Þ¼­µåÀÇ È£Ãâ½Ã¿¡ ¹ß»ýµÇ´Â 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 µµ ÂüÁ¶ÇϽʽÿÀ.