|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
java.lang.Objectjavax.management.StandardMBean
public class StandardMBean
Java ÀÎÅÍÆäÀ̽ºÀÇ ¸®Ç÷º¼Ç¿¡ ÀÇÇØ °ü¸® ÀÎÅÍÆäÀ̽º¸¦ °áÁ¤ÇÏ´Â MBean ÀÔ´Ï´Ù.
ÀÌ Å¬·¡½º´Â Standard MBean »ç¿ë¿¡ ÀÖ¾î¼ÀÇ °ü¸® ÀÎÅÍÆäÀ̽ºÀÇ °³³äÀÇ À¯¿¬¼ºÀ» Çâ»ó½Ãŵ´Ï´Ù. JMX »ç¾ç¿¡ ¼³¸íµÇ°í ÀÖ´Â Standard MBean ÆÐÅÏÀÇ ´Ü¼øÇÑ »ç¿ë ¹æ¹ý¿¡´Â MBean ±¸Çö Ŭ·¡½º¿Í °ü¸® ÀÎÅÍÆäÀ̽º°£¿¡ °íÁ¤ÇÑ °ü°è°¡ ÀÖ´Ù°í ¼³¸íµÇ°í ÀÖ½À´Ï´Ù (Áï, ±¸Çö Ŭ·¡½º°¡ ThingÀÎ °æ¿ì, °ü¸® ÀÎÅÍÆäÀ̽º´Â ThingMBean°¡ ¾Æ´Ï¸é ¾ÈµÈ´Ù). ÀÌ Å¬·¡½º´Â ±¸Çö Ŭ·¡½º¿Í ÀÎÅÍÆäÀ̽º Ŭ·¡½º°£ÀÇ À̸§ÀÇ °ü·Ã¼ºÀ» ÇÊ¿ä·Î ÇÏÁö ¾Ê°í, Java ÀÎÅÍÆäÀ̽º¿¡ ÇÑ °ü¸® ÀÎÅÍÆäÀ̽ºÀÇ ÁöÁ¤¿¡ µµ¿òÀÌ µË´Ï´Ù.
MBean ·ÎºÎÅÍ DynamicMBean¸¦ Á¦¿ÜÇÏ´Â °ÍÀ¸·Î½á, ÀÌ Å¬·¡½º´Â MBean°¡ ±¸ÇöÇÏ´Â ÀÓÀÇÀÇ ÀÎÅÍÆäÀ̽º¸¦ °ü¸® ÀÎÅÍÆäÀ̽º·Î¼ ¼±ÅÃÇÒ ¼ö ÀÖ½À´Ï´Ù. ´Ù¸¸, JMX ÆÐÅÏ¿¡ ÁذÅÇÏ´Â ÀÎÅÍÆäÀ̽º°¡ ¾Æ´Ï¸é ¾ÈµË´Ï´Ù (Ãëµæ ¸Þ¼µå ¶Ç´Â ¼³Á¤ ¸Þ¼µå¿¡ ÀÇÇØ Á¤ÀÇµÈ ¼Ó¼º µî).
ÀÌ Å¬·¡½º´Â DynamicMBean ÀÎÅÍÆäÀ̽º·ÎºÎÅÍ ¸®ÅϵÈ
MBeanInfo¿¡ Ä¿½ºÅÒÀÇ ±â¼ú°ú À̸§À» ÇÒ´çÇÒ ¼ö ÀÖ´Â ÈÅÀ» Á¦°øÇÕ´Ï´Ù.
ÀÌ Å¬·¡½º¸¦ »ç¿ëÇØ, ÀÓÀÇÀÇ ±¸Çö Ŭ·¡½º¸í Impl¿Í ÀÓÀÇÀÇ ÀÎÅÍÆäÀ̽º Intf ·Î Á¤ÀÇµÈ °ü¸® ÀÎÅÍÆäÀ̽º (ÇöÀçÀÇ Standard MBean ¿ë)¸¦ ÁöÁ¤ÇØ MBean¸¦ ÀÛ¼ºÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀϹÝÀûÀ¸·Î ´ÙÀ½ÀÇ ¸î°³ÀÇ ÀÛ¼º ¹æ¹ýÀ» ¼±ÅÃÇÕ´Ï´Ù.
StandardMBean(impl, interface)¸¦
»ç¿ë
MBeanServer mbs; ... Impl impl = new Impl(...); StandardMBean mbean = new StandardMBean(impl, Intf.class); mbs.registerMBean(mbean, objectName);
public class Impl extends StandardMBean implements Intf { public Impl() { super(Intf.class);
} // implement methods of Intf }
[...]
MBeanServer mbs; .... Impl impl = new Impl(); mbs.registerMBean(impl, objectName); ¾î´À °æ¿ìµµ, Ŭ·¡½º Impl´Â ÀÎÅÍÆäÀ̽º Intf¸¦ ±¸ÇöÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
±¸Çö Ŭ·¡½º¿Í ÀÎÅÍÆäÀ̽º Ŭ·¡½º°£ÀÇ À̸§ÀÇ °ü·Ã¼º¿¡ ±Ù°ÅÇÑ Standard MBean µµ, °è¼Ó »ç¿ë °¡´ÉÇÕ´Ï´Ù.
| »ý¼ºÀÚ °³¿ä | |
|---|---|
protected |
StandardMBean (Class mbeanInterface)
ƯÁ¤ÀÇ mbeanInterface Ŭ·¡½º¸¦ »ç¿ëÇØ, DynamicMBean¸¦ this ·ÎºÎÅÍ Á¦¿ÜÇÕ´Ï´Ù. |
|
StandardMBean (Object implementation,
Class mbeanInterface)
ƯÁ¤ÀÇ mbeanInterface Ŭ·¡½º¸¦ »ç¿ëÇØ, DynamicMBean¸¦ °´Ã¼ implementation ·ÎºÎÅÍ Á¦¿ÜÇÕ´Ï´Ù. |
| ¸Þ¼µå °³¿ä | |
|---|---|
protected void |
cacheMBeanInfo (MBeanInfo info)
Ä¿½ºÅ͸¶ÀÌÁî ÈÅ: ÀÌ °´Ã¼¿ëÀ¸·Î ±¸ÃàµÈ MBeanInfo¸¦ ij½¬¿¡ ³Ö½À´Ï´Ù. |
Object |
getAttribute (String attribute)
Dynamic MBean ƯÁ¤ÀÇ ¼Ó¼ºÀÇ °ªÀ» ÃëµæÇÕ´Ï´Ù. |
AttributeList |
getAttributes (String [] attributes)
Dynamic MBean º¹¼öÀÇ ¼Ó¼ºÀÇ °ªÀ» ÃëµæÇÕ´Ï´Ù. |
protected MBeanInfo |
getCachedMBeanInfo ()
Ä¿½ºÅ͸¶ÀÌÁî ÈÅ: ÀÌ °´Ã¼¿ëÀ¸·Î ij½¬µÈ MBeanInfo¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
protected String |
getClassName (MBeanInfo info)
Ä¿½ºÅ͸¶ÀÌÁî ÈÅ: ÀÌ MBean ·ÎºÎÅÍ ¸®ÅÏµÈ MBeanInfo ³»¿¡¼ »ç¿ëµÇ´Â className¸¦ ÃëµæÇÕ´Ï´Ù. |
protected MBeanConstructorInfo [] |
getConstructors (MBeanConstructorInfo [] ctors,
Object impl)
Ä¿½ºÅ͸¶ÀÌÁî ÈÅ: ÀÌ MBean ·ÎºÎÅÍ ¸®ÅÏµÈ MBeanInfo ·Î »ç¿ëµÇ´Â MBeanConstructorInfo[]¸¦ ÃëµæÇÕ´Ï´Ù. |
protected String |
getDescription (MBeanAttributeInfo info)
Ä¿½ºÅ͸¶ÀÌÁî ÈÅ: ÀÌ MBean°¡ µ¹·ÁÁÖ´Â MBeanAttributeInfo ³»¿¡¼ »ç¿ëµÇ´Â ¼³¸íÀ» ÃëµæÇÕ´Ï´Ù. |
protected String |
getDescription (MBeanConstructorInfo info)
Ä¿½ºÅ͸¶ÀÌÁî ÈÅ: ÀÌ MBean ·ÎºÎÅÍ ¸®ÅÏµÈ MBeanConstructorInfo ³»¿¡¼ »ç¿ëµÇ´Â ¼³¸íÀ» ÃëµæÇÕ´Ï´Ù. |
protected String |
getDescription (MBeanConstructorInfo ctor,
MBeanParameterInfo param,
int sequence)
Ä¿½ºÅ͸¶ÀÌÁî ÈÅ: ÀÌ MBean ·ÎºÎÅÍ ¸®ÅÏµÈ MBeanConstructorInfo sequence MBeanParameterInfo¿¡ »ç¿ëµÇ´Â ¼³¸íÀ» ÃëµæÇÕ´Ï´Ù. |
protected String |
getDescription (MBeanFeatureInfo info)
Ä¿½ºÅ͸¶ÀÌÁî ÈÅ: ÀÌ MBean°¡ µ¹·ÁÁÖ´Â MBeanFeatureInfo ³»¿¡¼ »ç¿ëµÇ´Â ¼³¸íÀ» ÃëµæÇÕ´Ï´Ù. |
protected String |
getDescription (MBeanInfo info)
Ä¿½ºÅ͸¶ÀÌÁî ÈÅ: ÀÌ MBean ·ÎºÎÅÍ ¸®ÅÏµÈ MBeanInfo ³»¿¡¼ »ç¿ëµÇ´Â ¼³¸íÀ» ÃëµæÇÕ´Ï´Ù. |
protected String |
getDescription (MBeanOperationInfo info)
Ä¿½ºÅ͸¶ÀÌÁî ÈÅ: ÀÌ MBean ·ÎºÎÅÍ ¸®ÅÏµÈ MBeanOperationInfo ³»¿¡¼ »ç¿ëµÇ´Â ¼³¸íÀ» ÃëµæÇÕ´Ï´Ù. |
protected String |
getDescription (MBeanOperationInfo op,
MBeanParameterInfo param,
int sequence)
Ä¿½ºÅ͸¶ÀÌÁî ÈÅ: ÀÌ MBean ·ÎºÎÅÍ ¸®ÅÏµÈ MBeanOperationInfo sequence MBeanParameterInfo¿¡ »ç¿ëµÇ´Â ¼³¸íÀ» ÃëµæÇÕ´Ï´Ù. |
protected int |
getImpact (MBeanOperationInfo info)
Ä¿½ºÅ͸¶ÀÌÁî ÈÅ: ÀÌ MBean ·ÎºÎÅÍ ¸®ÅÏµÈ MBeanOperationInfo ·Î »ç¿ëµÇ´Â ¿ÀÆÛ·¹À̼ÇÀÇ impact Ç÷¡±×¸¦ ÃëµæÇÕ´Ï´Ù. |
Object |
getImplementation ()
ÀÌ MBean ±¸ÇöÀ» ÃëµæÇÕ´Ï´Ù. |
Class |
getImplementationClass ()
ÀÌ MBean ±¸Çö Ŭ·¡½º¸¦ ÃëµæÇÕ´Ï´Ù. |
MBeanInfo |
getMBeanInfo ()
ÀÌ MBean MBeanInfo¸¦
ÃëµæÇÕ´Ï´Ù. |
Class |
getMBeanInterface ()
ÀÌ MBean °ü¸® ÀÎÅÍÆäÀ̽º¸¦ ÃëµæÇÕ´Ï´Ù. |
protected String |
getParameterName (MBeanConstructorInfo ctor,
MBeanParameterInfo param,
int sequence)
Ä¿½ºÅ͸¶ÀÌÁî ÈÅ: ÀÌ MBean ·ÎºÎÅÍ ¸®ÅÏµÈ MBeanConstructorInfo sequence MBeanParameterInfo¿¡ »ç¿ëµÇ´Â À̸§À» ÃëµæÇÕ´Ï´Ù. |
protected String |
getParameterName (MBeanOperationInfo op,
MBeanParameterInfo param,
int sequence)
Ä¿½ºÅ͸¶ÀÌÁî ÈÅ: ÀÌ MBean ·ÎºÎÅÍ ¸®ÅÏµÈ MBeanOperationInfo sequence MBeanParameterInfo¿¡ »ç¿ëµÇ´Â À̸§À» ÃëµæÇÕ´Ï´Ù. |
Object |
invoke (String actionName,
Object [] params,
String [] signature)
Dynamic MBean »ó¿¡¼ÀÇ ¾×¼ÇÀÇ ½ÇÇàÀ» Çã¿ëÇÕ´Ï´Ù. |
void |
setAttribute (Attribute attribute)
Dynamic MBean ƯÁ¤ÀÇ ¼Ó¼ºÀÇ °ªÀ» ¼³Á¤ÇÕ´Ï´Ù. |
AttributeList |
setAttributes (AttributeList attributes)
Dynamic MBean º¹¼öÀÇ ¼Ó¼ºÀÇ °ªÀ» ¼³Á¤ÇÕ´Ï´Ù. |
void |
setImplementation (Object implementation)
ÀÌ °´Ã¼³»ÀÇ ·¦ µÈ ±¸Çö °´Ã¼¸¦ ġȯÇÕ´Ï´Ù. |
| Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
|---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| »ý¼ºÀÚ »ó¼¼ |
|---|
public StandardMBean(Object implementation,
Class mbeanInterface)
throws NotCompliantMBeanException
ƯÁ¤ÀÇ mbeanInterface Ŭ·¡½º¸¦ »ç¿ëÇØ, DynamicMBean¸¦ °´Ã¼ implementation ·ÎºÎÅÍ Á¦¿ÜÇÕ´Ï´Ù.
implementation - ÀÌ MBean
±¸ÇömbeanInterface - ÀÌ MBean
±¸Çö¿¡ ÀÇÇØ export µÇ´Â °ü¸® ÀÎÅÍÆäÀ̽º. nullÀÎ °æ¿ì, ÀÌ °´Ã¼´Â Ç¥ÁØ JMX ¼³°è ÆÐÅÏÀ» »ç¿ëÇØ, ÁöÁ¤µÈ ±¸Çö¿¡ °ü·ÃµÈ
°ü¸® ÀÎÅÍÆäÀ̽º¸¦ ƯÁ¤ÇÑ´Ù
IllegalArgumentException - ÁöÁ¤µÈ implementation°¡ null ÀÎ °æ¿ì
NotCompliantMBeanException - mbeanInterface°¡ °ü¸® ÀÎÅÍÆäÀ̽ºÀÇ JMX ¼³°è ÆÐÅÏ¿¡ µû¸£Áö ¾ÊÀº °æ¿ì, ¶Ç´Â ÁöÁ¤µÈ implementation°¡ ƯÁ¤ÀÇ ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇϰí ÀÖÁö ¾Ê´Â °æ¿ì
protected StandardMBean(Class mbeanInterface)
throws NotCompliantMBeanException
ƯÁ¤ÀÇ mbeanInterface Ŭ·¡½º¸¦ »ç¿ëÇØ, DynamicMBean¸¦ this ·ÎºÎÅÍ Á¦¿ÜÇÕ´Ï´Ù.
this(this, mbeanInterface)¸¦
È£ÃâÇÕ´Ï´Ù. ÀÌ »ý¼ºÀÚ´Â ¼ºê Ŭ·¡½º¿ëÀ¸·Î¼ ¿¹¾àµÇ°í ÀÖ½À´Ï´Ù.
mbeanInterface - ÀÌ MBean¿¡ ÀÇÇØ export µÇ´Â °ü¸® ÀÎÅÍÆäÀ̽º
NotCompliantMBeanException - mbeanInterface°¡ °ü¸® ÀÎÅÍÆäÀ̽ºÀÇ JMX ¼³°è ÆÐÅÏ¿¡ µû¸£Áö ¾ÊÀº °æ¿ì, ¶Ç´Â this°¡ ƯÁ¤ÀÇ ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇϰí ÀÖÁö ¾Ê´Â °æ¿ì| ¸Þ¼µåÀÇ »ó¼¼ |
|---|
public void setImplementation(Object implementation)
throws NotCompliantMBeanException
ÀÌ °´Ã¼³»ÀÇ ·¦ µÈ ±¸Çö °´Ã¼¸¦ ġȯÇÕ´Ï´Ù.
implementation - ÀÌ MBean
»õ·Î¿î ±¸Çö. implementation°´Ã¼´Â
ÀÌ StandardMBean
±¸Ãà½Ã¿¡ Á¦°øµÈ MBean ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇÒ Çʿ䰡 ÀÖ´Ù
IllegalArgumentException - ÁöÁ¤µÈ implementation°¡ null ÀÎ °æ¿ì
NotCompliantMBeanException - ÁöÁ¤µÈ implementation°¡ ±¸Ãà½Ã¿¡ Á¦°øµÈ MBean ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇϰí ÀÖÁö ¾Ê´Â °æ¿ìgetImplementation() public Object getImplementation()
setImplementation(java.lang.Object) public final Class getMBeanInterface()
public Class getImplementationClass()
public Object getAttribute(String attribute)
throws AttributeNotFoundException,
MBeanException,
ReflectionException
DynamicMBean
񃬣:
DynamicMBean ³»ÀÇ getAttribute attribute - ÃëµæµÇ´Â ¼Ó¼ºÀÇ À̸§
AttributeNotFoundException - @exception MBeanException MBean
Ãëµæ ¸Þ¼µå¿¡ ÀÇÇØ ¹ß»ýµÇ´Â java.lang.Exception¸¦ °¨½Î´Â °æ¿ì
ReflectionException - Ãëµæ ¸Þ¼µåÀÇ È£Ãâ½Ã¿¡ ¹ß»ýµÇ´Â java.lang.Exception¸¦ °¨½Î´Â °æ¿ì
MBeanException DynamicMBean.setAttribute(javax.management.Attribute)
public void setAttribute(Attribute attribute)
throws AttributeNotFoundException,
InvalidAttributeValueException,
MBeanException,
ReflectionException
DynamicMBean
񃬣:
DynamicMBean ³»ÀÇ setAttribute attribute - ¼³Á¤µÇ´Â ¼Ó¼ºÀÇ ID¿Í
¼³Á¤µÇ´Â °ª
AttributeNotFoundException - @exception InvalidAttributeValueException
MBeanException - MBean
¼³Á¤ ¸Þ¼µå¿¡ ÀÇÇØ ¹ß»ýµÇ´Â java.lang.Exception¸¦ °¨½Î´Â °æ¿ì
ReflectionException - MBean
¼³Á¤ ¸Þ¼µåÀÇ È£Ãâ½Ã¿¡ ¹ß»ýµÇ´Â java.lang.Exception¸¦ °¨½Î´Â °æ¿ì
InvalidAttributeValueException DynamicMBean.getAttribute(java.lang.String) public AttributeList getAttributes(String [] attributes)
DynamicMBean
񃬣:
DynamicMBean ³»ÀÇ getAttributes attributes - ÃëµæµÇ´Â ¼Ó¼ºÀÇ ¸®½ºÆ®
DynamicMBean.setAttributes(javax.management.AttributeList) public AttributeList setAttributes(AttributeList attributes)
DynamicMBean
񃬣:
DynamicMBean ³»ÀÇ setAttributes attributes - ¼Ó¼ºÀÇ ¸®½ºÆ® (¼³Á¤µÇ´Â ¼Ó¼ºÀÇ ID¿Í
¼³Á¤µÇ´Â °ª)
DynamicMBean.getAttributes(java.lang.String[])
public Object invoke(String actionName,
Object [] params,
String [] signature)
throws MBeanException,
ReflectionException
DynamicMBean
񃬣:
DynamicMBean ³»ÀÇ invoke actionName - È£ÃâµÇ´Â ¾×¼ÇÀÇ À̸§params - ¾×¼ÇÀÇ È£Ãâ½Ã·Î ¼³Á¤µÇ´Â ÆÄ¶ó¹ÌÅ͸¦ Æ÷ÇÔÇÑ ¹è¿signature - ¾×¼ÇÀÇ ½Ã±×´ÏÃĸ¦ Æ÷ÇÔÇÑ ¹è¿. Ŭ·¡½º °´Ã¼ÀÇ ·Îµå¿¡´Â ¾×¼ÇÀ» È£ÃâÇÏ´Â MBean¸¦ ·ÎµåÇÒ ¶§¿Í °°Àº Ŭ·¡½º ·Î´õ°¡ »ç¿ëµÈ´Ù
MBeanException - MBean
È£Ãâ ¸Þ¼µå¿¡ ÀÇÇØ ¹ß»ýµÇ´Â java.lang.Exception¸¦ °¨½Î´Â °æ¿ì
ReflectionException - ¸Þ¼µåÀÇ È£Ãâ½Ã¿¡ ¹ß»ýµÇ´Â java.lang.Exception¸¦ °¨½Î´Â °æ¿ìpublic MBeanInfo getMBeanInfo()
MBeanInfo¸¦
ÃëµæÇÕ´Ï´Ù.
ÀÌ ¸Þ¼µå´Â DynamicMBean.getMBeanInfo()¸¦
±¸ÇöÇÕ´Ï´Ù.
ÀÌ ¸Þ¼µå´Â ÃÖÃʷΠij½¬µÇ°í ÀÖ´Â ÀÌ MBean
MBeanInfo¸¦ ÃëµæÇϱâ À§ÇØ, getCachedMBeanInfo()¸¦
È£ÃâÇÕ´Ï´Ù. getCachedMBeanInfo() ´Â null ÀÌ¿ÜÀÇ MBeanInfo¸¦ ¸®ÅÏÇÕ´Ï´Ù.
MBeanInfo°¡ nullÀÎ °æ¿ì, ÀÌ ¸Þ¼µå´Â ÀÌ MBean
ÁöÁ¤ÀÇ °ü¸® ÀÎÅÍÆäÀ̽º¸¦ »ç¿ëÇØ, ÀÌ MBean
µðÆúÆ®ÀÇ MBeanInfo¸¦ ±¸ÃàÇÕ´Ï´Ù.
ÀÌ ¸Þ¼µå´Â MBeanInfo
±¸Ãà½Ã¿¡
¼ºê Ŭ·¡½º°¡ Ä¿½ºÅÒÀÇ ±â¼ú, ÆÄ¶ó¹ÌÅÍ, À̸§µîÀ» Á¦°øÇÒ ¼ö ÀÖµµ·Ï ÇÏ´Â Ä¿½ºÅ͸¶ÀÌÁî ÈÅÀ» È£ÃâÇÕ´Ï´Ù.
ÃÖÁ¾ÀûÀ¸·Î´Â »õ·Î¿î MBeanInfo¸¦ ij½¬Çϱâ À§ÇØ, cacheMBeanInfo()¸¦
È£ÃâÇÕ´Ï´Ù.
DynamicMBean ³»ÀÇ getMBeanInfo protected String getClassName(MBeanInfo info)
info.getClassName()¸¦
¸®ÅÏÇÕ´Ï´Ù.
info - ¸®Ç÷º¼Ç¿¡ ÀÇÇØ ÆÄ»ýÇÑ µðÆúÆ®ÀÇ MBeanInfo
protected String getDescription(MBeanInfo info)
info.getDescription()¸¦
¸®ÅÏÇÕ´Ï´Ù.
info - ¸®Ç÷º¼Ç¿¡ ÀÇÇØ ÆÄ»ýÇÑ µðÆúÆ®ÀÇ MBeanInfo
protected String getDescription(MBeanFeatureInfo info)
Ä¿½ºÅ͸¶ÀÌÁî ÈÅ: ÀÌ MBean°¡ µ¹·ÁÁÖ´Â MBeanFeatureInfo ³»¿¡¼ »ç¿ëµÇ´Â ¼³¸íÀ» ÃëµæÇÕ´Ï´Ù.
¼ºê Ŭ·¡½º´Â Ä¿½ºÅÒÀÇ ¼³¸íÀ» Á¦°øÇϱâ À§ÇØ, ÀÌ ¸Þ¼µå¸¦ ÀçÁ¤ÀÇÇÒ ¼ö ÀÖ½À´Ï´Ù. µðÆúÆ®ÀÇ ±¸ÇöÀº info.getDescription()¸¦
¸®ÅÏÇÕ´Ï´Ù.
ÀÌ ¸Þ¼µå´Â getDescription(MBeanAttributeInfo),
getDescription(MBeanOperationInfo),
getDescription(MBeanConstructorInfo)¿¡ È£ÃâÇÕ´Ï´Ù.
info - ¸®Ç÷º¼Ç¿¡ ÀÇÇØ ÆÄ»ýÇÑ µðÆúÆ®ÀÇ MBeanFeatureInfo
protected String getDescription(MBeanAttributeInfo info)
¼ºê Ŭ·¡½º´Â Ä¿½ºÅÒÀÇ ¼³¸íÀ» Á¦°øÇϱâ À§ÇØ, ÀÌ ¸Þ¼µå¸¦ ÀçÁ¤ÀÇÇÒ ¼ö ÀÖ½À´Ï´Ù. µðÆúÆ®ÀÇ ±¸ÇöÀº getDescription((MBeanFeatureInfo) info)¸¦
¸®ÅÏÇÕ´Ï´Ù.
info - ¸®Ç÷º¼Ç¿¡ ÀÇÇØ ÆÄ»ýÇÑ µðÆúÆ®ÀÇ MBeanAttributeInfo
protected String getDescription(MBeanConstructorInfo info)
getDescription((MBeanFeatureInfo) info)¸¦
¸®ÅÏÇÕ´Ï´Ù.
info - ¸®Ç÷º¼Ç¿¡ ÀÇÇØ ÆÄ»ýÇÑ µðÆúÆ®ÀÇ MBeanConstructorInfo
protected String getDescription(MBeanConstructorInfo ctor,
MBeanParameterInfo param,
int sequence)
param.getDescription()¸¦
¸®ÅÏÇÕ´Ï´Ù.
ctor - ¸®Ç÷º¼Ç¿¡ ÀÇÇØ ÆÄ»ýÇÑ µðÆúÆ®ÀÇ MBeanConstructorInfoparam - ¸®Ç÷º¼Ç¿¡ ÀÇÇØ ÆÄ»ýÇÑ µðÆúÆ®ÀÇ MBeanParameterInfosequence - ÆÄ¶ó¹ÌÅÍÀÇ ¼ø¼ ¹øÈ£. 0 Àº ÃÖÃÊÀÇ ÆÄ¶ó¹ÌÅÍ, 1 Àº 2¹øÂ°ÀÇ ÆÄ¶ó¹ÌÅÍ (ÀÌÇÏ °°ÀÌ)
protected String getParameterName(MBeanConstructorInfo ctor,
MBeanParameterInfo param,
int sequence)
param.getName()¸¦
¸®ÅÏÇÕ´Ï´Ù.
ctor - ¸®Ç÷º¼Ç¿¡ ÀÇÇØ ÆÄ»ýÇÑ µðÆúÆ®ÀÇ MBeanConstructorInfoparam - ¸®Ç÷º¼Ç¿¡ ÀÇÇØ ÆÄ»ýÇÑ µðÆúÆ®ÀÇ MBeanParameterInfosequence - ÆÄ¶ó¹ÌÅÍÀÇ ¼ø¼ ¹øÈ£. 0 Àº ÃÖÃÊÀÇ ÆÄ¶ó¹ÌÅÍ, 1 Àº 2¹øÂ°ÀÇ ÆÄ¶ó¹ÌÅÍ (ÀÌÇÏ °°ÀÌ)
protected String getDescription(MBeanOperationInfo info)
getDescription((MBeanFeatureInfo) info)¸¦
¸®ÅÏÇÕ´Ï´Ù.
info - ¸®Ç÷º¼Ç¿¡ ÀÇÇØ ÆÄ»ýÇÑ µðÆúÆ®ÀÇ MBeanOperationInfo
protected int getImpact(MBeanOperationInfo info)
info.getImpact()¸¦
¸®ÅÏÇÕ´Ï´Ù.
info - ¸®Ç÷º¼Ç¿¡ ÀÇÇØ ÆÄ»ýÇÑ µðÆúÆ®ÀÇ MBeanOperationInfo
protected String getParameterName(MBeanOperationInfo op,
MBeanParameterInfo param,
int sequence)
param.getName()¸¦
¸®ÅÏÇÕ´Ï´Ù.
op - ¸®Ç÷º¼Ç¿¡ ÀÇÇØ ÆÄ»ýÇÑ µðÆúÆ®ÀÇ MBeanOperationInfoparam - ¸®Ç÷º¼Ç¿¡ ÀÇÇØ ÆÄ»ýÇÑ µðÆúÆ®ÀÇ MBeanParameterInfosequence - ÆÄ¶ó¹ÌÅÍÀÇ ¼ø¼ ¹øÈ£. 0 Àº ÃÖÃÊÀÇ ÆÄ¶ó¹ÌÅÍ, 1 Àº 2¹øÂ°ÀÇ ÆÄ¶ó¹ÌÅÍ (ÀÌÇÏ °°ÀÌ)
protected String getDescription(MBeanOperationInfo op,
MBeanParameterInfo param,
int sequence)
param.getDescription()¸¦
¸®ÅÏÇÕ´Ï´Ù.
op - ¸®Ç÷º¼Ç¿¡ ÀÇÇØ ÆÄ»ýÇÑ µðÆúÆ®ÀÇ MBeanOperationInfoparam - ¸®Ç÷º¼Ç¿¡ ÀÇÇØ ÆÄ»ýÇÑ µðÆúÆ®ÀÇ MBeanParameterInfosequence - ÆÄ¶ó¹ÌÅÍÀÇ ¼ø¼ ¹øÈ£. 0 Àº ÃÖÃÊÀÇ ÆÄ¶ó¹ÌÅÍ, 1 Àº 2¹øÂ°ÀÇ ÆÄ¶ó¹ÌÅÍ (ÀÌÇÏ °°ÀÌ)
protected MBeanConstructorInfo [] getConstructors(MBeanConstructorInfo [] ctors,
Object impl)
nullÀ»
¸®ÅÏÇÕ´Ï´Ù. ·¦ µÈ ±¸ÇöÀÌ ÀÌ °´Ã¼ ÀÚü°¡ ¾Æ´Ñ °æ¿ì, MBeanServer.createMBean(...)¸¦ ÅëÇØ ±¸Çö »ý¼ºÀÚ¸¦ È£ÃâÇØµµ, ·¦ µÈ ±¸ÇöÀ» ´Ù½Ã ÀÛ¼ºÇÒ ¼ö ¾ø½À´Ï´Ù.
ctors - ¸®Ç÷º¼Ç¿¡ ÀÇÇØ ÆÄ»ýÇÑ µðÆúÆ®ÀÇ MBeanConstructorInfo[]impl - ·¦ µÈ ±¸Çö. nullÀÌ °Ç³×¹ÞÀ¸¸é, ·¦ µÈ ±¸ÇöÀº ¹«½ÃµÇ¾îctors°¡ ¸®ÅϵȴÙ
protected MBeanInfo getCachedMBeanInfo()
¼ºê Ŭ·¡½º´Â °íÀ¯ÀÇ Ä³½Ì Á¤Ã¥¸¦ ±¸ÇöÇϱâ À§ÇØ, ÀÌ ¸Þ¼µå¸¦ ÀçÁ¤ÀÇÇÒ ¼ö ÀÖ½À´Ï´Ù. µðÆúÆ®ÀÇ ±¸ÇöÀº ÀνºÅϽº ¸¶´Ù MBeanInfo °´Ã¼¸¦ 1°³
¾¿ Æ÷ÇÔÇÕ´Ï´Ù.
cacheMBeanInfo(MBeanInfo) protected void cacheMBeanInfo(MBeanInfo info)
¼ºê Ŭ·¡½º´Â °íÀ¯ÀÇ Ä³½Ì Á¤Ã¥¸¦ ±¸ÇöÇϱâ À§ÇØ, ÀÌ ¸Þ¼µå¸¦ ÀçÁ¤ÀÇÇÒ ¼ö ÀÖ½À´Ï´Ù. µðÆúÆ®ÀÇ ±¸ÇöÀº ÀÌ ÀνºÅϽº¿¡ info¸¦ Æ÷ÇÔÇÕ´Ï´Ù. ¼ºê Ŭ·¡½º´Â ±× ¿ÜÀÇ Á¤Ã¥
µµ Á¤ÀÇÇÒ ¼ö ÀÖ½À´Ï´Ù. ¿¹¸¦ µé¾î, getMBeanInfo()
È£Ã⸶´Ù À籸Ãà µÇµµ·Ï info¸¦ º¸Á¸ÇÏÁö ¾Ê´Â Á¤Ã¥
³ª, º¹¼öÀÇ StandardMBeanÀνºÅϽº°¡ µ¿µî MBeanInfo Ä¡¸¦ °¡Áö´Â °æ¿ì¿¡ ´ÜÀÏ MBeanInfo °´Ã¼¸¦ °øÀ¯ÇÏ´Â Á¤Ã¥
µîÀ» Á¤ÀÇÇÒ ¼ö ÀÖ½À´Ï´Ù.
info - ij½¬ÇÏ´Â »õ·Î¿î MBeanInfo. ÀÌÀü¿¡ ij½¬µÈ °ªÀº ¸ðµÎ ÆÄ±âµÈ´Ù. »õ·Ó°Ô ij½¬µÈ °ªÀÌ ¾ø´Â °æ¿ì, ÀÌ ÆÄ¶ó¹ÌÅÍ´Â null
|
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 µµ ÂüÁ¶ÇϽʽÿÀ.