|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjavax.management.NotificationBroadcasterSupport
javax.management.relation.RelationService
public class RelationService
°ü°è ¼ºñ½º¿¡´Â °ü°èÇü°ú °ü°èÀÇ ÀÛ¼º ¹× »èÁ¦, Á¤ÇÕ¼ºÀÇ Ã³¸® ¹× Äõ¸®µµ±¸ ÀÇ Á¦°øÀÇ ±â´ÉÀÌ ÀÖ½À´Ï´Ù.
°ü°è ¼ºñ½º´Â °ü°èÀÇ »èÁ¦½Ã¿¡ ÅëÁö¸¦ ¼Û½ÅÇϱâ À§ÇØ, NotificationBroadcasterSupport¸¦ È®ÀåÇÏ´Â °Í¿¡ ÀÇÇØ NotificationBroadcaster¸¦ ±¸ÇöÇÕ´Ï´Ù.
¶Ç, °ü°è ·Ñ³»ÀÇ ÂüÁ¶ ´ë»óÀÇ MBean ¹× °ü°è MBean µî·Ï ÇØÁ¦¿¡ °üÇÑ ÅëÁö¸¦ ¼ö½ÅÇÒ ¼ö ÀÖµµ·Ï Çϱâ À§ÇÑ, NotificationListener ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇÕ´Ï´Ù.
°Ô´Ù°¡ ObjectName¿Í MBean Server¸¦ ÃëµæÇÒ ¼ö ÀÖµµ·Ï, MBeanRegistration ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇÕ´Ï´Ù.
»ý¼ºÀÚ °³¿ä | |
---|---|
RelationService (boolean theImmediatePurgeFlg)
»ý¼ºÀÚ ÀÔ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
void |
addRelation (ObjectName theRelObjectName)
»ç¿ëÀÚ¿¡ ÀÇÇØ ÀÛ¼ºµÇ¾î MBean Server¿¡ µî·ÏµÇ´Â MBean¸¦, °ü°è·Î¼ °ü°è ¼ºñ½º¿¡ Ãß°¡ÇÕ´Ï´Ù. |
void |
addRelationType (RelationType theRelTypeObj)
ÁöÁ¤µÈ °´Ã¼¸¦ °ü°èÇüÀ¸·Î¼ Ãß°¡ÇÕ´Ï´Ù. |
Integer |
checkRoleReading (String theRoleName,
String theRelTypeName)
ÁöÁ¤µÈ ÇüÅÂÀÇ °ü°è·Î ÁöÁ¤µÈ Role µ¶Çذ¡ °¡´ÉÇѰ¡ ¾î¶²°¡¸¦ üũÇÕ´Ï´Ù. |
Integer |
checkRoleWriting (Role theRole,
String theRelTypeName,
Boolean theInitFlg)
ÁöÁ¤µÈ ÇüÅÂÀÇ °ü°è·Î ÁöÁ¤µÈ Role ¼³Á¤ÀÌ °¡´ÉÇѰ¡ ¾î¶²°¡¸¦ üũÇÕ´Ï´Ù. |
void |
createRelation (String theRelId,
String theRelTypeName,
RoleList theRoleList)
ÁöÁ¤µÈ °ü°èÇüÀÇ ´Ü¼øÇÑ °ü°è (RelationSupport °´Ã¼)¸¦ ÀÛ¼ºÇØ, À̰ÍÀ» °ü°è ¼ºñ½º¿¡ Ãß°¡ÇÕ´Ï´Ù. |
void |
createRelationType (String theRelTypeName,
RoleInfo [] theRoleInfoArray)
RoleInfo °´Ã¼·ÎºÎÅÍ Á¦°øµÈ ·Ñ Á¤º¸¸¦ »ç¿ëÇØ, °ü°èÇü (RelationTypeSupport °´Ã¼)À» ÀÛ¼ºÇØ, °ü°è ¼ºñ½º¿¡ Ãß°¡ÇÕ´Ï´Ù. |
Map |
findAssociatedMBeans (ObjectName theMBeanName,
String theRelTypeName,
String theRoleName)
°ü°è³»ÀÇ ÁöÁ¤µÈ MBean¿¡ °ü·ÃµÈ MBean¸¦ ÃëµæÇÕ´Ï´Ù. |
Map |
findReferencingRelations (ObjectName theMBeanName,
String theRelTypeName,
String theRoleName)
ÁöÁ¤µÈ MBean°¡ ÂüÁ¶µÇ´Â °ü°è¸¦ ÃëµæÇÕ´Ï´Ù. |
List |
findRelationsOfType (String theRelTypeName)
ÁöÁ¤µÈ ÇüÅÂÀÇ °ü°èÀÇ °ü°è ID¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
List |
getAllRelationIds ()
°ü°è ¼ºñ½º¿¡ ÀÇÇØ 󸮵Ǵ ¸ðµç °ü°èÀÇ ¸ðµç °ü°è ID¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
List |
getAllRelationTypeNames ()
±âÁ¸ÀÇ ¸ðµç °ü°èÇüÀÇ À̸§À» ÃëµæÇÕ´Ï´Ù. |
RoleResult |
getAllRoles (String theRelId)
°ü°è¿¡ Æ÷ÇԵǴ ¸ðµç ·ÑÀ» ¸®ÅÏÇÕ´Ï´Ù. |
MBeanNotificationInfo [] |
getNotificationInfo ()
ÅëÁöÀÇ Java Ŭ·¡½º¸í°ú ¼Û½ÅµÇ´Â ÅëÁöÇüÀ» Æ÷ÇÔÇÑ NotificationInfo °´Ã¼¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
boolean |
getPurgeFlag ()
°ü°è³»ÀÇ ÂüÁ¶ ´ë»óÀÇ MBean µî·Ï ÇØÁ¦ÀÇ ÅëÁö¸¦ ¾ðÁ¦ ¼ö½ÅÇß´ÂÁö, °ü°è¸¦ Áï½Ã ¡¸ÆÛÁö¡¹ (À¯È¿ÇÏÁö ¾Ê°Ô µÈ °ü°è¸¦ °Ë»ö) ÇÒ Çʿ䰡 ÀÖÀ»Áö ¾î¶³Áö, ¶Ç´Â purgeRelations ¸Þ¼µå°¡ ¸í½ÃÀûÀ¸·Î È£ÃâµÇ´Â °æ¿ì¿¡°Ô¸¸ ÆÛÁö°¡ ½ÇÇàµÉÁö ¾î¶³Áö¸¦ ³ªÅ¸³»´Â Ç÷¡±×¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
Map |
getReferencedMBeans (String theRelId)
°ü°èÀÇ ´Ù¾çÇÑ ·Ñ·Î ÂüÁ¶µÇ´Â MBean¸¦ ÃëµæÇÕ´Ï´Ù. |
String |
getRelationTypeName (String theRelId)
ÁöÁ¤µÈ °ü°èÀÇ °ü°èÇüÀÇ À̸§À» ¸®ÅÏÇÕ´Ï´Ù. |
List |
getRole (String theRelId,
String theRoleName)
ÁöÁ¤µÈ °ü°è¿¡ Æ÷ÇԵǴ ÁöÁ¤µÈ ·Ñ¸íÀÇ ·ÑÄ¡¸¦ ÃëµæÇÕ´Ï´Ù. |
Integer |
getRoleCardinality (String theRelId,
String theRoleName)
ÁöÁ¤µÈ ·Ñ³»¿¡¼ ÇöÀç ÂüÁ¶µÇ°í ÀÖ´Â MBean ¼ö¸¦ ÃëµæÇÕ´Ï´Ù. |
RoleInfo |
getRoleInfo (String theRelTypeName,
String theRoleInfoName)
ÁöÁ¤µÈ °ü°èÇüÀÇ ÁöÁ¤µÈ ·Ñ¸íÀÇ ·Ñ Á¤º¸¸¦ ÃëµæÇÕ´Ï´Ù. |
List |
getRoleInfos (String theRelTypeName)
ÁöÁ¤µÈ °ü°èÇüÀÇ ·Ñ Á¤º¸ (RoleInfo °´Ã¼)ÀÇ ¸®½ºÆ®¸¦ ÃëµæÇÕ´Ï´Ù. |
RoleResult |
getRoles (String theRelId,
String [] theRoleNameArray)
ÁöÁ¤µÈ °ü°è¿¡ Æ÷ÇԵǴ ÁöÁ¤µÈ À̸§ÀÇ ·ÑÀÇ °ªÀ» ÃëµæÇÕ´Ï´Ù. |
void |
handleNotification (Notification theNtf,
Object theHandback)
JMX ÅëÁö°¡ ¹ß»ýÇßÀ» ¶§ È£ÃâÇÕ´Ï´Ù. |
Boolean |
hasRelation (String theRelId)
°ü°è ¼ºñ½º³»·Î ÁöÁ¤µÈ °ü°è ID ·Î ½Äº°µÇ´Â °ü°è°¡ ÀÖÀ»Áö ¾î¶³Áö¸¦ üũÇÕ´Ï´Ù. |
void |
isActive ()
°ü°è ¼ºñ½º°¡ Ȱ¼ºÈµÇ¾ú´Â°¡ ¾î¶²°¡¸¦ üũÇÕ´Ï´Ù. |
String |
isRelation (ObjectName theObjName)
MBean°¡ °ü°è·Î¼ °ü°è ¼ºñ½º¿¡ Ãß°¡µÇ°í ÀÖ´Â °æ¿ì, ÁöÁ¤µÈ ObjectName¿¡ °ü·ÃµÈ °ü°è ID¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
ObjectName |
isRelationMBean (String theRelId)
»ç¿ëÀÚ¿¡ ÀÇÇØ ÀÛ¼ºµÇ¾î °ü°è·Î¼ °ü°è ¼ºñ½º¿¡ Ãß°¡µÈ MBean°¡ °ü°è¸¦ ³ªÅ¸³»´Â °æ¿ì, ÀÌ MBean ObjectName¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
void |
postDeregister ()
MBean ¼¹ö·ÎºÎÅÍ µî·Ï ÇØÁ¦ÇÑµÚ MBean°¡ ÇÊ¿äÇÑ ¿ÀÆÛ·¹À̼ÇÀ» ½ÇÇàÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù. |
void |
postRegister (Boolean registrationDone)
MBean ¼¹ö¿¡ÀÇ µî·ÏÀÌ ¼º°ø ¶Ç´Â ½ÇÆÐÇÑµÚ MBean°¡ ÇÊ¿äÇÑ ¿ÀÆÛ·¹À̼ÇÀ» ½ÇÇàÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù. |
void |
preDeregister ()
MBean ¼¹ö·ÎºÎÅÍ µî·Ï ÇØÁ¦Çϱâ Àü¿¡ MBean°¡ ÇÊ¿äÇÑ ¿ÀÆÛ·¹À̼ÇÀ» ½ÇÇàÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù. |
ObjectName |
preRegister (MBeanServer server,
ObjectName name)
MBean ¼¹ö¿¡ µî·ÏÇϱâ Àü¿¡ MBean¿¡ ÇÊ¿äÇÑ ¿ÀÆÛ·¹À̼ÇÀ» ½ÇÇà½Ãų ¼ö°¡ ÀÖ½À´Ï´Ù. |
void |
purgeRelations ()
°ü°è¸¦ ÆÛÁö ÇÕ´Ï´Ù. |
void |
removeRelation (String theRelId)
ÁöÁ¤µÈ °ü°èÇüÀ» °ü°è ¼ºñ½º·ÎºÎÅÍ »èÁ¦ÇÕ´Ï´Ù. |
void |
removeRelationType (String theRelTypeName)
ÁöÁ¤µÈ °ü°èÇüÀ» °ü°è ¼ºñ½º·ÎºÎÅÍ »èÁ¦ÇÕ´Ï´Ù. |
void |
sendRelationCreationNotification (String theRelId)
°ü°è ÀÛ¼ºÀÇ ÅëÁö (RelationNotification)¸¦ ¼Û½ÅÇÕ´Ï´Ù. |
void |
sendRelationRemovalNotification (String theRelId,
List theUnregMBeanList)
°ü°è »èÁ¦ÀÇ ÅëÁö (RelationNotification)¸¦ ¼Û½ÅÇÕ´Ï´Ù. |
void |
sendRoleUpdateNotification (String theRelId,
Role theNewRole,
List theOldRoleValue)
ÁöÁ¤µÈ °ü°è³»ÀÇ ·Ñ °»½ÅÀÇ ÅëÁö (RelationNotification)¸¦ ¼Û½ÅÇÕ´Ï´Ù. |
void |
setPurgeFlag (boolean thePurgeFlg)
°ü°è³»ÀÇ ÂüÁ¶ ´ë»óÀÇ MBean µî·Ï ÇØÁ¦ÀÇ ÅëÁö¸¦ ¾ðÁ¦ ¼ö½ÅÇß´ÂÁö, °ü°è¸¦ Áï½Ã ¡¸ÆÛÁö¡¹ (À¯È¿ÇÏÁö ¾Ê°Ô µÈ °ü°è¸¦ °Ë»ö) ÇÒ Çʿ䰡 ÀÖÀ»Áö ¾î¶³Áö, ¶Ç´Â purgeRelations ¸Þ¼µå°¡ ¸í½ÃÀûÀ¸·Î È£ÃâµÇ´Â °æ¿ì¿¡°Ô¸¸ ÆÛÁö°¡ ½ÇÇàµÉÁö ¾î¶³Áö¸¦ ³ªÅ¸³»´Â Ç÷¡±×¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setRole (String theRelId,
Role theRole)
ÁöÁ¤µÈ °ü°è³»ÀÇ ÁöÁ¤µÈ ·ÑÀ» ¼³Á¤ÇÕ´Ï´Ù. |
RoleResult |
setRoles (String theRelId,
RoleList theRoleList)
ÁöÁ¤µÈ °ü°è³»ÀÇ ÁöÁ¤µÈ ·ÑÀ» ¼³Á¤ÇÕ´Ï´Ù. |
void |
updateRoleMap (String theRelId,
Role theNewRole,
List theOldRoleValue)
ÁöÁ¤µÈ °ü°è³»ÀÇ ÁöÁ¤µÈ ·ÑÀ» °»½ÅÇϱâ À§ÇØ, °ü°è ¼ºñ½º ·Ñ ¸ÊÀÇ °»½ÅÀ» ó¸®ÇÕ´Ï´Ù. |
Ŭ·¡½º javax.management. NotificationBroadcasterSupport ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
addNotificationListener,
handleNotification,
removeNotificationListener,
removeNotificationListener,
sendNotification |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
»ý¼ºÀÚ »ó¼¼ |
---|
public RelationService(boolean theImmediatePurgeFlg)
theImmediatePurgeFlg
- °ü°è³»ÀÇ ÂüÁ¶ ´ë»óÀÇ MBean
µî·Ï ÇØÁ¦ÀÇ ÅëÁö¸¦ ¾ðÁ¦ ¼ö½ÅÇß´ÂÁö, °ü°è¸¦ Áï½Ã ¡¸ÆÛÁö¡¹ (À¯È¿ÇÏÁö ¾Ê°Ô µÈ °ü°è¸¦ °Ë»ö) ÇÒ Çʿ䰡 ÀÖÀ»Áö ¾î¶³Áö, ¶Ç´Â purgeRelations ¸Þ¼µå°¡ ¸í½ÃÀûÀ¸·Î È£ÃâµÇ´Â °æ¿ì¿¡°Ô¸¸ ÆÛÁö°¡ ½ÇÇàµÉÁö ¾î¶³Áö¸¦ ³ªÅ¸³»´Â Ç÷¡±×trueÀÎ °æ¿ì, Áï½Ã ÆÛÁö¸¦ ½Ç½ÃÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
¸Þ¼µåÀÇ »ó¼¼ |
---|
public void isActive() throws RelationServiceNotRegisteredException
RelationServiceMBean
³»ÀÇ isActive
RelationServiceNotRegisteredException
- °ü°è ¼ºñ½º°¡ ¹Ìµî·ÏÀÇ °æ¿ìpublic ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
MBeanRegistration
񃬣:
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)
MBeanRegistration
񃬣:
MBeanRegistration
³»ÀÇ postRegister
registrationDone
- MBean°¡ MBean ¼¹ö¿¡ Á¤»óÀûÀ¸·Î µî·ÏµÇ¾ú´ÂÁö ¾î¶°Çß´ÂÁö¸¦ ³ªÅ¸³½´Ù. µî·Ï¿¡ ½ÇÆÐÇßÀ» °æ¿ìÀÇ °ªÀº falsepublic void preDeregister() throws Exception
MBeanRegistration
񃬣:
MBeanRegistration
³»ÀÇ preDeregister
Exception
- ÀÌ ¿¹¿Ü´Â MBean ¼¹ö¿¡ ijġ µÇ¾îMBeanRegistrationException
·Î¼ ÀçThrow µÈ´Ùpublic void postDeregister()
MBeanRegistration
񃬣:
MBeanRegistration
³»ÀÇ postDeregister
public boolean getPurgeFlag()
trueÀÎ °æ¿ì, Áï½Ã ÆÛÁö¸¦ ½Ç½ÃÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
RelationServiceMBean
³»ÀÇ getPurgeFlag
setPurgeFlag(boolean)
public void setPurgeFlag(boolean thePurgeFlg)
trueÀÎ °æ¿ì, Áï½Ã ÆÛÁö¸¦ ½Ç½ÃÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
RelationServiceMBean
³»ÀÇ setPurgeFlag
thePurgeFlg
- Ç÷¡±×getPurgeFlag()
public void createRelationType(String theRelTypeName, RoleInfo [] theRoleInfoArray) throws IllegalArgumentException, InvalidRelationTypeException
RelationServiceMBean
³»ÀÇ createRelationType
theRelTypeName
- °ü°èÇüÀÇ À̸§theRoleInfoArray
- ·Ñ Á¤º¸ÀÇ ¹è¿
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ì
InvalidRelationTypeException
- ´ÙÀ½ÀÇ Á¶°ÇÀÌ ¼º¸³ÇÏ´Â °æ¿ì:- °°Àº À̸§ÀÇ °ü°èÇüÀÌ ÀÌ¹Ì Á¸ÀçÇÏ´Â °æ¿ì
- °°Àº À̸§ÀÌ 2°³°¡ ´Ù¸¥ ·Ñ Á¤º¸·Î »ç¿ëµÇ°í ÀÖ´Â °æ¿ì
- ·Ñ Á¤º¸°¡ Á¦°øµÇÁö ¾Ê¾Ò´ø °æ¿ì
- ·Ñ Á¤º¸·Î¼ nullÀÌ Á¦°øµÇ¾úÀ» °æ¿ì
public void addRelationType(RelationType theRelTypeObj) throws IllegalArgumentException, InvalidRelationTypeException
RelationServiceMBean
³»ÀÇ addRelationType
theRelTypeObj
- °ü°èÇü °´Ã¼ (RelationType ÀÎÅÍÆäÀ̽º¸¦ ±¸Çö)
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ì
InvalidRelationTypeException
- ´ÙÀ½ÀÇ Á¶°ÇÀÌ ¼º¸³ÇÏ´Â °æ¿ì:- °°Àº À̸§ÀÌ 2°³°¡ ´Ù¸¥ ·Ñ·Î »ç¿ëµÇ°í ÀÖ´Â °æ¿ì
- ·Ñ Á¤º¸°¡ Á¦°øµÇÁö ¾Ê¾Ò´ø °æ¿ì
- ·Ñ Á¤º¸·Î¼ nullÀÌ Á¦°øµÇ¾úÀ» °æ¿ì
- °°Àº À̸§ÀÇ °ü°èÇüÀÌ ÀÌ¹Ì Á¸ÀçÇÏ´Â °æ¿ì
public List getAllRelationTypeNames()
RelationServiceMBean
³»ÀÇ getAllRelationTypeNames
public List getRoleInfos(String theRelTypeName) throws IllegalArgumentException, RelationTypeNotFoundException
RelationServiceMBean
³»ÀÇ getRoleInfos
theRelTypeName
- °ü°èÇüÀÇ À̸§
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ì
RelationTypeNotFoundException
- ±× À̸§ÀÇ °ü°èÇüÀÌ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ìpublic RoleInfo getRoleInfo(String theRelTypeName, String theRoleInfoName) throws IllegalArgumentException, RelationTypeNotFoundException, RoleInfoNotFoundException
RelationServiceMBean
³»ÀÇ getRoleInfo
theRelTypeName
- °ü°èÇüÀÇ À̸§theRoleInfoName
- ·Ñ¸í
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ì
RelationTypeNotFoundException
- °ü°è ¼ºñ½º¿¡ ÀÖ¾î ¹ÌÁöÀÇ °ü°èÇüÀÎ °æ¿ì
RoleInfoNotFoundException
- °ü°èÇü¿¡ ·ÑÀÌ Æ÷ÇÔµÇÁö ¾ÊÀº °æ¿ìpublic void removeRelationType(String theRelTypeName) throws RelationServiceNotRegisteredException, IllegalArgumentException, RelationTypeNotFoundException
±× ÇüÅÂÀÇ °ü°è °´Ã¼°¡ °ü°è ¼ºñ½º·ÎºÎÅÍ »èÁ¦µË´Ï´Ù.
RelationServiceMBean
³»ÀÇ removeRelationType
theRelTypeName
- »èÁ¦µÇ´Â °ü°èÇüÀÇ À̸§
RelationServiceNotRegisteredException
- °ü°è ¼ºñ½º°¡ MBean Server¿¡ µî·ÏµÇÁö ¾ÊÀº °æ¿ì
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ì
RelationTypeNotFoundException
- ±× À̸§ÀÇ °ü°èÇüÀÌ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ìpublic void createRelation(String theRelId, String theRelTypeName, RoleList theRoleList) throws RelationServiceNotRegisteredException, IllegalArgumentException, RoleNotFoundException, InvalidRelationIdException, RelationTypeNotFoundException, InvalidRoleValueException
·ÑÀº ÆÄ¶ó¹ÌÅÍ·Î ÁöÁ¤µÈ ·Ñ ¸®½ºÆ®¿¡ µû¶ó Ãʱâȵ˴ϴÙ. ÀÌ ¹æ¹ýÀ¸·Î ÃʱâȵÇÁö ¾Ê´Â ·ÑÀº ObjectName ºñ¾îÀÖ´Â ArrayList ·Î ¼³Á¤µË´Ï´Ù.
RELATION_BASIC_CREATION ÇüÀÇ RelationNotification°¡ ¼Û½ÅµË´Ï´Ù.
RelationServiceMBean
³»ÀÇ createRelation
theRelId
- °ü°è ¼ºñ½º³»ÀÇ °ü°è¸¦ ÀÏÀÇ¿¡ ½Äº°Çϱâ À§Çؼ »ç¿ëµÇ´Â °ü°è ½Äº°ÀÚtheRelTypeName
- °ü°è ¼ºñ½º³»¿¡ ÀÛ¼ºÇÒ Çʿ䰡 ÀÖ´Â °ü°èÇüÀÇ À̸§theRoleList
- °ü°èÀÇ ·ÑÀ» ÃʱâÈÇϱâ À§ÇÑ ·Ñ ¸®½ºÆ® (nullµµ °¡´É)
RelationServiceNotRegisteredException
- °ü°è ¼ºñ½º°¡ MBean Server¿¡ µî·ÏµÇÁö ¾ÊÀº °æ¿ì
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ì. ´Ù¸¸, ·ÑÀÇ Ãʱâȸ¦ ÇÏÁö ¾Ê´Â °æ¿ì null ·Î ÇÒ ¼ö ÀÖ´Â ·Ñ ¸®½ºÆ®¸¦ Á¦¿ÜÇÏ´Ù
RoleNotFoundException
- °ü°èÇü³»¿¡ Á¸ÀçÇÏÁö ¾Ê´Â ·Ñ¿¡ °ªÀÌ Á¦°øµÇ¾úÀ» °æ¿ì
InvalidRelationIdException
- °ü°è ID°¡ À̹Ì
»ç¿ëµÇ°í ÀÖ´Â °æ¿ì
RelationTypeNotFoundException
- °ü°è ¼ºñ½º¿¡ ÀÖ¾î ¹ÌÁöÀÇ °ü°èÇüÀÎ °æ¿ì
InvalidRoleValueException
- ´ÙÀ½ÀÇ Á¶°ÇÀÌ ¼º¸³ÇÏ´Â °æ¿ì:- °°Àº À̸§ÀÌ 2°³°¡ ´Ù¸¥ ·Ñ·Î »ç¿ëµÇ°í ÀÖ´Â °æ¿ì
- ÁöÁ¤µÈ °ª¿¡ Æ÷ÇԵǴ ÂüÁ¶ ´ë»óÀÇ MBean ¼ö°¡ ¿¹»ó ÃÖ¼Ò°ªº¸´Ù ÀÛÀº °æ¿ì
- ÁöÁ¤µÈ °ª¿¡ Æ÷ÇԵǴ ÂüÁ¶ ´ë»óÀÇ MBean ¼ö°¡ ¿¹»ó ÃÖ´ë°ªÀ» ³Ñ°í ÀÖ´Â °æ¿ì
- Ä¡¿¡ Æ÷ÇԵǴ ÂüÁ¶ ´ë»óÀÇ MBean Áß 1°³ÀÌ, ±× ·ÑÀÇ MBean Ŭ·¡½ºÀÇ °´Ã¼°¡ ¾Æ´Ñ °æ¿ì
- ±× ·ÑÀÇ MBean°¡ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì
public void addRelation(ObjectName theRelObjectName) throws IllegalArgumentException, RelationServiceNotRegisteredException, NoSuchMethodException, InvalidRelationIdException, InstanceNotFoundException, InvalidRelationServiceException, RelationTypeNotFoundException, RoleNotFoundException, InvalidRoleValueException
MBean¸¦ °ü°è·Î¼ Ãß°¡Çϱâ À§Çؼ´Â ´ÙÀ½ÀÇ Á¶°ÇÀÌ Ã¤¿öÁö°í ÀÖÀ» Çʿ䰡 ÀÖ½À´Ï´Ù.
- MBean°¡ Relation ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇϰí ÀÖ´Ù
- MBean°¡ RelationService ObjectName ¿ëÀ¸·Î¼ ÇöÀçÀÇ °ü°è ¼ºñ½ºÀÇ ObjectName¸¦ °¡Áö°í ÀÖ´Ù
- MBean°¡ ÇöÀçÀÇ °ü°è ¼ºñ½º³»¿¡¼ ÇϳªÀÇ ¶ÇÇÑ ¹Ì»ç¿ëÀÇ °ü°è ID¸¦ °¡Áö°í ÀÖ´Ù
- MBean°¡ °ü°èÇü¿ëÀ¸·Î¼ °ü°è ¼ºñ½º³»¿¡¼ ÀÛ¼ºµÈ °ü°èÇüÀ» °¡Áö°í ÀÖ´Ù
- MBean°¡ °ü°èÇü³»¿¡¼ Á¦°øµÈ ·Ñ Á¤º¸¿¡ ÀûÇÕÇÏ´Â ·ÑÀ» °¡Áö°í ÀÖ´Ù
RelationServiceMBean
³»ÀÇ addRelation
theRelObjectName
- Ãß°¡µÇ´Â °ü°è MBean
ObjectName
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ì
RelationServiceNotRegisteredException
- °ü°è ¼ºñ½º°¡ MBean Server¿¡ µî·ÏµÇÁö ¾ÊÀº °æ¿ì
NoSuchMethodException
- MBean°¡ Relation ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇϰí ÀÖÁö ¾Ê´Â °æ¿ì
InvalidRelationIdException
- ´ÙÀ½ÀÇ Á¶°ÇÀÌ ¼º¸³ÇÏ´Â °æ¿ì:- MBean ³»¿¡ °ü°è ½Äº°ÀÚ°¡ Á¸ÀçÇÏÁö ¾Ê´Â
- °ü°è ½Äº°ÀÚ°¡ °ü°è ¼ºñ½º·Î ÀÌ¹Ì »ç¿ëµÇ°í ÀÖ´Â °æ¿ì
InstanceNotFoundException
- ÁöÁ¤µÈ ObjectName
MBean°¡ µî·ÏµÇÁö ¾ÊÀº °æ¿ì
InvalidRelationServiceException
- ´ÙÀ½ÀÇ Á¶°ÇÀÌ ¼º¸³ÇÏ´Â °æ¿ì:- MBean ³»¿¡ °ü°è ¼ºñ½º¸íÀÌ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì
- MBean ³»ÀÇ °ü°è ¼ºñ½º¸íÀÌ ÇöÀçÀÇ °ü°è ¼ºñ½ºÀÇ °ü°è ¼ºñ½º¸íÀÌ ¾Æ´Ñ °æ¿ì
RelationTypeNotFoundException
- ´ÙÀ½ÀÇ Á¶°ÇÀÌ ¼º¸³ÇÏ´Â °æ¿ì:- MBean ³»¿¡ °ü°èÇü¸íÀÌ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì
- MBean ³»ÀÇ °ü°èÇü¸íÀÌ °ü°è ¼ºñ½º³»¿¡ ÀÛ¼ºµÈ °ü°èÇü¿¡ ´ëÀÀÇϰí ÀÖÁö ¾Ê´Â °æ¿ì
InvalidRoleValueException
- ´ÙÀ½ÀÇ Á¶°ÇÀÌ ¼º¸³ÇÏ´Â °æ¿ì:- ·Ñ¿¡ Æ÷ÇԵǴ ÂüÁ¶ ´ë»óÀÇ MBean ¼ö°¡ ¿¹»ó ÃÖ¼Ò°ªº¸´Ù ÀÛÀº °æ¿ì
- ·Ñ¿¡ Æ÷ÇԵǴ ÂüÁ¶ ´ë»óÀÇ MBean ¼ö°¡ ¿¹»ó ÃÖ´ë°ªÀ» ³Ñ°í ÀÖ´Â °æ¿ì
- Ä¡¿¡ Æ÷ÇԵǴ ÂüÁ¶ ´ë»óÀÇ MBean Áß 1°³ÀÌ, ±× ·ÑÀÇ MBean Ŭ·¡½ºÀÇ °´Ã¼°¡ ¾Æ´Ñ °æ¿ì
- ·Ñ¿¡ Á¦°øµÈ MBean°¡ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì
RoleNotFoundException
- °ü°èÇü³»¿¡ Á¸ÀçÇÏÁö ¾Ê´Â ·Ñ¿¡ °ªÀÌ Á¦°øµÇ¾úÀ» °æ¿ìpublic ObjectName isRelationMBean(String theRelId) throws IllegalArgumentException, RelationNotFoundException
RelationServiceMBean
³»ÀÇ isRelationMBean
theRelId
- °ü°è¸¦ ½Äº°ÇÏ´Â °ü°è ID
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ì
RelationNotFoundException
- ÀÌ ID¿¡ °ü°è¸¦ °ü·ÃÁöÀ» ¼ö ÀÖÁö ¾ÊÀº °æ¿ìpublic String isRelation(ObjectName theObjName) throws IllegalArgumentException
RelationServiceMBean
³»ÀÇ isRelation
theObjName
- °¡Á¤µÈ °ü°èÀÇ ObjectName
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ìpublic Boolean hasRelation(String theRelId) throws IllegalArgumentException
RelationServiceMBean
³»ÀÇ hasRelation
theRelId
- °ü°è¸¦ ½Äº°ÇÏ´Â °ü°è ID
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ìpublic List getAllRelationIds()
RelationServiceMBean
³»ÀÇ getAllRelationIds
public Integer checkRoleReading(String theRoleName, String theRelTypeName) throws IllegalArgumentException, RelationTypeNotFoundException
RelationServiceMBean
³»ÀÇ checkRoleReading
theRoleName
- üũµÇ´Â ·ÑÀÇ À̸§theRelTypeName
- °ü°èÇüÀÇ À̸§
- ·ÑÀÇ µ¶Çذ¡ °¡´ÉÇÑ °æ¿ì´Â 0
- RoleStatus.NO_ROLE_WITH_NAME¿¡ ´ëÀÀÇÏ´Â Á¤¼öÇü
- RoleStatus.ROLE_NOT_READABLE¿¡ ´ëÀÀÇÏ´Â Á¤¼öÇü
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ì
RelationTypeNotFoundException
- °ü°è ¼ºñ½º¿¡ ÀÖ¾î ¹ÌÁöÀÇ °ü°èÇüÀÎ °æ¿ìpublic Integer checkRoleWriting(Role theRole, String theRelTypeName, Boolean theInitFlg) throws IllegalArgumentException, RelationTypeNotFoundException
RelationServiceMBean
³»ÀÇ checkRoleWriting
theRole
- üũµÇ´Â ·ÑtheRelTypeName
- °ü°èÇüÀÇ À̸§theInitFlg
- ·ÑÀÇ Ãʱâȸ¦ À§Çؼ üũ¸¦ ÇÑ °ÍÀ» ³ªÅ¸³»´Â Ç÷¡±×. Ãâ·Â ¾×¼¼½ºÀÇ °ËÁõÀº ÇàÇØÁöÁö ¾Ê´Â´Ù
- ·ÑÀÇ ¼³Á¤ÀÌ °¡´ÉÇÑ °æ¿ì´Â 0
- RoleStatus.NO_ROLE_WITH_NAME¿¡ ´ëÀÀÇÏ´Â Á¤¼öÇü
- RoleStatus.ROLE_NOT_WRITABLE Á¤¼öÇü
- RoleStatus.LESS_THAN_MIN_ROLE_DEGREE Á¤¼öÇü
- RoleStatus.MORE_THAN_MAX_ROLE_DEGREE Á¤¼öÇü
- RoleStatus.REF_MBEAN_OF_INCORRECT_CLASS Á¤¼öÇü
- RoleStatus.REF_MBEAN_NOT_REGISTERED Á¤¼öÇü
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ì
RelationTypeNotFoundException
- ¹ÌÁöÀÇ °ü°èÇüÀÇ °æ¿ìpublic void sendRelationCreationNotification(String theRelId) throws IllegalArgumentException, RelationNotFoundException
- RelationNotification.RELATION_BASIC_CREATION. °ü°è°¡ °ü°è ¼ºñ½ºÀÇ ³»ºÎ °´Ã¼ÀÎ °æ¿ì
- RelationNotification.RELATION_MBEAN_CREATION. °ü°è°¡ °ü°è·Î¼ Ãß°¡µÈ MBean ÀÎ °æ¿ì
¼Ò½º °´Ã¼´Â °ü°è ¼ºñ½º ÀÚüÀÔ´Ï´Ù.
°ü°è ¼ºñ½ºÀÇ createRelation() ¸Þ¼µå ¹× addRelation() ¸Þ¼µå·Î È£ÃâÇÕ´Ï´Ù.
RelationServiceMBean
³»ÀÇ sendRelationCreationNotification
theRelId
- °»½ÅµÈ °ü°èÀÇ °ü°è ½Äº°ÀÚ
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ì
RelationNotFoundException
- ÁöÁ¤µÈ °ü°è ID
°ü°è°¡ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ìpublic void sendRoleUpdateNotification(String theRelId, Role theNewRole, List theOldRoleValue) throws IllegalArgumentException, RelationNotFoundException
- RelationNotification.RELATION_BASIC_UPDATE. °ü°è°¡ °ü°è ¼ºñ½ºÀÇ ³»ºÎ °´Ã¼ÀÎ °æ¿ì
- RelationNotification.RELATION_MBEAN_UPDATE. °ü°è°¡ °ü°è·Î¼ Ãß°¡µÈ MBean ÀÎ °æ¿ì
¼Ò½º °´Ã¼´Â °ü°è ¼ºñ½º ÀÚüÀÔ´Ï´Ù.
°ü°è MBean setRole() ¸Þ¼µå (ÁöÁ¤µÈ ·Ñ¿ë) ¹× setRoles() ¸Þ¼µå ( °¢ ·Ñ¿ë)·Î È£ÃâÇÕ´Ï´Ù. ÀÌ ±¸ÇöÀº RelationSupport Ŭ·¡½º¿¡¼ Á¦°øµË´Ï´Ù.
°ü°è ¼ºñ½ºÀÇ setRole() ¸Þ¼µå (ÁöÁ¤µÈ ·Ñ¿ë) ¹× setRoles() ¸Þ¼µå ( °¢ ·Ñ¿ë)¿¡¼µµ È£ÃâÇÒ ¼ö ÀÖ½À´Ï´Ù.
RelationServiceMBean
³»ÀÇ sendRoleUpdateNotification
theRelId
- °»½ÅµÈ °ü°èÀÇ °ü°è ½Äº°ÀÚtheNewRole
- »õ·Î¿î ·Ñ (À̸§°ú »õ·Î¿î °ª)theOldRoleValue
- ³°Àº ·ÑÄ¡ (ObjectName °´Ã¼ÀÇ List)
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ì
RelationNotFoundException
- ÁöÁ¤µÈ °ü°è ID
°ü°è°¡ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ìpublic void sendRelationRemovalNotification(String theRelId, List theUnregMBeanList) throws IllegalArgumentException, RelationNotFoundException
- RelationNotification.RELATION_BASIC_REMOVAL. °ü°è°¡ °ü°è ¼ºñ½ºÀÇ ³»ºÎ °´Ã¼ÀÎ °æ¿ì
- RelationNotification.RELATION_MBEAN_REMOVAL. °ü°è°¡ °ü°è·Î¼ Ãß°¡µÈ MBean ÀÎ °æ¿ì
¼Ò½º °´Ã¼´Â °ü°è ¼ºñ½º ÀÚüÀÔ´Ï´Ù.
°ü°è ¼ºñ½ºÀÇ removeRelation() ¸Þ¼µå·Î È£ÃâÇÕ´Ï´Ù.
RelationServiceMBean
³»ÀÇ sendRelationRemovalNotification
theRelId
- °»½ÅµÈ °ü°èÀÇ °ü°è ½Äº°ÀÚtheUnregMBeanList
- °ü°èÀÇ »èÁ¦ÀÇ °á°ú, µî·Ï ÇØÁ¦µÇ´Â MBean
ObjectName
¸®½ºÆ® (nullµµ °¡´É)
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ì
RelationNotFoundException
- ÁöÁ¤µÈ °ü°è ID
°ü°è°¡ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ìpublic void updateRoleMap(String theRelId, Role theNewRole, List theOldRoleValue) throws IllegalArgumentException, RelationServiceNotRegisteredException, RelationNotFoundException
°ü°è MBean setRole() ¸Þ¼µå (ÁöÁ¤µÈ ·Ñ¿ë) ¹× setRoles() ¸Þ¼µå ( °¢ ·Ñ¿ë)·Î È£ÃâÇÕ´Ï´Ù. ÀÌ ±¸ÇöÀº RelationSupport Ŭ·¡½º¿¡¼ Á¦°øµË´Ï´Ù.
°ü°è ¼ºñ½ºÀÇ setRole() ¸Þ¼µå (ÁöÁ¤µÈ ·Ñ¿ë) ¹× setRoles() ¸Þ¼µå ( °¢ ·Ñ¿ë)¿¡¼µµ È£ÃâÇÒ ¼ö ÀÖ½À´Ï´Ù.
°ü°è ¼ºñ½º°¡ MBean µî·Ï ÇØÁ¦½Ãµµ Á¤ÇÕ¼ºÀ» È®º¸ÇØ, Äõ¸®¸¦ ½ÇÇàÇÒ ¼ö ÀÖµµ·Ï ÇÏ·Á¸é, ·ÑÀÇ °»½Å½Ã¿¡ ÀÌ ¸Þ¼µå¸¦ È£ÃâÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù.
RelationServiceMBean
³»ÀÇ updateRoleMap
theRelId
- °»½ÅµÈ °ü°èÀÇ °ü°è ½Äº°ÀÚtheNewRole
- »õ·Î¿î ·Ñ (À̸§°ú »õ·Î¿î °ª)theOldRoleValue
- ³°Àº ·ÑÄ¡ (ObjectName °´Ã¼ÀÇ List)
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ì
RelationServiceNotRegisteredException
- °ü°è ¼ºñ½º°¡ MBean Server¿¡ µî·ÏµÇÁö ¾ÊÀº °æ¿ì
RelationNotFoundException
- ÁöÁ¤µÈ ID¿¡ ´ëÀÀÇÏ´Â °ü°è°¡ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ìpublic void removeRelation(String theRelId) throws RelationServiceNotRegisteredException, IllegalArgumentException, RelationNotFoundException
RelationNotification ÅëÁö°¡ ¼Û½ÅµË´Ï´Ù. ±× ÇüÅ´ ´ÙÀ½°ú °°½À´Ï´Ù.
- RelationNotification.RELATION_BASIC_REMOVAL. °ü°è ¼ºñ½º³» Àü¿ëÀÇ °ü°èÀÎ °æ¿ì
- RelationNotification.RELATION_MBEAN_REMOVAL. °ü°è°¡ MBean ·Î¼ µî·ÏµÇ¾î ÀÖ´Â °æ¿ì
ÀÌ·¯ÇÑ °ü°è·Î ÂüÁ¶µÇ´Â MBeanÀÎ °æ¿ì, ¾Æ¹«°Íµµ ÇàÇØÁöÁö ¾Ê½À´Ï´Ù.
RelationServiceMBean
³»ÀÇ removeRelation
theRelId
- »èÁ¦µÇ´Â °ü°èÀÇ °ü°è ID
RelationServiceNotRegisteredException
- °ü°è ¼ºñ½º°¡ MBean Server¿¡ µî·ÏµÇÁö ¾ÊÀº °æ¿ì
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ì
RelationNotFoundException
- ÁöÁ¤µÈ °ü°è ID¿¡ ´ëÀÀÇÏ´Â °ü°è°¡ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ìpublic void purgeRelations() throws RelationServiceNotRegisteredException
ÀÌ ¸Þ¼µå´Â purgeFlag Ä¡¿¡ ÀÇÁ¸ÇÕ´Ï´Ù. Ç÷¡±×°¡ true ·Î ¼³Á¤µÇ¾î ÀÖ´Â °æ¿ì´Â °ü°è³»ÀÇ ÂüÁ¶ ´ë»óÀÇ MBean µî·Ï ÇØÁ¦¸¦ ¾Ë¸®´Â ÅëÁö¸¦ ¼ö½ÅÇßÀ» ¶§ ÀÚµ¿ÀûÀ¸·Î È£ÃâÇÕ´Ï´Ù. Ç÷¡±×°¡ false ·Î ¼³Á¤µÇ¾î ÀÖ´Â °æ¿ì´Â ºÒ·Á°¡ Áö ¾Ê½À´Ï´Ù.
Ç÷¡±×°¡ false ·Î ¼³Á¤µÇ¾î ÀÖ´Â °æ¿ì, °ü°èÀÇ Á¤ÇÕ¼ºÀ» È®º¸Çϱâ À§Çؼ ÀÌ ¸Þ¼µå¸¦ È£ÃâÇÒÁö ¾î¶³Áö´Â »ç¿ëÀÚ°¡ °áÁ¤ÇÕ´Ï´Ù. MBean µî·ÏÀÌ ÇØÁ¦µÈ µÚ Áï½Ã ÆÛÁö¸¦ ÇÏÁö ¾Ê´Â °æ¿ì, ObjectName°¡ ÀçÀÌ¿ëµÇ¾î °ü°è³»ÀÇ ÂüÁ¶ ´ë»óÀÇ ´Ù¸¥ MBean¿¡ ÇÒ´çÇÒ ¼ö ÀÖÀ» ¶§ ÀÌ purgeRelations() ¸Þ¼µå¸¦ ¼öµ¿À¸·Î È£ÃâÇϸé, ¹®Á¦°¡ ¹ß»ýÇÕ´Ï´Ù. À̰ÍÀº »õ·Î¿î MBean°¡ ÀνĵÇÁö ¾Ê°í, ObjectName°¡ µî·Ï ÇØÁ¦µÈ MBean¿¡ ´ëÀÀÇÑ´Ù°í º¸¿©Áö±â ¶§¹®ÀÔ´Ï´Ù.
µ¿ÀÛÀº µî·Ï ÇØÁ¦µÈ MBean°¡ ÂüÁ¶µÇ´Â ·ÑÀÇ Ä«µð³ª¸®Æ¼¿¡ °áÁ¤µË´Ï´Ù.
- ·Ñ³»ÀÇ MBean ÂüÁ¶¸¦ 1°³ »èÁ¦ÇßÀ» ¶§ ÂüÁ¶ÀÇ ¼ö°¡ ÃÖ¼Ò°ªº¸´Ù Àû°Ô µÇ´Â °æ¿ì´Â °ü°è¸¦ »èÁ¦ÇÒ Çʿ䰡 ÀÖ´Ù
- MBean ÂüÁ¶¸¦ »èÁ¦ÇÑ µÚ ³²Àº ÂüÁ¶ÀÇ ¼ö°¡ Ä«µð³ª¸®Æ¼ ¹üÀ§³»ÀÎ °æ¿ì´Â °ü°è¸¦ º¸°ü À¯ÁöÇØ, handleMBeanUnregistration() ÄݹéÀ» È£ÃâÇØ °»½ÅÇÑ´Ù
RelationServiceMBean
³»ÀÇ purgeRelations
RelationServiceNotRegisteredException
- °ü°è ¼ºñ½º°¡ MBean Server¿¡ µî·ÏµÇÁö ¾ÊÀº °æ¿ìpublic Map findReferencingRelations(ObjectName theMBeanName, String theRelTypeName, String theRoleName) throws IllegalArgumentException
À̰ÍÀº CIM ¡¸Reference¡¹ ¹× ¡¸ReferenceName¡¹¿ÀÆÛ·¹À̼ǿ¡ ´ëÀÀÇÕ´Ï´Ù.
RelationServiceMBean
³»ÀÇ findReferencingRelations
theMBeanName
- MBean
ObjectNametheRelTypeName
- nullµµ °¡´É. ÁöÁ¤ÇßÀ» °æ¿ì, °Ë»ö¿¡¼´Â ±× ÇüÅÂÀÇ °ü°è¸¸ÀÌ °í·ÁµÈ´Ù. ±× ¿ÜÀÇ °æ¿ì, ¸ðµç °ü°èÇüÀÌ °í·ÁµÇ´ÂtheRoleName
- nullµµ °¡´É. ÁöÁ¤ÇßÀ» °æ¿ì, ±× ·Ñ³»ÀÇ MBean°¡ ÂüÁ¶µÇ´Â °ü°è¸¸ÀÌ ¸®ÅϵȴÙ. ±× ¿ÜÀÇ °æ¿ì, ¸ðµç ·ÑÀÌ °í·ÁµÈ´Ù
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ìpublic Map findAssociatedMBeans(ObjectName theMBeanName, String theRelTypeName, String theRoleName) throws IllegalArgumentException
À̰ÍÀº CIM Associator ¹× AssociatorName ¿ÀÆÛ·¹À̼ǿ¡ ´ëÀÀÇÕ´Ï´Ù.
RelationServiceMBean
³»ÀÇ findAssociatedMBeans
theMBeanName
- MBean
ObjectNametheRelTypeName
- nullµµ °¡´É. ÁöÁ¤ÇßÀ» °æ¿ì, °Ë»ö¿¡¼´Â ±× ÇüÅÂÀÇ °ü°è¸¸ÀÌ °í·ÁµÈ´Ù. ±× ¿ÜÀÇ °æ¿ì, ¸ðµç °ü°èÇüÀÌ °í·ÁµÇ´ÂtheRoleName
- nullµµ °¡´É. ÁöÁ¤ÇßÀ» °æ¿ì, ±× ·Ñ³»ÀÇ MBean°¡ ÂüÁ¶µÇ´Â °ü°è¸¸ÀÌ °í·ÁµÈ´Ù. ±× ¿ÜÀÇ °æ¿ì, ¸ðµç ·ÑÀÌ °í·ÁµÈ´Ù
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ìpublic List findRelationsOfType(String theRelTypeName) throws IllegalArgumentException, RelationTypeNotFoundException
RelationServiceMBean
³»ÀÇ findRelationsOfType
theRelTypeName
- °ü°èÇü¸í
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ì
RelationTypeNotFoundException
- ±× À̸§ÀÇ °ü°èÇüÀÌ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ìpublic List getRole(String theRelId, String theRoleName) throws RelationServiceNotRegisteredException, IllegalArgumentException, RelationNotFoundException, RoleNotFoundException
RelationServiceMBean
³»ÀÇ getRole
theRelId
- °ü°è IDtheRoleName
- ·Ñ¸í
RelationServiceNotRegisteredException
- °ü°è ¼ºñ½º°¡ ¹Ìµî·ÏÀÇ °æ¿ì
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ì
RelationNotFoundException
- ÁöÁ¤µÈ ID¿¡ ´ëÀÀÇÏ´Â °ü°è°¡ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì
RoleNotFoundException
- ´ÙÀ½ÀÇ Á¶°ÇÀÌ ¼º¸³ÇÏ´Â °æ¿ì:- ÁöÁ¤µÈ À̸§ÀÇ ·ÑÀÌ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì
¶Ç´Â
- ·ÑÀÌ Àо ºÒ°¡ÀÎ °æ¿ì
setRole(java.lang.String, javax.management.relation.Role)
public RoleResult getRoles(String theRelId, String [] theRoleNameArray) throws RelationServiceNotRegisteredException, IllegalArgumentException, RelationNotFoundException
RelationServiceMBean
³»ÀÇ getRoles
theRelId
- °ü°è IDtheRoleNameArray
- ÃëµæµÇ´Â ·ÑÀÇ À̸§¿¡¼ ¿Ï¼ºµÇ´Â ¹è¿
RelationServiceNotRegisteredException
- °ü°è ¼ºñ½º°¡ MBean Server¿¡ µî·ÏµÇÁö ¾ÊÀº °æ¿ì
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ì
RelationNotFoundException
- ÁöÁ¤µÈ ID¿¡ ´ëÀÀÇÏ´Â °ü°è°¡ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ìsetRoles(java.lang.String, javax.management.relation.RoleList)
public RoleResult getAllRoles(String theRelId) throws IllegalArgumentException, RelationNotFoundException, RelationServiceNotRegisteredException
RelationServiceMBean
³»ÀÇ getAllRoles
theRelId
- °ü°è ID
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ì
RelationNotFoundException
- ÁöÁ¤µÈ ID¿¡ ´ëÀÀÇÏ´Â °ü°è°¡ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì
RelationServiceNotRegisteredException
- °ü°è ¼ºñ½º°¡ MBean Server¿¡ µî·ÏµÇÁö ¾ÊÀº °æ¿ìpublic Integer getRoleCardinality(String theRelId, String theRoleName) throws IllegalArgumentException, RelationNotFoundException, RoleNotFoundException
RelationServiceMBean
³»ÀÇ getRoleCardinality
theRelId
- °ü°è IDtheRoleName
- ·Ñ¸í
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ì
RelationNotFoundException
- ÁöÁ¤µÈ ID¿¡ ´ëÀÀÇÏ´Â °ü°è°¡ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì
RoleNotFoundException
- ÁöÁ¤µÈ À̸§ÀÇ ·ÑÀÌ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ìpublic void setRole(String theRelId, Role theRole) throws RelationServiceNotRegisteredException, IllegalArgumentException, RelationNotFoundException, RoleNotFoundException, InvalidRoleValueException
°ü°èÀÇ °ü°èÇü¿¡ Æ÷ÇԵǾî ÀÖ´Â ´ëÀÀÇÏ´Â ·Ñ Á¤ÀÇ¿¡ µû¶ó, ·ÑÀ» üũÇÕ´Ï´Ù.
°ü°è ¼ºñ½º´Â °ü°èÀÇ Á¤ÇÕ¼ºÀ» È®º¸Çϱâ À§ÇØ, ÂüÁ¶ ´ë»óÀÇ MBean µî·Ï ÇØÁ¦¸¦ ó¸®ÇÏ´Â °ÍÀ¸·Î½á, º¯°æÀ» ÃßÀûÇÕ´Ï´Ù.
RelationServiceMBean
³»ÀÇ setRole
theRelId
- °ü°è IDtheRole
- ¼³Á¤µÇ´Â ·Ñ (À̸§°ú »õ·Î¿î °ª)
RelationServiceNotRegisteredException
- °ü°è ¼ºñ½º°¡ MBean Server¿¡ µî·ÏµÇÁö ¾ÊÀº °æ¿ì
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ì
RelationNotFoundException
- ÁöÁ¤µÈ ID¿¡ ´ëÀÀÇÏ´Â °ü°è°¡ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì
RoleNotFoundException
- ·ÑÀÌ Á¸ÀçÇÏÁö ¾Ê´ÂÁö, Ãâ·Â ºÒ°¡ÀÎ °æ¿ì
InvalidRoleValueException
- ·Ñ¿¡ ´ëÇØ¼ Á¦°øµÈ °ªÀÌ ¹«È¿ÀÎ °æ¿ì:- ÁöÁ¤µÈ °ª¿¡ Æ÷ÇԵǴ ÂüÁ¶ ´ë»óÀÇ MBean ¼ö°¡ ¿¹»ó ÃÖ¼Ò°ªº¸´Ù ÀÛÀº °æ¿ì
¶Ç´Â
- ÁöÁ¤µÈ °ª¿¡ Æ÷ÇԵǴ ÂüÁ¶ ´ë»óÀÇ MBean ¼ö°¡ ¿¹»ó ÃÖ´ë°ªÀ» ³Ñ°í ÀÖ´Â °æ¿ì
¶Ç´Â
- °ª¿¡ Æ÷ÇԵǴ ÂüÁ¶ ´ë»óÀÇ MBean Áß 1°³ÀÌ, ±× ·ÑÀÇ MBean Ŭ·¡½ºÀÇ °´Ã¼°¡ ¾Æ´Ñ °æ¿ì
¶Ç´Â
- ±× ·ÑÀÇ MBean°¡ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì
getRole(java.lang.String, java.lang.String)
public RoleResult setRoles(String theRelId, RoleList theRoleList) throws RelationServiceNotRegisteredException, IllegalArgumentException, RelationNotFoundException
°ü°èÀÇ °ü°èÇü¿¡ Æ÷ÇԵǾî ÀÖ´Â ´ëÀÀÇÏ´Â ·Ñ Á¤ÀÇ¿¡ µû¶ó, ·ÑÀ» üũÇÕ´Ï´Ù.
°ü°è ¼ºñ½º´Â °ü°èÀÇ Á¤ÇÕ¼ºÀ» È®º¸Çϱâ À§ÇØ, ÂüÁ¶ ´ë»óÀÇ MBean µî·Ï ÇØÁ¦¸¦ ó¸®ÇÏ´Â °ÍÀ¸·Î½á, º¯°æÀ» ÃßÀûÇÕ´Ï´Ù.
RelationServiceMBean
³»ÀÇ setRoles
theRelId
- °ü°è IDtheRoleList
- ¼³Á¤µÇ´Â ·ÑÀÇ ¸®½ºÆ®
RelationServiceNotRegisteredException
- °ü°è ¼ºñ½º°¡ MBean Server¿¡ µî·ÏµÇÁö ¾ÊÀº °æ¿ì
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ì
RelationNotFoundException
- ÁöÁ¤µÈ ID¿¡ ´ëÀÀÇÏ´Â °ü°è°¡ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ìgetRoles(java.lang.String, java.lang.String[])
public Map getReferencedMBeans(String theRelId) throws IllegalArgumentException, RelationNotFoundException
RelationServiceMBean
³»ÀÇ getReferencedMBeans
theRelId
- °ü°è ID
ObjectName ¡æ String (·Ñ¸í)·ÎºÎÅÍ ¿Ï¼ºµÇ´Â ArrayList
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ì
RelationNotFoundException
- ÁöÁ¤µÈ °ü°è ID¿¡ ´ëÀÀÇÏ´Â °ü°è°¡ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ìpublic String getRelationTypeName(String theRelId) throws IllegalArgumentException, RelationNotFoundException
RelationServiceMBean
³»ÀÇ getRelationTypeName
theRelId
- °ü°è ID
IllegalArgumentException
- ÆÄ¶ó¹ÌÅͰ¡ nullÀÎ °æ¿ì
RelationNotFoundException
- ÁöÁ¤µÈ °ü°è ID¿¡ ´ëÀÀÇÏ´Â °ü°è°¡ Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ìpublic void handleNotification(Notification theNtf, Object theHandback)
NotificationListener
³»ÀÇ handleNotification
theNtf
- ÅëÁötheHandback
- ¸®½º³Ê¿¡
ÇÑ MBean À̹ÌÅÍÀÇ Á¤º¸ÀÇ °ü·ÃÁö¾î¿¡ µµ¿òÀÌ µÇ´Â ºÒÅõ¸íÇÑ °´Ã¼public MBeanNotificationInfo [] getNotificationInfo()
NotificationBroadcaster
³»ÀÇ getNotificationInfo
NotificationBroadcasterSupport
³»ÀÇ getNotificationInfo
|
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 µµ ÂüÁ¶ÇϽʽÿÀ.