|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.relation.RoleInfo
This class contains information about a role. For example the number of mbean class name of the role, how many mbeans are part of the role, whether the role is read/write, etc.
Field Summary | |
static int |
ROLE_CARDINALITY_INFINITY
A value used to specify an infinite number of mbeans are allowed in the role |
Constructor Summary | |
RoleInfo(RoleInfo other)
Copies the role info. |
|
RoleInfo(String name,
String className)
Construct a role info with the given name and class name. |
|
RoleInfo(String name,
String className,
boolean readable,
boolean writable)
Construct a role info with the given name, class name and read/write attributes. |
|
RoleInfo(String name,
String className,
boolean readable,
boolean writable,
int minDegree,
int maxDegree,
String description)
Construct a role info with the given name, class name, read/write attributes, minimum/maximum degree and description. |
Method Summary | |
boolean |
checkMaxDegree(int value)
Check to see whether a given value is less than or equal to the maximum degree. |
boolean |
checkMinDegree(int value)
Check to see whether a given value is greater than or equal to the minimum degree. |
String |
getDescription()
Retrieve the description of the role. |
int |
getMaxDegree()
Retrieve the maximum degree. |
int |
getMinDegree()
Retrieve the minimum degree. |
String |
getName()
Retrieve the name of the role. |
String |
getRefMBeanClassName()
Retrieve the class name of MBeans in this role. |
boolean |
isReadable()
Retrieve the readable attribute. |
boolean |
isWritable()
Retrieve the writable attribute. |
String |
toString()
Retrieve a string description of the role info. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static int ROLE_CARDINALITY_INFINITY
Constructor Detail |
public RoleInfo(RoleInfo other) throws IllegalArgumentException
other
- the role to copy.
IllegalArgumentException
- for a null value.public RoleInfo(String name, String className) throws IllegalArgumentException, ClassNotFoundException, NotCompliantMBeanException
name
- the name of the role.className
- the name of the MBean class.
IllegalArgumentException
- for a null value.
ClassNotFoundException
- when the className does not exist.
NotCompliantMBeanException
- when the className is not an
mbean class.public RoleInfo(String name, String className, boolean readable, boolean writable) throws IllegalArgumentException, ClassNotFoundException, NotCompliantMBeanException
name
- the name of the role.className
- the name of the MBean class.readable
- true for readable, false otherwise.writable
- true for writable, false otherwise.
IllegalArgumentException
- for a null value.
ClassNotFoundException
- when the className does not exist.
NotCompliantMBeanException
- when the className is not an
mbean class.public RoleInfo(String name, String className, boolean readable, boolean writable, int minDegree, int maxDegree, String description) throws IllegalArgumentException, ClassNotFoundException, NotCompliantMBeanException, InvalidRoleInfoException
Pass ROLE_CARDINALITY_INFINITY for an unlimited degree. The minimum must be less than or equal to the maximum.
name
- the name of the role.className
- the name of the MBean class.readable
- true for readable, false otherwise.writable
- true for writable, false otherwise.minDegree
- the minimum degree.maxDegree
- the maximum degree.description
- the description.
IllegalArgumentException
- for a null value.
ClassNotFoundException
- when the className does not exist.
NotCompliantMBeanException
- when the className is not an
mbean class.
InvalidRoleInfoException
- when the minimum degree is
greater than the maximum.Method Detail |
public boolean checkMinDegree(int value)
value
- the value to check.
public boolean checkMaxDegree(int value)
value
- the value to check.
public String getDescription()
public int getMinDegree()
public int getMaxDegree()
public String getName()
public String getRefMBeanClassName()
public boolean isReadable()
public boolean isWritable()
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |