|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjavax.management.modelmbean.RequiredModelMBean
public class RequiredModelMBean
ÀÌ Å¬·¡½º´Â 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 µî)À¸·ÎºÎÅÍÀÇ ¿¹¿ÜÀÇ ·¦ÀÌ °¡´ÉÇÏ°Ô µË´Ï´Ù.
»ý¼ºÀÚ °³¿ä | |
---|---|
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 |
»ý¼ºÀÚ »ó¼¼ |
---|
public RequiredModelMBean() throws MBeanException, RuntimeOperationsException
RequiredModelMBean
¸¦ ±¸ÃàÇÕ´Ï´Ù.
RequiredModelMBean
MBeanInfo ¹× Descriptor Àº, setModelMBeanInfo(javax.management.modelmbean.ModelMBeanInfo)
¸Þ¼µå·Î Ä¿½ºÅ͸¶ÀÌÁî ÇÒ ¼ö ÀÖ½À´Ï´Ù. RequiredModelMBean
MBeanInfo ¹× Descriptor
Ä¿½ºÅ͸¶ÀÌÁî ÈÄ, RequiredModelMBean¸¦ MBeanServer¿¡ µî·ÏÇÒ ¼ö ÀÖ½À´Ï´Ù
.
MBeanException
- ¹è°ªÀÌ ³¡³ Åë½Å ExceptionÀ»
·¦ ÇÑ´Ù
RuntimeOperationsException
- °´Ã¼ÀÇ ±¸Ãà½Ã¿¡ RuntimeException
¸¦
·¦ ÇÑ´Ùpublic RequiredModelMBean(ModelMBeanInfo mbi) throws MBeanException, RuntimeOperationsException
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ÀÎ °æ¿ì¸Þ¼µåÀÇ »ó¼¼ |
---|
public void setModelMBeanInfo(ModelMBeanInfo mbi) throws MBeanException, RuntimeOperationsException
ModelMBean°¡ ÇöÀç µî·ÏµÇ¾î ÀÖ´Â °æ¿ì, ÀÌ ¸Þ¼µå´Â IllegalStateException
¸¦
°¨½Î´Â RuntimeOperationsException
¸¦
Throw ÇÕ´Ï´Ù.
ÁöÁ¤ÀÇ inModelMBeanInfo¿¡ GENERIC
¶Ç´Â ATTRIBUTE_CHANGE
ÅëÁö ModelMBeanNotificationInfo
°¡ Æ÷ÇÔµÇÁö ¾Ê´Â °æ¿ì, RequiredModelMBean ¿¡ÀÇÇØ µðÆúÆ® ModelMBeanNotificationInfo
°¡ Á¦°øµË´Ï´Ù.
ModelMBean
³»ÀÇ setModelMBeanInfo
mbi
- ModelMBean¿¡ ÀÇÇØ »ç¿ëµÇ´Â ModelMBeanInfo °´Ã¼
MBeanException
- ¹è°ªÀÌ ³¡³ Åë½Å ExceptionÀ»
·¦ ÇÑ´Ù
RuntimeOperationsException
- IllegalArgumentException
¸¦
·¦ ÇÑ´ÙIllegalStateException
¸¦
·¦ ÇÑ´Ùpublic void setManagedResource(Object mr, String mr_type) throws MBeanException, RuntimeOperationsException, InstanceNotFoundException, InvalidTargetObjectTypeException
ModelMBean
³»ÀÇ setManagedResource
mr
- °ü¸® ´ë»óÀÇ ÀÚ¿øÀÌ µÇ¾î ÀÖ´Â °´Ã¼mr_type
- °ü¸® ´ë»óÀÇ ÀÚ¿øÀÇ ÂüÁ¶ÀÇ ÇüÅÂ. MBeanException
- °´Ã¼ÀÇ ÀÌ´Ï»þ¶óÀÌÀÚ°¡ ¿¹¿Ü¸¦ Throw ÇßÀ» °æ¿ì
InstanceNotFoundException
- °ü¸® ´ë»óÀÇ ÀÚ¿ø °´Ã¼°¡ ¹ß°ßµÇÁö ¾Ê´Â °æ¿ì
InvalidTargetObjectTypeException
- °ü¸® ´ë»óÀÇ ÀÚ¿øÀÇ ÇüÅ´ ObjectReference°¡ ¾Æ´Ï¸é ¾ÈµÈ´Ù
RuntimeOperationsException
- ÀÚ¿øÀÇ ¼³Á¤½Ã¿¡ RuntimeException
¸¦
·¦ ÇÑ´Ùpublic void load() throws MBeanException, RuntimeOperationsException, InstanceNotFoundException
ÀÌ MBean ÀνºÅϽº¸¦ Áö¼Ó ½ºÅä¾î³»ÀÇ MBean ¿ë µ¥ÀÌÅÍ·Î ÀνºÅϽºÈÇÕ´Ï´Ù. µ¥ÀÌÅͷμ ¼Ó¼º°ú ¿ÀÆÛ·¹À̼ÇÀÇ °ªÀ» ·ÎµåÇÒ ¼ö ÀÖ½À´Ï´Ù.
ÀÌ ¸Þ¼µå´Â ÀÌ ÀνºÅϽºÀÇ ±¸Ãà ¶Ç´Â ÃʱâȽÃ, MBean¸¦ MBeanServer¿¡ µî·ÏÇϱâ Àü¿¡ È£ÃâÇÕ´Ï´Ù.
ÀÌ Å¬·¡½ºÀÇ ±¸ÇöÀÌ Áö¼Ó¼ºÀ» Áö¿ø
ÇÏÁö ¾Ê´Â °æ¿ì, ServiceNotFoundException
¸¦
°¨½Î´Â MBeanException
À» ¹ß»ý½Ãŵ´Ï´Ù.
PersistentMBean
³»ÀÇ load
MBeanException
- ±× ¿ÜÀÇ ¿¹¿Ü¸¦°¨½Î´Â °æ¿ì, ¶Ç´Â Áö¼Ó¼ºÀÌ Áö¿ø
µÇÁö ¾Ê´Â °æ¿ì
RuntimeOperationsException
- Áö¼Ó µµ±¸
·ÎºÎÅÍÀÇ ¿¹¿Ü¸¦°¨½Î´Â °æ¿ì
InstanceNotFoundException
- ÀÌ MBean°¡ ¹ß°ßµÇÁö ¾Ê´Â °æ¿ì, ¶Ç´Â Áö¼Ó ½ºÅ丮Áö·ÎºÎÅÍ ·ÎµåÇÒ ¼ö ¾ø´Â °æ¿ì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
- Áö¼Ó ½ºÅä¾î°¡ ¹ß°ßµÇÁö ¾Ê´Â °æ¿ì, ¶Ç´Â ¾×¼¼½º ÇÒ ¼ö ¾ø´Â °æ¿ìpublic MBeanInfo getMBeanInfo()
DynamicMBean
³»ÀÇ getMBeanInfo
public Object invoke(String opName, Object [] opArgs, String [] sig) throws MBeanException, ReflectionException
È£ÃâµÇ´Â ¸Þ¼µå¿Í ½Ã±×´ÏÃİ¡ RequiredModelMbean ·ÎºÎÅÍ ¾×¼¼½º °¡´ÉÇÑ ¸Þ¼µåÀÇ ¾î´À ÂÊÀΰ¡¿¡ ÀÏÄ¡Çϰí ÀÖ´Â °æ¿ì, ÀÌ ¸Þ¼µå°¡ È£ÃâµË´Ï´Ù. ±× ¿ÜÀÇ °æ¿ì, °ü¸® ´ë»óÀÇ ÀÚ¿ø»ó¿¡¼ ÁöÁ¤ÀÇ ¸Þ¼µåÀÇ È£ÃâÀÌ ½ÃÇàµË´Ï´Ù.
¿ÀÆÛ·¹À̼ǿ¡ ÀÇÇØ ¸®ÅÏµÈ ¸¶Áö¸· °ªÀº ModelMBeanOperationInfo ±â¼úÀÚ³»ÀÇ ¿ÀÆÛ·¹ÀÌ¼Ç ±â¼úÀÚ¿¡°Ô ij½¬µÇ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù. À¯È¿ÇÑ °ªÀÌ Á¸ÀçÇÏ´Â °æ¿ì, value Çʵ峻¿¡ Á¸ÀçÇÕ´Ï´Ù. °ªÀÌ Ä³½¬µÉÁö ¾î¶³Áö´Â ±â¼úÀÚ³»ÀÇ currencyTimeLimit ÇʵåÀÇ °ª¿¡ ÀÇÇØ Á¤ÇØÁý´Ï´Ù.
ÁÖ: ÀÌÀüÀÇ ¹öÀüÀÇ »ç¾ç°úÀÇ ºÎÁ¤ÇÕÀÌ Àֱ⠶§¹®¿¡
currencyTimeLimit
¿¡´Â Á¦·Î ¾Æ·¡ÀÇ °ªÀ» »ç¿ëÇÏÁö ¾Ê°ÔÀÇÇØ ÁÖ¼¼¿ä. ij½¬¿¡ µé¾î°£ °ªÀÌ À¯È¿ÇÏÁö ¾ÊÀº °ÍÀ» ³ªÅ¸³»°í ½ÍÀº °æ¿ì´Â currencyTimeLimit
Çʵ带 »ý·« ÇÕ´Ï´Ù. ÀÌ °ªÀÌ Ç×»ó À¯È¿ÇÑ °ÍÀ» ³ªÅ¸³»°í ½ÍÀº °æ¿ì´Â ÀÌ Çʵ忡 ¸Å¿ì Å« °ªÀ» ÁöÁ¤ÇÕ´Ï´Ù.
DynamicMBean
³»ÀÇ invoke
opName
- È£ÃâµÇ´Â ¸Þ¼µåÀÇ À̸§. Ŭ·¡½º¸íÀ» Æ÷ÇÔÇÑ ¿ÏÀü ¼ö½Ä ¸Þ¼µå¸í. ¿ÀÆÛ·¹ÀÌ¼Ç ±â¼úÀÚÀÇ class Çʵ忡 Ŭ·¡½º¸íÀÌ Á¤Àǵǰí ÀÖ´Â °æ¿ì´Â ¸Þ¼µå¸í¸¸opArgs
- ¿ÀÆÛ·¹À̼ÇÀÇ È£Ãâ½Ã·Î ¼³Á¤µÇ´Â ÆÄ¶ó¹ÌÅ͸¦ Æ÷ÇÔÇÑ ¹è¿sig
- ¿ÀÆÛ·¹À̼ÇÀÇ ½Ã±×´ÏÃĸ¦ Æ÷ÇÔÇÑ ¹è¿. Ŭ·¡½º °´Ã¼ÀÇ ·Îµå¿¡´Â ¿ÀÆÛ·¹À̼ÇÀ» È£ÃâÇÑ MBean¸¦ ·ÎµåÇÒ ¶§¿Í °°Àº Ŭ·¡½º ·Î´õ°¡ »ç¿ëµÈ´Ù
MBeanException
- ´ÙÀ½ÀÇ ¸î°³ÀÇ ExceptionÀ»
·¦ ÇÑ´Ù:ServiceNotFoundException
. ModelMBeanOperationInfo°¡ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì, ÁöÁ¤ÀÇ ¿ÀÆÛ·¹À̼ÇÀÇ ±â¼úÀÚ°¡ Á¤ÀǵǾî ÀÖÁö ¾ÊÀº °æ¿ì, ¶Ç´Â °ü¸® ´ë»óÀÇ ÀÚ¿øÀÌ nullÀÎ °æ¿ìInvalidTargetObjectTypeException
. targetType ÇʵåÀÇ °ªÀÌ objectReference°¡ ¾Æ´Ñ °æ¿ìReflectionException
- ¸Þ¼µåÀÇ È£Ãâ½Ã¿¡ ¹ß»ýµÇ´Â Exception
¸¦
·¦ ÇÑ´Ù
RuntimeOperationsException
- IllegalArgumentException
¸¦
·¦ ÇÑ´Ù. ¸Þ¼µå¸íÀÌ nullÀÎ °æ¿ìpublic Object getAttribute(String attrName) throws AttributeNotFoundException, MBeanException, ReflectionException
ÁÖ: ÀÌÀüÀÇ ¹öÀüÀÇ »ç¾ç°úÀÇ ºÎÁ¤ÇÕÀÌ Àֱ⠶§¹®¿¡
currencyTimeLimit
¿¡´Â Á¦·Î ¾Æ·¡ÀÇ °ªÀ» »ç¿ëÇÏÁö ¾Ê°ÔÀÇÇØ ÁÖ¼¼¿ä. ij½¬¿¡ µé¾î°£ °ªÀÌ À¯È¿ÇÏÁö ¾ÊÀº °ÍÀ» ³ªÅ¸³»°í ½ÍÀº °æ¿ì´Â currencyTimeLimit
Çʵ带 »ý·« ÇÕ´Ï´Ù. ÀÌ °ªÀÌ Ç×»ó À¯È¿ÇÑ °ÍÀ» ³ªÅ¸³»°í ½ÍÀº °æ¿ì´Â ÀÌ Çʵ忡 ¸Å¿ì Å« °ªÀ» ÁöÁ¤ÇÕ´Ï´Ù.
getMethod Çʵ忡 À¯È¿ÇÑ ¿ÀÆÛ·¹ÀÌ¼Ç ±â¼úÀÚÀÇ À̸§ÀÌ Æ÷ÇԵǴ °æ¿ì, ÀÌ ¿ÀÆÛ·¹ÀÌ¼Ç ±â¼úÀÚ¿¡ ÀÇÇØ ±â¼úµÈ ¸Þ¼µå°¡ ½ÇÇàµË´Ï´Ù. ¸Þ¼µå´Â ÀÀ´äÀ¸·Î¼ ¼Ó¼º°ªÀ» ¸®ÅÏÇÕ´Ï´Ù. ¿ÀÆÛ·¹À̼ÇÀÌ ½ÇÆÐÇßÀ» °æ¿ì, ¶Ç´Â ¹Ýȯ°ªÀÇ ÇüŰ¡ ¼Ó¼ºÀÇ ÇüÅÂ¿Í ´Ù¸£°í ÀÖ´Â °æ¿ì, ¿¹¿Ü°¡ ¹ß»ý µË´Ï´Ù. getMethod Çʵ尡 Á¤ÀǵǾî ÀÖÁö ¾ÊÀº °æ¿ì, ¼Ó¼ºÀÇ ±âº»°ªÀÌ ¸®Åϵ˴ϴ٠. ÀÌ ±¸ÇöÀ¸·Î getMethod¸¦ È£ÃâÇÒ Çʿ䰡 ÀÖ´Â °æ¿ì´Â È£ÃâÀÌ Á¤»óÀûÀ¸·Î ÇàÇØÁöµµ·Ï, ÀÌ getMethod¿¡ ´ëÇØ¼ ¿ÀÆÛ·¹À̼ÇÀ» ÁöÁ¤ÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù. À̰ÍÀº ¸Þ¼µå°¡ Ç¥ÁØÀÇ È£Ãâ ¸Þ¼µå·ÎºÎÅÍ ºÒ·Á°¡ operationInfo°¡ ÇÊ¿äÇÏ°Ô µÇ±â ¶§¹®ÀÔ´Ï´Ù.
DynamicMBean
³»ÀÇ getAttribute
attrName
- ÃëµæµÇ´Â ¼Ó¼ºÀÇ À̸§À» ÁöÁ¤ÇÏ´Â String. ModelMBeanAttributeInfo
À̸§¿¡ ÀÏÄ¡Çϰí ÀÖÀ» Çʿ䰡 ÀÖ´Ù
AttributeNotFoundException
- ÁöÁ¤ÀÇ ¼Ó¼ºÀÌ MBean¿¡ ¾×¼¼½º ÇÒ ¼ö ¾ø´Â °æ¿ì. ´ÙÀ½ÀÇ °æ¿ì, AttributeNotFoundException°¡ Throw µÉ °¡´É¼ºÀÌ ÀÖ´ÙMBeanException
- ´ÙÀ½ÀÇ ¸î°³ÀÇ ExceptionÀ»
·¦ ÇÑ´Ù:InvalidAttributeValueException
. ¼Ó¼ºÀÇ Ãëµæ ¸Þ¼µå·ÎºÎÅÍ ¹ÞÀº °ªÀÇ ÇüŰ¡ ºÎÁ¤ÇÑ °æ¿ì, ¶Ç´Â ¼Ó¼ºÀÇ ±â¼úÀÚ³»¿¡ getMethod Çʵ尡 Á¤ÀǵÇÁö ¾Ê°í, ±âº»°ªÀÌ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ìServiceNotFoundException
. ¼Ó¼ºÀÇ Ãëµæ ¸Þ¼µå¿¡ ´ëÇØ¼ ModelMBeanOperationInfo°¡ Á¤ÀǵǾî ÀÖÁö ¾ÊÀº °æ¿ì, ModelMBeanOperationInfo¿¡ ±â¼úÀÚ°¡ °ü·ÃÁöÀ» ¼ö ÀÖÁö ¾ÊÀº °æ¿ì, ¶Ç´Â °ü¸® ´ë»óÀÇ ÀÚ¿øÀÌ nullÀÎ °æ¿ìInvalidTargetObjectTypeException
. targetType ÇʵåÀÇ °ªÀÌ objectReference°¡ ¾Æ´Ñ °æ¿ìReflectionException
- Ãëµæ ¸Þ¼µåÀÇ È£Ãâ½Ã¿¡ ¹ß»ýµÇ´Â Exception
¸¦
·¦ ÇÑ´Ù
RuntimeOperationsException
- IllegalArgumentException
¸¦
·¦ ÇÑ´Ù. ÆÄ¶ó¹ÌÅͳ»ÀÇ ¼Ó¼º¸íÀÌ nullÀÎ °æ¿ìsetAttribute(javax.management.Attribute)
public AttributeList getAttributes(String [] attrNames)
DynamicMBean
³»ÀÇ getAttributes
attrNames
- ÃëµæµÇ´Â ¼Ó¼ºÀÇ À̸§¿¡¼ ¿Ï¼ºµÇ´Â String ¹è¿
RuntimeOperationsException
- IllegalArgumentException
¸¦
·¦ ÇÑ´Ù. ÆÄ¶ó¹ÌÅͳ»ÀÇ °´Ã¼¸íÀÌ nullÀÎ °æ¿ì, ¶Ç´Â ÆÄ¶ó¹ÌÅͳ»ÀÇ ¼Ó¼ºÀÌ nullÀÎ °æ¿ìsetAttributes(javax.management.AttributeList)
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
currencyTimeLimit°¡ > 0ÀÎ °æ¿ì, ¼Ó¼ºÀÇ »õ·Î¿î °ªÀÌ ¼Ó¼º ±â¼úÀÚÀÇ value Çʵ忡 ij½¬µÇ¾î lastUpdatedTimeStamp Çʵ忡 ÇöÀçÀÇ Å¸ÀÓ ½ºÅÆÇÁ°¡ ¼³Á¤µË´Ï´Ù.
¼Ó¼ºÀÇ ±â¼úÀÚÀÇ Áö¼Ó Çʵ尡 null ÀÌ¿ÜÀÇ °æ¿ì, Áö¼Ó ½ºÅä¾î³»¿¡ ¼Ó¼ºÀ» Æ÷ÇÔÇϱâ À§ÇØ, ¼Ó¼º ±â¼úÀÚÀÇ Persistance Á¤Ã¥°¡ »ç¿ëµË´Ï´Ù.
persistPolicy Çʵ尡 ´ÙÀ½ÀÇ ³»¿ëÀÌ µÇ¾î ÀÖ´Â °æ¿ì, MBean°¡ Æ÷ÇԵ˴ϴÙ.
Model MBean ModelMBeanInfo´Â ÆÄÀÏ¿¡ Æ÷ÇԵ˴ϴÙ.
DynamicMBean
³»ÀÇ setAttribute
attribute
- ¼³Á¤µÇ´Â ¼Ó¼ºÀÇ À̸§°ú ¼³Á¤Ä¡¸¦ Æ÷ÇÔÇÑ Attribute ÀνºÅϽº
AttributeNotFoundException
- ÁöÁ¤ÀÇ ¼Ó¼ºÀÌ MBean¿¡ ¾×¼¼½º ÇÒ ¼ö ¾ø´Â °æ¿ì. InvalidAttributeValueException
- ÁöÁ¤ÀÇ ¼Ó¼º¿¡ ±â¼úÀÚ°¡ Á¤ÀǵǾî ÀÖÁö ¾ÊÀº °æ¿ì
MBeanException
- ´ÙÀ½ÀÇ ¸î°³ÀÇ ExceptionÀ»
·¦ ÇÑ´Ù:ServiceNotFoundException
. ¼Ó¼ºÀÇ ±â¼úÀÚ¿¡°Ô setMethod Çʵ尡 Á¤ÀǵǾî ÀÖÁö ¾ÊÀºÁö, °ü¸® ´ë»óÀÇ ÀÚ¿øÀÌ nullÀÎ °æ¿ìInvalidTargetObjectTypeException
. targetType ÇʵåÀÇ °ªÀÌ objectReference°¡ ¾Æ´Ñ °æ¿ìReflectionException
- ¼³Á¤ ¸Þ¼µåÀÇ È£Ãâ½Ã¿¡ ¹ß»ýµÇ´Â Exception
¸¦
·¦ ÇÑ´Ù
RuntimeOperationsException
- IllegalArgumentException
¸¦
·¦ ÇÑ´Ù. ÆÄ¶ó¹ÌÅͳ»ÀÇ ¼Ó¼ºÀÌ nullÀÎ °æ¿ìgetAttribute(java.lang.String)
public AttributeList setAttributes(AttributeList attributes)
DynamicMBean
³»ÀÇ setAttributes
attributes
- ¼Ó¼ºÀÇ ¸®½ºÆ® (¼³Á¤µÇ´Â ¼Ó¼ºÀÇ ID¿Í
¼³Á¤µÇ´Â °ª)
RuntimeOperationsException
- IllegalArgumentException
¸¦
·¦ ÇÑ´Ù. ÆÄ¶ó¹ÌÅͳ»ÀÇ °´Ã¼¸íÀÌ nullÀÎ °æ¿ì, ¶Ç´Â ÆÄ¶ó¹ÌÅͳ»ÀÇ ¼Ó¼ºÀÌ nullÀÎ °æ¿ìgetAttributes(java.lang.String[])
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws IllegalArgumentException
NotificationBroadcaster
³»ÀÇ addNotificationListener
listener
- µî·ÏÀÌ ³¡³ MBean°¡ ¹ßÇàÇÑ ÅëÁö¸¦ ó¸®ÇÏ´Â ¸®½º³Ê °´Ã¼filter
- ÇÊÅÍ °´Ã¼. nullÀÎ °æ¿ì, ÅëÁö ó¸®Àü¿¡ ÇÊÅÍ´Â Àû¿ëµÇÁö ¾Ê´Âhandback
- ÅëÁö°¡ ¹ßÇàµÇ¾úÀ» ¶§ ÅëÁö¿Í ÇÔ²² ¸®½º³Ê¿¡°Ô ¼Û½ÅµÇ´Â ÄÁÅØ½ºÆ®
IllegalArgumentException
- ¸®½º³Ê´Â null ·Î ÇÒ ¼ö ¾ø´ÂremoveNotificationListener(javax.management.NotificationListener)
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
NotificationBroadcaster
³»ÀÇ removeNotificationListener
listener
- µî·ÏÀÌ ³¡³ MBean°¡ ¹ßÇàÇÑ ÅëÁö¸¦ ó¸®Çϰí ÀÖ´ø ¸®½º³ÊÀÇ À̸§. ÀÌ ¸Þ¼µå´Â ÀÌ ¸®½º³Ê¿¡ °üÇÑ ¸ðµç Á¤º¸¸¦ »èÁ¦ÇÑ´Ù
ListenerNotFoundException
- ¸®½º³Ê°¡ MBean¿¡ µî·ÏµÇÁö ¾ÊÀºÁö, nullÀÎ °æ¿ìaddNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object)
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¿¡ µî·ÏµÇÁö ¾ÊÀº °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ ÇÊÅÍ ¹× ÇÚµå¹éÀ¸·Î µî·ÏµÇÁö ¾ÊÀº °æ¿ìpublic void sendNotification(Notification ntfyObj) throws MBeanException, RuntimeOperationsException
ModelMBeanNotificationBroadcaster
񃬣:
ModelMBeanNotificationBroadcaster
³»ÀÇ sendNotification
ntfyObj
- ¸®½º³Ê °´Ã¼ÀÇ handleNotification ¸Þ¼µå¿¡°Ô °Ç³×Áö´Â ÅëÁö
MBeanException
- ¹è°ªÀÌ ³¡³ Åë½Å ExceptionÀ»
·¦ ÇÑ´Ù
RuntimeOperationsException
- IllegalArgumentExceptionÀ»
·¦ ÇÑ´Ù. ÆÄ¶ó¹ÌÅͷμ °Ç³×¹ÞÀº Notification °´Ã¼°¡ nullÀÎ °æ¿ìpublic void sendNotification(String ntfyText) throws MBeanException, RuntimeOperationsException
ModelMBeanNotificationBroadcaster
񃬣:
ModelMBeanNotificationBroadcaster
³»ÀÇ sendNotification
ntfyText
- Notification ·Î ÁöÁ¤µÇ¾î ¸®½º³Ê °´Ã¼ÀÇ handleNotification ¸Þ¼µå¿¡°Ô °Ç³×Áö´Â ÅØ½ºÆ®. ±¸Ãà ³¡³ Notification´Â type "jmx.modelmbean.generic" source this ModelMBean instance sequence 1
MBeanException
- ¹è°ªÀÌ ³¡³ Åë½Å ExceptionÀ»
·¦ ÇÑ´Ù
RuntimeOperationsException
- IllegalArgumentExceptionÀ»
·¦ ÇÑ´Ù. ÆÄ¶ó¹ÌÅͷμ °Ç³×¹ÞÀº Notification ÅØ½ºÆ® ij¸¯ÅÍ ¶óÀÎÀÌ nullÀÎ °æ¿ìpublic MBeanNotificationInfo [] getNotificationInfo()
RequiredModelMBean´Â 2°³ÀÇ Ãß°¡ ÅëÁö¸¦ ¼Û½ÅÇÏ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù.
"name=GENERIC, descriptorType=notification, log=T, severity=6, displayName=jmx.modelmbean.generic"
¸¦ °¡Áö´Â ÅëÁö"name=ATTRIBUTE_CHANGE, descriptorType=notification, log=T, severity=6, displayName=jmx.attribute.change"
¸¦ °¡Áö´Â Ç¥ÁØ ¼Ó¼º º¯°æ ÅëÁö
NotificationBroadcaster
³»ÀÇ getNotificationInfo
public void addAttributeChangeNotificationListener(NotificationListener inlistener, String inAttributeName, Object inhandback) throws MBeanException, RuntimeOperationsException, IllegalArgumentException
ModelMBeanNotificationBroadcaster
񃬣:
ModelMBeanNotificationBroadcaster
³»ÀÇ addAttributeChangeNotificationListener
inlistener
- µî·ÏÀÌ ³¡³ MBean°¡ ¹ßÇàÇÑ ÅëÁö¸¦ ó¸®ÇÏ´Â ¸®½º³Ê °´Ã¼inAttributeName
- ModelMBean ¼Ó¼ºÀÇ À̸§. ÀÌ ¼Ó¼ºÀÇ º¯°æ ÅëÁö¸¦ ¼ö½ÅÇÑ´Ù. nullÀÎ °æ¿ì, ¾î´À ¼Ó¼ºÀÌ º¯°æµÇ¾úÀ» ¶§µµ attributeChangeNotification°¡ ¹ßÇàµÇ´Âinhandback
- ÅëÁö°¡ ¹ßÇàµÇ¾úÀ» ¶§ ÅëÁö¿Í ÇÔ²² ¸®½º³Ê¿¡°Ô ¼Û½ÅµÇ´Â ÄÁÅØ½ºÆ®
MBeanException
- ¹è°ªÀÌ ³¡³ Åë½Å ExceptionÀ»
·¦ ÇÑ´Ù
RuntimeOperationsException
- IllegalArgumentExceptionÀ»
·¦ ÇÑ´Ù. ÆÄ¶ó¹ÌÅͷμ °Ç³×¹Þ´Â ¼Ó¼º¸íÀÌ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì
IllegalArgumentException
- ¸®½º³Ê´Â null ·Î ÇÒ ¼ö ¾ø´ÂModelMBeanNotificationBroadcaster.removeAttributeChangeNotificationListener(javax.management.NotificationListener, java.lang.String)
public void removeAttributeChangeNotificationListener(NotificationListener inlistener, String inAttributeName) throws MBeanException, RuntimeOperationsException, ListenerNotFoundException
ModelMBeanNotificationBroadcaster
񃬣:
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)
public void sendAttributeChangeNotification(AttributeChangeNotification ntfyObj) throws MBeanException, RuntimeOperationsException
ModelMBeanNotificationBroadcaster
񃬣:
ModelMBeanNotificationBroadcaster
³»ÀÇ sendAttributeChangeNotification
ntfyObj
- ¸®½º³Ê °´Ã¼ÀÇ handleNotification ¸Þ¼µå¿¡°Ô °Ç³×Áö´Â ÅëÁö
MBeanException
- ¹è°ªÀÌ ³¡³ Åë½Å ExceptionÀ»
·¦ ÇÑ´Ù
RuntimeOperationsException
- IllegalArgumentExceptionÀ»
·¦ ÇÑ´Ù. ÆÄ¶ó¹ÌÅͷμ °Ç³×¹ÞÀº AttributeChangeNotification °´Ã¼°¡ nullÀÎ °æ¿ìpublic void sendAttributeChangeNotification(Attribute inOldVal, Attribute inNewVal) throws MBeanException, RuntimeOperationsException
ModelMBeanNotificationBroadcaster
񃬣:
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 °´Ã¼°¡ º¹¼ö ÁöÁ¤µÇ¾úÀ» °æ¿ìprotected ClassLoaderRepository getClassLoaderRepository()
ClassLoaderRepository
¸¦
µ¹·ÁÁֱ⠶§¹®¿¡
ÀÌ ¸Þ¼µå¸¦ ÀçÁ¤ÀÇÇÒ ¼ö ÀÖ½À´Ï´Ù
.
public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
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¸¦ µ¹·ÁÁØ´Ù
name
ÆÄ¶ó¹ÌÅÍÀÇ °ªÀÌ null ÀÌ¿ÜÀÇ °æ¿ì, ÀϹÝÀûÀ¸·Î °ªÀÌ µ¹·ÁÁÖ°íÁöÁö¸¸, À̰ÍÀº Çʼö´Â ¾Æ´Ï´Ù
Exception
- ÀÌ ¿¹¿Ü´Â MBean ¼¹ö¿¡ ijġ µÇ¾îMBeanRegistrationException
·Î¼ ÀçThrow µÈ´Ùpublic void postRegister(Boolean registrationDone)
RequireModelMBean°¡ ½ÇÇà½Ã¿¡ ÀûÀýÈ÷ ±â´ÉÇϵµ·Ï, ÀÌ ¸Þ¼µå¸¦ overload ¶Ç´Â ¿À¹ö¶óÀ̵å(override) ÇÏ´Â RequiredModelMBean
¼ºê Ŭ·¡½º´Â °íÀ¯ÀÇ postRegister
±¸Çö³»ÀÇ super.postRegister(registrationDone)
¸¦ È£ÃâÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
MBeanRegistration
³»ÀÇ postRegister
registrationDone
- MBean°¡ MBean ¼¹ö¿¡ Á¤»óÀûÀ¸·Î µî·ÏµÇ¾ú´ÂÁö ¾î¶°Çß´ÂÁö¸¦ ³ªÅ¸³½´Ù. µî·Ï¿¡ ½ÇÆÐÇßÀ» °æ¿ìÀÇ °ªÀº falsepublic void preDeregister() throws Exception
RequireModelMBean°¡ ½ÇÇà½Ã¿¡ ÀûÀýÈ÷ ±â´ÉÇϵµ·Ï, ÀÌ ¸Þ¼µå¸¦ overload ¶Ç´Â ¿À¹ö¶óÀ̵å(override) ÇÏ´Â RequiredModelMBean
¼ºê Ŭ·¡½º´Â °íÀ¯ÀÇ preDeregister
±¸Çö³»ÀÇ super.preDeregister()
¸¦ È£ÃâÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
MBeanRegistration
³»ÀÇ preDeregister
Exception
- ÀÌ ¿¹¿Ü´Â MBean ¼¹ö¿¡ ijġ µÇ¾îMBeanRegistrationException
·Î¼ ÀçThrow µÈ´Ùpublic void postDeregister()
RequireModelMBean°¡ ½ÇÇà½Ã¿¡ ÀûÀýÈ÷ ±â´ÉÇϵµ·Ï, ÀÌ ¸Þ¼µå¸¦ overload ¶Ç´Â ¿À¹ö¶óÀ̵å(override) ÇÏ´Â RequiredModelMBean
¼ºê Ŭ·¡½º´Â °íÀ¯ÀÇ postDeregister
±¸Çö³»ÀÇ super.postDeregister()
¸¦ È£ÃâÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
MBeanRegistration
³»ÀÇ postDeregister
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.