|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.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 (src) other)
Copies the role info. |
|
RoleInfo(java.lang.String name,
java.lang.String className)
Construct a role info with the given name and class name. |
|
RoleInfo(java.lang.String name,
java.lang.String className,
boolean readable,
boolean writable)
Construct a role info with the given name, class name and read/write attributes. |
|
RoleInfo(java.lang.String name,
java.lang.String className,
boolean readable,
boolean writable,
int minDegree,
int maxDegree,
java.lang.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. |
java.lang.String |
getDescription()
Retrieve the description of the role. |
int |
getMaxDegree()
Retrieve the maximum degree. |
int |
getMinDegree()
Retrieve the minimum degree. |
java.lang.String |
getName()
Retrieve the name of the role. |
java.lang.String |
getRefMBeanClassName()
Retrieve the class name of MBeans in this role. |
boolean |
isReadable()
Retrieve the readable attribute. |
boolean |
isWritable()
Retrieve the writable attribute. |
java.lang.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 (src) other) throws java.lang.IllegalArgumentException
other
- the role to copy.
java.lang.IllegalArgumentException
- for a null value.public RoleInfo(java.lang.String name, java.lang.String className) throws java.lang.IllegalArgumentException, java.lang.ClassNotFoundException, NotCompliantMBeanException (src)
name
- the name of the role.className
- the name of the MBean class.
java.lang.IllegalArgumentException
- for a null value.
java.lang.ClassNotFoundException
- when the className does not exist.
NotCompliantMBeanException (src)
- when the className is not an
mbean class.public RoleInfo(java.lang.String name, java.lang.String className, boolean readable, boolean writable) throws java.lang.IllegalArgumentException, java.lang.ClassNotFoundException, NotCompliantMBeanException (src)
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.
java.lang.IllegalArgumentException
- for a null value.
java.lang.ClassNotFoundException
- when the className does not exist.
NotCompliantMBeanException (src)
- when the className is not an
mbean class.public RoleInfo(java.lang.String name, java.lang.String className, boolean readable, boolean writable, int minDegree, int maxDegree, java.lang.String description) throws java.lang.IllegalArgumentException, java.lang.ClassNotFoundException, NotCompliantMBeanException (src) , InvalidRoleInfoException (src)
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.
java.lang.IllegalArgumentException
- for a null value.
java.lang.ClassNotFoundException
- when the className does not exist.
NotCompliantMBeanException (src)
- when the className is not an
mbean class.
InvalidRoleInfoException (src)
- 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 java.lang.String getDescription()
public int getMinDegree()
public int getMaxDegree()
public java.lang.String getName()
public java.lang.String getRefMBeanClassName()
public boolean isReadable()
public boolean isWritable()
public java.lang.String toString()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |