JavaTM 2 Platform
Standard Ed. 5.0

javax.management.relation
Ŭ·¡½º RoleInfo

java.lang.Object 
  »óÀ§¸¦ È®Àå javax.management.relation.RoleInfo
¸ðµç ±¸ÇöµÈ ÀÎÅÍÆäÀ̽º:
Serializable

public class RoleInfo
extends Object
implements Serializable

RoleInfo °´Ã¼´Â °ü°èÇü¿¡ Æ÷ÇԵǴ ·ÑÀ» Áý°èÇÕ´Ï´Ù.

µµÀÔµÈ ¹öÀü :
1.5
°ü·Ã Ç׸ñ:
Á÷·ÄÈ­ µÈ Çü½Ä

ÇÊµå °³¿ä
static int ROLE_CARDINALITY_INFINITY
          ¹«Á¦ÇÑÀÇ Ä«µð³ª¸®Æ¼¸¦ ÁöÁ¤Çϱ⠶§¹®¿¡ÀÔ´Ï´Ù.
 
»ý¼ºÀÚ °³¿ä
RoleInfo (RoleInfo  theRoleInfo)
          »ý¼ºÀÚ¸¦ Ä«ÇÇÇÕ´Ï´Ù.
RoleInfo (String  theName, String  theRefMBeanClassName)
          »ý¼ºÀÚ ÀÔ´Ï´Ù.
RoleInfo (String  theName, String  theRefMBeanClassName, boolean theIsReadable, boolean theIsWritable)
          »ý¼ºÀÚ ÀÔ´Ï´Ù.
RoleInfo (String  theName, String  theRefMBeanClassName, boolean theIsReadable, boolean theIsWritable, int theMinDegree, int theMaxDegree, String  theDescription)
          »ý¼ºÀÚ ÀÔ´Ï´Ù.
 
¸Þ¼­µå °³¿ä
 boolean checkMaxDegree (int theValue)
          ÁöÁ¤µÈ °ªÀÌ ÃÖ´ë°ª ÀÌÇÏÀÏÁö ¾î¶³Áö¸¦ ³ªÅ¸³»´Â boolean ÇüÀ» ¸®ÅÏÇÕ´Ï´Ù.
 boolean checkMinDegree (int theValue)
          ÁöÁ¤µÈ °ªÀÌ ÃÖ¼Ò°ª ÀÌ»óÀÏÁö ¾î¶³Áö¸¦ ³ªÅ¸³»´Â boolean ÇüÀ» ¸®ÅÏÇÕ´Ï´Ù.
 String getDescription ()
          ·ÑÀÇ ¼³¸í ÅؽºÆ®¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 int getMaxDegree ()
          ´ëÀÀÇÏ´Â ·Ñ ÂüÁ¶ÀÇ ÃÖ´ë°ªÀ» ¸®ÅÏÇÕ´Ï´Ù.
 int getMinDegree ()
          ´ëÀÀÇÏ´Â ·Ñ ÂüÁ¶ÀÇ ÃÖ¼Ò°ªÀ» ¸®ÅÏÇÕ´Ï´Ù.
 String getName ()
          ·Ñ¸íÀ» ¸®ÅÏÇÕ´Ï´Ù.
 String getRefMBeanClassName ()
          ´ëÀÀÇÏ´Â ·Ñ³»¿¡¼­ ÂüÁ¶µÇ´Â MBean (º¹¼ö°¡´É)ÀÇ Çü¸íÀ» ¸®ÅÏÇÕ´Ï´Ù.
 boolean isReadable ()
          ·ÑÀÇ µ¶ÇØ ¾×¼¼½º ¸ðµå¸¦ ¸®ÅÏÇÕ´Ï´Ù (Àо °¡´ÉÇÑ °æ¿ì´Â true).
 boolean isWritable ()
          ·ÑÀÇ Ãâ·Â ¾×¼¼½º ¸ðµå¸¦ ¸®ÅÏÇÕ´Ï´Ù (Ãâ·Â°¡´ÉÇÑ °æ¿ì´Â true).
 String toString ()
          ·Ñ Á¤º¸¿¡ ´ëÇØ ¼³¸íÇϴ ij¸¯ÅÍ ¶óÀÎÀ» ¸®ÅÏÇÕ´Ï´Ù.
 
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

ÇʵåÀÇ »ó¼¼

ROLE_CARDINALITY_INFINITY

public static int ROLE_CARDINALITY_INFINITY
¹«Á¦ÇÑÀÇ Ä«µð³ª¸®Æ¼¸¦ ÁöÁ¤Çϱ⠶§¹®¿¡ÀÔ´Ï´Ù.

»ý¼ºÀÚ »ó¼¼

RoleInfo

public RoleInfo(String  theName,
                String  theRefMBeanClassName,
                boolean theIsReadable,
                boolean theIsWritable,
                int theMinDegree,
                int theMaxDegree,
                String  theDescription)
         throws IllegalArgumentException,

                InvalidRoleInfoException,

                ClassNotFoundException,

                NotCompliantMBeanException 
»ý¼ºÀÚ ÀÔ´Ï´Ù.

ÆĶó¹ÌÅÍ:
theName - ·Ñ¸í
theRefMBeanClassName - ´ëÀÀÇÏ´Â ·Ñ³»¿¡¼­ ÂüÁ¶µÇ´Â MBean (º¹¼ö°¡´É)ÀÇ Å¬·¡½º¸í. MBean M°¡ ÀÌ ·Ñ¿¡ Æ÷ÇԵǴ °æ¿ì, MBean ¼­¹ö´Â isInstanceOf(M, theRefMBeanClassName)¿¡ ´ëÇؼ­ true¸¦ µ¹·ÁÁÙ ÇÊ¿ä°¡ ÀÖ´Â
theIsReadable - ´ëÀÀÇÏ´Â ·ÑÀÌ Àо °¡´ÉÇÑ°¡ ¾î¶²°¡¸¦ ³ªÅ¸³»´Â Ç÷¡±×
theIsWritable - ´ëÀÀÇÏ´Â ·ÑÀÌ ¼³Á¤ °¡´ÉÇÑ°¡ ¾î¶²°¡¸¦ ³ªÅ¸³»´Â Ç÷¡±×
theMinDegree - ·ÑÀÇ ÃÖ¼Ò°ª (´ëÀÀÇÏ´Â ·Ñ¿¡ Æ÷ÇԵǴ MBean ÃÖ¼Ò¼ö). theMaxDegree ÀÌÇÏ°¡ ¾Æ´Ï¸é ¾ÈµÈ´Ù. ¼ö¸¦ Á¦ÇÑÇÏÁö ¾Ê´Â °æ¿ì, ROLE_CARDINALITY_INFINITY
theMaxDegree - ·ÑÀÇ ÃÖ´ë°ª (´ëÀÀÇÏ´Â ·Ñ¿¡ Æ÷ÇԵǴ MBean ÃÖ´ë¼ö). theMinDegree ÀÌ»óÀÌ ¾Æ´Ï¸é ¾ÈµÈ´Ù. ¼ö¸¦ Á¦ÇÑÇÏÁö ¾Ê´Â °æ¿ì, ROLE_CARDINALITY_INFINITY
theDescription - ·ÑÀÇ ¼³¸í (nullµµ °¡´É)
¿¹¿Ü:
IllegalArgumentException - ÆĶó¹ÌÅÍ°¡ nullÀÎ °æ¿ì
InvalidRoleInfoException - ÃÖ¼Ò°ªÀÌ ÃÖ´ë°ª º¸´Ù Å« °æ¿ì
ClassNotFoundException - JMX 1.2 ÀÌÈÄ, ÀÌ ¿¹¿Ü´Â Throw µÇÁö ¾Ê°Ô µÈ´Ù. ÀÌ ¿¹¿Ü´Â ±âÁ¸ÀÇ ÄÚµå¿ÍÀÇ È£È¯¼ºÀ» È®º¸Çϱâ À§ÇØ, ÀÌ Å¬·¡½ºÀÇ ¼±¾ð¿¡ °è¼ÓÇØ Æ÷ÇԵǾî ÀÖ´Ù
NotCompliantMBeanException - theRefMBeanClassName Ŭ·¡½º°¡ MBean Ŭ·¡½º°¡ ¾Æ´Ñ °æ¿ì

RoleInfo

public RoleInfo(String  theName,
                String  theRefMBeanClassName,
                boolean theIsReadable,
                boolean theIsWritable)
         throws IllegalArgumentException,

                ClassNotFoundException,

                NotCompliantMBeanException 
»ý¼ºÀÚ ÀÔ´Ï´Ù.

ÆĶó¹ÌÅÍ:
theName - ·Ñ¸í
theRefMBeanClassName - ´ëÀÀÇÏ´Â ·Ñ³»¿¡¼­ ÂüÁ¶µÇ´Â MBean (º¹¼ö°¡´É)ÀÇ Å¬·¡½º¸í. MBean M°¡ ÀÌ ·Ñ¿¡ Æ÷ÇԵǴ °æ¿ì, MBean ¼­¹ö´Â isInstanceOf(M, theRefMBeanClassName)¿¡ ´ëÇؼ­ true¸¦ µ¹·ÁÁÙ ÇÊ¿ä°¡ ÀÖ´Â
theIsReadable - ´ëÀÀÇÏ´Â ·ÑÀÌ Àо °¡´ÉÇÑ°¡ ¾î¶²°¡¸¦ ³ªÅ¸³»´Â Ç÷¡±×
theIsWritable - ´ëÀÀÇÏ´Â ·ÑÀÌ ¼³Á¤ °¡´ÉÇÑ°¡ ¾î¶²°¡¸¦ ³ªÅ¸³»´Â Ç÷¡±×

ÃÖ¼Ò°ª¿Í ÃÖ´ë°ª ÀÇ ±âº»°ª´Â 1 ÀÔ´Ï´Ù.

·ÑÀÇ ¼³¸íÀÇ ±âº»°ª´Â null ÀÔ´Ï´Ù.

¿¹¿Ü:
IllegalArgumentException - ÆĶó¹ÌÅÍ°¡ nullÀÎ °æ¿ì
ClassNotFoundException - JMX 1.2 ÀÌÈÄ, ÀÌ ¿¹¿Ü´Â Throw µÇÁö ¾Ê°Ô µÈ´Ù. ÀÌ ¿¹¿Ü´Â ±âÁ¸ÀÇ ÄÚµå¿ÍÀÇ È£È¯¼ºÀ» È®º¸Çϱâ À§ÇØ, ÀÌ Å¬·¡½ºÀÇ ¼±¾ð¿¡ °è¼ÓÇØ Æ÷ÇԵǾî ÀÖ´Ù
NotCompliantMBeanException - JMX 1.2 ÀÌÈÄ, ÀÌ ¿¹¿Ü´Â Throw µÇÁö ¾Ê°Ô µÈ´Ù. ÀÌ ¿¹¿Ü´Â ±âÁ¸ÀÇ ÄÚµå¿ÍÀÇ È£È¯¼ºÀ» È®º¸Çϱâ À§ÇØ, ÀÌ Å¬·¡½ºÀÇ ¼±¾ð¿¡ °è¼ÓÇØ Æ÷ÇԵǾî ÀÖ´Ù

RoleInfo

public RoleInfo(String  theName,
                String  theRefMBeanClassName)
         throws IllegalArgumentException,

                ClassNotFoundException,

                NotCompliantMBeanException 
»ý¼ºÀÚ ÀÔ´Ï´Ù.

ÆĶó¹ÌÅÍ:
theName - ·Ñ¸í
theRefMBeanClassName - ´ëÀÀÇÏ´Â ·Ñ³»¿¡¼­ ÂüÁ¶µÇ´Â MBean (º¹¼ö°¡´É)ÀÇ Å¬·¡½º¸í. MBean M°¡ ÀÌ ·Ñ¿¡ Æ÷ÇԵǴ °æ¿ì, MBean ¼­¹ö´Â isInstanceOf(M, theRefMBeanClassName)¿¡ ´ëÇؼ­ true¸¦ µ¹·ÁÁÙ ÇÊ¿ä°¡ ÀÖ´Ù

IsReadable¿Í IsWritable ±âº»°ª´Â true ÀÔ´Ï´Ù.

ÃÖ¼Ò°ª¿Í ÃÖ´ë°ª ÀÇ ±âº»°ª´Â 1 ÀÔ´Ï´Ù.

·ÑÀÇ ¼³¸íÀÇ ±âº»°ª´Â null ÀÔ´Ï´Ù.

¿¹¿Ü:
IllegalArgumentException - ÆĶó¹ÌÅÍ°¡ nullÀÎ °æ¿ì
ClassNotFoundException - JMX 1.2 ÀÌÈÄ, ÀÌ ¿¹¿Ü´Â Throw µÇÁö ¾Ê°Ô µÈ´Ù. ÀÌ ¿¹¿Ü´Â ±âÁ¸ÀÇ ÄÚµå¿ÍÀÇ È£È¯¼ºÀ» È®º¸Çϱâ À§ÇØ, ÀÌ Å¬·¡½ºÀÇ ¼±¾ð¿¡ °è¼ÓÇØ Æ÷ÇԵǾî ÀÖ´Ù
NotCompliantMBeanException - JMX 1.2 ÀÌÈÄ, ÀÌ ¿¹¿Ü´Â Throw µÇÁö ¾Ê°Ô µÈ´Ù. ÀÌ ¿¹¿Ü´Â ±âÁ¸ÀÇ ÄÚµå¿ÍÀÇ È£È¯¼ºÀ» È®º¸Çϱâ À§ÇØ, ÀÌ Å¬·¡½ºÀÇ ¼±¾ð¿¡ °è¼ÓÇØ Æ÷ÇԵǾî ÀÖ´Ù

RoleInfo

public RoleInfo(RoleInfo  theRoleInfo)
         throws IllegalArgumentException 
»ý¼ºÀÚ¸¦ Ä«ÇÇÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
theRoleInfo - Ä«ÇǵǴ RoleInfo
¿¹¿Ü:
IllegalArgumentException - ÆĶó¹ÌÅÍ°¡ nullÀÎ °æ¿ì
¸Þ¼­µåÀÇ »ó¼¼

getName

public String  getName()
·Ñ¸íÀ» ¸®ÅÏÇÕ´Ï´Ù.

¹Ýȯ°ª:
·Ñ¸í

isReadable

public boolean isReadable()
·ÑÀÇ µ¶ÇØ ¾×¼¼½º ¸ðµå¸¦ ¸®ÅÏÇÕ´Ï´Ù (Àо °¡´ÉÇÑ °æ¿ì´Â true).

¹Ýȯ°ª:
·ÑÀÌ Àо °¡´ÉÇÑ °æ¿ì´Â true

isWritable

public boolean isWritable()
·ÑÀÇ Ãâ·Â ¾×¼¼½º ¸ðµå¸¦ ¸®ÅÏÇÕ´Ï´Ù (Ãâ·Â°¡´ÉÇÑ °æ¿ì´Â true).

¹Ýȯ°ª:
·ÑÀÌ Ãâ·Â°¡´ÉÇÑ °æ¿ì´Â true

getDescription

public String  getDescription()
·ÑÀÇ ¼³¸í ÅؽºÆ®¸¦ ¸®ÅÏÇÕ´Ï´Ù.

¹Ýȯ°ª:
·ÑÀÇ ¼³¸í

getMinDegree

public int getMinDegree()
´ëÀÀÇÏ´Â ·Ñ ÂüÁ¶ÀÇ ÃÖ¼Ò°ªÀ» ¸®ÅÏÇÕ´Ï´Ù.

¹Ýȯ°ª:
ÃÖ¼Ò°ª

getMaxDegree

public int getMaxDegree()
´ëÀÀÇÏ´Â ·Ñ ÂüÁ¶ÀÇ ÃÖ´ë°ªÀ» ¸®ÅÏÇÕ´Ï´Ù.

¹Ýȯ°ª:
ÃÖ´ë°ª

getRefMBeanClassName

public String  getRefMBeanClassName()

´ëÀÀÇÏ´Â ·Ñ³»¿¡¼­ ÂüÁ¶µÇ´Â MBean (º¹¼ö°¡´É)ÀÇ Çü¸íÀ» ¸®ÅÏÇÕ´Ï´Ù.

¹Ýȯ°ª:
ÂüÁ¶Çü¸í

checkMinDegree

public boolean checkMinDegree(int theValue)
ÁöÁ¤µÈ °ªÀÌ ÃÖ¼Ò°ª ÀÌ»óÀÏÁö ¾î¶³Áö¸¦ ³ªÅ¸³»´Â boolean ÇüÀ» ¸®ÅÏÇÕ´Ï´Ù. ÃÖ¼Ò°ª ÀÌ»óÀÎ °æ¿ì´Â true¸¦ ¸®ÅÏÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
theValue - Ä¡
¹Ýȯ°ª:
ÃÖ¼Ò°ª ÀÌ»óÀÇ °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false

checkMaxDegree

public boolean checkMaxDegree(int theValue)
ÁöÁ¤µÈ °ªÀÌ ÃÖ´ë°ª ÀÌÇÏÀÏÁö ¾î¶³Áö¸¦ ³ªÅ¸³»´Â boolean ÇüÀ» ¸®ÅÏÇÕ´Ï´Ù. ÃÖ´ë°ª ÀÌÇÏÀÎ °æ¿ì´Â true¸¦ ¸®ÅÏÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
theValue - Ä¡
¹Ýȯ°ª:
ÃÖ´ë°ª ¾Æ·¡ÀÇ °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false

toString

public String  toString()
·Ñ Á¤º¸¿¡ ´ëÇØ ¼³¸íÇϴ ij¸¯ÅÍ ¶óÀÎÀ» ¸®ÅÏÇÕ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º Object ³»ÀÇ toString
¹Ýȯ°ª:
·Ñ Á¤º¸ÀÇ ¼³¸í

JavaTM 2 Platform
Standard Ed. 5.0

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