|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjavax.management.MBeanInfo
public class MBeanInfo
MBean¿¡ ÀÇÇØ °ø°³µÈ °ü¸® ÀÎÅÍÆäÀ̽º (°ü¸® ¿ÀÆÛ·¹À̼ǿ¡ »ç¿ëÇÒ ¼ö ÀÖ´Â ¼Ó¼º°ú Á¶ÀÛ¼¼Æ®)¸¦ ±â¼úÇÕ´Ï´Ù. ÀÌ Å¬·¡½ºÀÇ ÀνºÅϽº´Â ºÒº¯ÀÔ´Ï´Ù. ¼ºê Ŭ·¡½º´Â °¡º¯ÀÔ´Ï´Ù¸¸, ¼ºê Ŭ·¡½ºÀÇ º¯°æÀº ÃßõÇÏÁö ¾Ê½À´Ï´Ù.
Dynamic MBean¿¡ ÀÇÇØ »ç¿ëµÇ´Â MBeanInfo
ÄÁÅÙÃ÷´Â getMBeanInfo()
¸Þ¼µå¿¡
°áÁ¤µË´Ï´Ù. Dynamic MBean ÀÎ Open MBean, Model MBean°¡ Æ÷ÇԵ˴ϴÙ.
Standard MBean¿¡ ÀÇÇØ »ç¿ëµÇ´Â MBeanInfo
ÄÁÅÙÃ÷´Â MBean ¼¹ö¿¡ÀÇÇØ ´ÙÀ½°ú °°ÀÌ °áÁ¤µË´Ï´Ù.
getClassName()
MBean °´Ã¼ÀÇ Java Ŭ·¡½º¸íÀ» µ¹·ÁÁØ´Ù
getConstructors()
±× °´Ã¼³»ÀÇ ¸ðµç public »ý¼ºÀÚ ¸®½ºÆ®¸¦ µ¹·ÁÁØ´Ù
getAttributes()
¸ðµç ¼Ó¼ºÀÇ ¸®½ºÆ®¸¦ µ¹·ÁÁØ´Ù. ±× ¼Ó¼ºÀÌ Á¸ÀçÇÒÁö ¾î¶³Áö´Â Standard MBean
±Ô¾à¿¡ ÁذÅÇÑ getName
, isName
, ¶Ç´Â setName
¸Þ¼µåÀÇ MBean ÀÎÅÍÆäÀ̽º³»¿¡ Á¸ÀçÇÒÁö ¾î¶³Áö·Î ÃßÃøÇÒ ¼ö ÀÖ´Ù
getOperations()
¼Ó¼ºÀ» ³ªÅ¸³»Áö ¾Ê´Â MBean ÀÎÅÍÆäÀ̽º³»ÀÇ ¸ðµç ¸Þ¼µåÀÇ ¸®½ºÆ®¸¦ µ¹·ÁÁØ´Ù
getNotifications()
MBean°¡ NotificationBroadcaster
ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇÏÁö ¾Ê´Â °æ¿ì´Â ºñ¾îÀÖ´Â ¹è¿, ±× ¿ÜÀÇ °æ¿ì´Â NotificationBroadcaster.getNotificationInfo()
È£ÃâÀÇ °á°ú¸¦ µ¹·ÁÁØ´Ù
Standard MBean¿¡ ÀÇÇØ »ç¿ëµÇ´Â MBeanInfo
±× ¿ÜÀÇ »ó¼¼ Á¤º¸´Â ÁöÁ¤µÇÁö ¾Ê½À´Ï´Ù. ÁöÁ¤µÇÁö ¾Ê´Â »ó¼¼ Á¤º¸¿¡´Â MBeanInfo
¼³¸í, ±× ¿ÜÀÇ »ý¼ºÀÚ,
¼Ó¼º, ¿ÀÆÛ·¹ÀÌ¼Ç ¹× ÅëÁöÀÇ ¼³¸í, »ý¼ºÀÚ°¡³ª ¿ÀÆÛ·¹À̼ǿ¡°Ô °Ç³×Áö´Â ÆÄ¶ó¹ÌÅÍÀÇ À̸§°ú ¼³¸íÀÌ Æ÷ÇԵ˴ϴÙ.
»ý¼ºÀÚ °³¿ä | |
---|---|
MBeanInfo (String className,
String description,
MBeanAttributeInfo [] attributes,
MBeanConstructorInfo [] constructors,
MBeanOperationInfo [] operations,
MBeanNotificationInfo [] notifications)
MBeanInfo ¸¦ ±¸ÃàÇÕ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
Object |
clone ()
ÀÌ ÀνºÅϽºÀÇ »þ·ÎÄÚÇǸ¦ ¸®ÅÏÇÕ´Ï´Ù. |
boolean |
equals (Object o)
ÀÌ MBeanInfo¸¦ ´Ù¸¥ MBeanInfo¿Í ºñ±³ÇÕ´Ï´Ù. |
MBeanAttributeInfo [] |
getAttributes ()
°ü¸®¿ëÀÇ °ø°³ ¼Ó¼ºÀÇ ¸®½ºÆ®¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
String |
getClassName ()
ÀÌ MBeanInfo ¿¡ ÀÇÇØ ±â¼úµÈ MBean
Java Ŭ·¡½ºÀÇ À̸§À» ¸®ÅÏÇÕ´Ï´Ù. |
MBeanConstructorInfo [] |
getConstructors ()
MBean public »ý¼ºÀÚ ¸®½ºÆ®¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
String |
getDescription ()
Àΰ£ÀÌ ÀÐÀ» ¼ö ÀÖ´Â Çü½ÄÀÇ MBean ¼³¸íÀ» ¸®ÅÏÇÕ´Ï´Ù. |
MBeanNotificationInfo [] |
getNotifications ()
MBean¿¡ ÀÇÇØ ¹ßÇàµÈ ÅëÁöÀÇ ¸®½ºÆ®¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
MBeanOperationInfo [] |
getOperations ()
MBean ¿ÀÆÛ·¹À̼ÇÀÇ ¸®½ºÆ®¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
int |
hashCode ()
°´Ã¼ÀÇ ÇØ½Ã Äڵ尪À» ¸®ÅÏÇÕ´Ï´Ù. |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
finalize,
getClass,
notify,
notifyAll,
toString,
wait,
wait,
wait |
»ý¼ºÀÚ »ó¼¼ |
---|
public MBeanInfo(String className, String description, MBeanAttributeInfo [] attributes, MBeanConstructorInfo [] constructors, MBeanOperationInfo [] operations, MBeanNotificationInfo [] notifications) throws IllegalArgumentException
MBeanInfo
¸¦ ±¸ÃàÇÕ´Ï´Ù.
className
- ÀÌ MBeanInfo
·Î ±â¼úµÇ´Â MBean
Java Ŭ·¡½ºÀÇ À̸§. ¿Ã¹Ù¸¥ ±¸¹®ÀÇ ÀÓÀÇÀÇ Java Ŭ·¡½º¸íÀ» ÁöÁ¤ÇÒ ¼ö ÀÖ´Ù. ¹Ýµå½Ã, MBean ¼¹ö ¶Ç´Â MBean
Ŭ·¡½º ·Î´õÀÇ ±âÁ¸ÀÇ Java Ŭ·¡½º°¡ ¾Æ´Ï¾îµµ ÁÁ´Ù. MBean
Ŭ·¡½º ·Î´õÀÇ ±âÁ¸ÀÇ Java Ŭ·¡½ºÀÎ °æ¿ì, Ŭ·¡½ºÀÇ public ¸Þ¼µå¿¡
ÀÌ MBeanInfo ³»ÀÇ ¼Ó¼º°ú ¿ÀÆÛ·¹À̼ÇÀ» ±¸ÇöÇÏ´Â Standard MBean ³»ÀÇ ¸Þ¼µå¸¦ Æ÷ÇÔÇÏ´Â °ÍÀÌ Ãßõ µÇÁö¸¸, À̰ÍÀº Çʼö°¡ ¾Æ´Ñdescription
- Àΰ£ÀÌ ÀÐÀ» ¼ö ÀÖ´Â Çü½ÄÀÇ MBean
¼³¸í (ÀÓÀÇ)attributes
- MBean
°ø°³ ¼Ó¼ºÀÇ ¸®½ºÆ®. Á¦·ÎÀåÀÇ ¹è¿À» ÁöÁ¤ÇßÀ» °æ¿ì¿Í °°°Ô, nullÀÌ µÇ´Â °æ¿ìµµ ÀÖ´Âconstructors
- MBean
public »ý¼ºÀÚ ¸®½ºÆ®. Á¦·ÎÀåÀÇ ¹è¿À» ÁöÁ¤ÇßÀ» °æ¿ì¿Í °°°Ô, nullÀÌ µÇ´Â °æ¿ìµµ ÀÖ´Âoperations
- MBean
¿ÀÆÛ·¹À̼ÇÀÇ ¸®½ºÆ®. Á¦·ÎÀåÀÇ ¹è¿À» ÁöÁ¤ÇßÀ» °æ¿ì¿Í °°°Ô, nullÀÌ µÇ´Â °æ¿ìµµ ÀÖ´Ânotifications
- ¹ßÇàµÈ ÅëÁöÀÇ ¸®½ºÆ®. Á¦·ÎÀåÀÇ ¹è¿À» ÁöÁ¤ÇßÀ» °æ¿ì¿Í °°°Ô, nullÀÌ µÇ´Â °æ¿ìµµ ÀÖ´Ù
IllegalArgumentException
¸Þ¼µåÀÇ »ó¼¼ |
---|
public Object clone()
ÀÌ ÀνºÅϽºÀÇ »þ·ÎÄÚÇǸ¦ ¸®ÅÏÇÕ´Ï´Ù. ÀÌ Ä«ÇÇ´Â super.clone() È£Ãâ (Object.clone()¿¡ ÀÇÇØ ±¸ÇöµÇ´Â µðÆúÆ®ÀÇ ³×ÀÌÆ¼ºê»þ·ÎÄÚÇÇ?@±¸ÀÇ È£Ãâ)¿¡ ÀÇÇØ ÃëµæµË´Ï´Ù. ³»ºÎ Çʵ忡 µµÂøÇØ, ´õ ÀÌ»ó »ó¼¼ÇÑ Ä«ÇÇ´Â ÀÛ¼ºµÇÁö ¾Ê½À´Ï´Ù.
ÀÌ Å¬·¡½º´Â ºÒº¯À̹ǷΠīÇÇ ¸Þ¼µå´Â ÁÖ·Î ¼ºê Ŭ·¡½º¿¡ ÀÖ¾î Áß¿äÇÏ°Ô µË´Ï´Ù.
Object
³»ÀÇ clone
Cloneable
public String getClassName()
MBeanInfo
¿¡ ÀÇÇØ ±â¼úµÈ MBean
Java Ŭ·¡½ºÀÇ À̸§À» ¸®ÅÏÇÕ´Ï´Ù.
public String getDescription()
public MBeanAttributeInfo [] getAttributes()
MBeanAttributeInfo
°´Ã¼¿¡ ÀÇÇØ ±â¼úµË´Ï´Ù.
¸®ÅϵÈ
¹è¿Àº ³»ºÎ ¹è¿ÀÇ »þ·ÎÄÚÇÇ, Áï MBeanAttributeInfo
°´Ã¼¸¦ ÂüÁ¶ÇÏ´Â ³»ºÎ ¹è¿ÀÇ Ä«Çǰ¡ µË´Ï´Ù. ´Ù¸¸, ÂüÁ¶µÇ´Â °¢ MBeanAttributeInfo
°´Ã¼´Â Ä«ÇǵÇÁö ¾Ê½À´Ï´Ù.
MBeanAttributeInfo
°´Ã¼ÀÇ ¹è¿public MBeanOperationInfo [] getOperations()
MBeanOperationInfo
°´Ã¼¿¡ ÀÇÇØ ±â¼úµË´Ï´Ù.
¸®ÅϵÈ
¹è¿Àº ³»ºÎ ¹è¿ÀÇ »þ·ÎÄÚÇÇ, Áï MBeanOperationInfo
°´Ã¼¸¦ ÂüÁ¶ÇÏ´Â ³»ºÎ ¹è¿ÀÇ Ä«Çǰ¡ µË´Ï´Ù. ´Ù¸¸, ÂüÁ¶µÇ´Â °¢ MBeanOperationInfo
°´Ã¼´Â Ä«ÇǵÇÁö ¾Ê½À´Ï´Ù.
MBeanOperationInfo
°´Ã¼ÀÇ ¹è¿public MBeanConstructorInfo [] getConstructors()
MBean
public »ý¼ºÀÚ ¸®½ºÆ®¸¦ ¸®ÅÏÇÕ´Ï´Ù. °¢ ¿ÀÆÛ·¹À̼ÇÀº MBeanConstructorInfo
°´Ã¼¿¡ ÀÇÇØ ±â¼úµË´Ï´Ù.
¸®ÅϵÈ
¹è¿Àº ³»ºÎ ¹è¿ÀÇ »þ·ÎÄÚÇÇ, Áï MBeanConstructorInfo
°´Ã¼¸¦ ÂüÁ¶ÇÏ´Â ³»ºÎ ¹è¿ÀÇ Ä«Çǰ¡ µË´Ï´Ù. ´Ù¸¸, ÂüÁ¶µÇ´Â °¢ MBeanConstructorInfo
°´Ã¼´Â Ä«ÇǵÇÁö ¾Ê½À´Ï´Ù.
¸®ÅÏµÈ ¸®½ºÆ®´Â ¿ÏÀüÇÏÁö ¾Ê¾Æµµ ±¦Âú½À´Ï´Ù. Áï, MBean´Â ¸®½ºÆ®¿¡ ¾ø´Â public »ý¼ºÀÚ¸¦ °¡Áú ¼öµµ ÀÖ½À´Ï´Ù. ÀÌ °æ¿ì MBean ¼¹ö´Â ¸®½ºÆ®¿¡ Æ÷ÇԵǾî ÀÖ´ÂÁö ¾î¶²Áö¿¡ °ü°è¾øÀÌ, »ý¼ºÀÚ¸¦ »ç¿ëÇØ, ÀÌ MBean Ŭ·¡½ºÀÇ ÀνºÅϽº¸¦ »õ·Ó°Ô ±¸ÃàÇÒ ¼ö ÀÖ½À´Ï´Ù.
MBeanConstructorInfo
°´Ã¼ÀÇ ¹è¿public MBeanNotificationInfo [] getNotifications()
MBeanNotificationInfo
°´Ã¼¿¡ ÀÇÇØ ±â¼úµË´Ï´Ù.
¸®ÅϵÈ
¹è¿Àº ³»ºÎ ¹è¿ÀÇ »þ·ÎÄÚÇÇ, Áï MBeanNotificationInfo
°´Ã¼¸¦ ÂüÁ¶ÇÏ´Â ³»ºÎ ¹è¿ÀÇ Ä«Çǰ¡ µË´Ï´Ù. ´Ù¸¸, ÂüÁ¶µÇ´Â °¢ MBeanNotificationInfo
°´Ã¼´Â Ä«ÇǵÇÁö ¾Ê½À´Ï´Ù.
MBeanNotificationInfo
°´Ã¼ÀÇ ¹è¿public boolean equals(Object o)
ÀÌ MBeanInfo¸¦ ´Ù¸¥ MBeanInfo¿Í
ºñ±³ÇÕ´Ï´Ù. getClassName()
¹× getDescription()
¹Ýȯ°ªÀÌ µ¿ÀÏÇϰí, getAttributes()
,
getOperations()
,
getConstructors()
¹× getNotifications()
2°³ÀÇ °´Ã¼¿¡ ÀÇÇØ ¸®ÅϵÈ
¹è¿ÀÇ °ªÀÇ Æä¾î°¡ µ¿ÀÏÇÑ °æ¿ì, 2°³ÀÇ MBeanInfo °´Ã¼´Â µ¿ÀÏÇØÁý´Ï´Ù. ¡¸µ¿ÀÏÇÏ´Ù¡¹¶õ
ID´Â ¾Æ´Ï°í, Object.equals(Object)
°¡ µ¿ÀÏÇÑ ÀÏÀ»ÀǹÌÇÕ´Ï´Ù.
2°³ÀÇ MBeanInfo °´Ã¼¿¡ ÀÇÇØ ¹è¿³»¿¡ ¸®ÅÏµÈ °ªÀÌ °°¾Æµµ, ±× Â÷·Ê°¡ Â÷À̰¡ ³ª´Â °æ¿ì, ÀÌ 2°³ÀÇ MBeanInfo °´Ã¼´Â µ¿ÀÏÇÏÁö´Â ¾Ê½À´Ï´Ù.
Object
³»ÀÇ equals
o
- ºñ±³ ´ë»óÀÇ °´Ã¼
o
°¡
»ó±âÀÇ ±ÔÄ¢¿¡ µû¶ó ÀÌ °´Ã¼¿¡ µ¿ÀÏÇÑ MBeanInfo ÀÎ °æ¿ì, trueObject.hashCode()
,
Hashtable
public int hashCode()
Object
񃬣: java.util.Hashtable
¿¡ ÀÇÇØ Á¦°øµÇ´Â °Í °°Àº ÇØ½Ã Å×À̺í·Î »ç¿ëÇϱâ À§Çؼ ÁغñµÇ¾î ÀÖ½À´Ï´Ù.
hashCode
¸Þ¼µåÀÇ ÀϹÝÀûÀÎ ±ÔÄ¢À» ´ÙÀ½¿¡ ³ªÅ¸³À´Ï´Ù.
hashCode
¸Þ¼µå¸¦ È£ÃâÇØµµ °á°ú´Â °°Àº Á¤¼ö°ªÀÌ µÇ¾î¾ß ÇÏ´ÙObject.equals(java.lang.Object)
¸Þ¼µå·Î 2°³ÀÇ °´Ã¼°¡ µî°¡°¡ ¾Æ´Ï´Ù°í ¿©°ÜÁ³À» °æ¿ì´Â ÀÌ·¯ÇÑ °´Ã¼¿¡ ´ëÇØ¼ hashCode ¸Þ¼µå¸¦ È£ÃâÇßÀ» ¶§¿¡
°á°ú°¡ ´Ù¸¥ Á¤¼ö°ªÀÌ µÇÁö ¾Ê¾Æµµ »ó°ü¾ø´Ù. ±×·¯³ª, µ¿ÀÏÇÏÁö ¾ÊÀº °´Ã¼¿¡ ´ëÇØ¼´Â ´Ù¸¥ Á¤¼ö°ªÀÌ »ý¼ºµÇµµ·Ï Çϸé, ÇØ½Ã Å×À̺íÀÇ ÆÛÆ÷¸Õ½º¸¦ ¿Ã¸± ¼ö°¡ ÀÖ´Ù
ÇÒ ¼ö ÀÖ´Â ÇÑ, Object Ŭ·¡½º¿¡¼ Á¤ÀǵǴ hashCode ¸Þ¼µå´Â ´Ù¸¥ °´Ã¼¿¡ ´ëÇØ¼´Â ´Ù¸¥ Á¤¼ö°ªÀ» ¸®ÅÏÇÕ´Ï´Ù. º¸Åë, À̰ÍÀº °´Ã¼ÀÇ ³»ºÎ ÁÖ¼Ò¸¦ Á¤¼ö°ª ·Î º¯È¯ÇÏ´Â ÇüÅ·Π±¸ÇöµË´Ï´Ù¸¸, ±×·¯ÇÑ ±¸Çö Å×Å©´ÐÀº JavaTM ÇÁ·Î±×·¥ ¾ð¾î¿¡¼´Â ºÒÇÊ¿äÇÕ´Ï´Ù.
Object
³»ÀÇ hashCode
Object.equals(java.lang.Object)
,
Hashtable
|
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 µµ ÂüÁ¶ÇϽʽÿÀ.