| java.lang.Object javax.management.relation.RoleInfo
RoleInfo | public class RoleInfo implements Serializable(Code) | | A RoleInfo object represents a role information in a relation type.
|
Constructor Summary | |
public | RoleInfo(RoleInfo theRoleInfo) | public | RoleInfo(String theName, String theRefMBeanClassName) | public | RoleInfo(String theName, String theRefMBeanClassName, boolean theIsReadable, boolean theIsWritable) | public | RoleInfo(String theName, String theRefMBeanClassName, boolean theIsReadable, boolean theIsWritable, int theMinDegree, int theMaxDegree, String theDescription) Constructor to create RoleInfo
Parameters: theName - - name of the role Parameters: theRefMBeanClassName - - name of the class of MBean(s) expected tobe referenced in corresponding role Parameters: theIsReadable - - flag to indicate if the corresponding role can be read Parameters: theIsWritable - - flag to indicate if the corresponding role can be set Parameters: theMinDegree - - minimum degree for role, i.e. |
ROLE_CARDINALITY_INFINITY | public static int ROLE_CARDINALITY_INFINITY(Code) | | To specify an unlimited cardinality
|
isReadable | boolean isReadable(Code) | | |
isWritable | boolean isWritable(Code) | | |
RoleInfo | public RoleInfo(String theName, String theRefMBeanClassName, boolean theIsReadable, boolean theIsWritable, int theMinDegree, int theMaxDegree, String theDescription) throws IllegalArgumentException, InvalidRoleInfoException, ClassNotFoundException, NotCompliantMBeanException(Code) | | Constructor to create RoleInfo
Parameters: theName - - name of the role Parameters: theRefMBeanClassName - - name of the class of MBean(s) expected tobe referenced in corresponding role Parameters: theIsReadable - - flag to indicate if the corresponding role can be read Parameters: theIsWritable - - flag to indicate if the corresponding role can be set Parameters: theMinDegree - - minimum degree for role, i.e. minimum number ofMBeans to provide in corresponding role Must be less orequal than theMaxDegree.(ROLE_CARDINALITY_INFINITY for unlimited) Parameters: theMaxDegree - - maximum degree for role, i.e. maximum number ofMBeans to provide in corresponding role Must be greater orequal than theMinDegree(ROLE_CARDINALITY_INFINITY for unlimited) Parameters: theDescription - - description of the role (can be null) throws: java.lang.IllegalArgumentException - - if null parameter throws: InvalidRoleInfoException - - if the minimum degree is greater thanthe maximum degree. throws: java.lang.ClassNotFoundException - - if the classtheRefMBeanClassName does not exist. throws: NotCompliantMBeanException - - if the classtheRefMBeanClassName is not a MBean class. |
checkMaxDegree | public boolean checkMaxDegree(int theValue)(Code) | | Returns a boolean to specify if given value is less or equal than
expected maximum degree (true if yes)
Parameters: theValue - - value true if less or equal than maximum degree, false else |
checkMinDegree | public boolean checkMinDegree(int theValue)(Code) | | Returns a boolean to specify if given value is greater or equal than
expected minimum degree (true if yes)
Parameters: theValue - - value true if greater or equal than minimum degree, false else |
getDescription | public String getDescription()(Code) | | Returns description text for the role
Description text for the role |
getMaxDegree | public int getMaxDegree()(Code) | | Returns maximum degree for corresponding role reference
Maximum degree for corresponding role reference |
getMinDegree | public int getMinDegree()(Code) | | Returns minimum degree for corresponding role reference
Minimum degree for corresponding role reference |
getName | public String getName()(Code) | | Returns the name of the role
The name of the role |
getRefMBeanClassName | public String getRefMBeanClassName()(Code) | | Returns name of class of MBean expected to be referenced in corresponding role
The string representation of name of class of MBean expected tobe referenced in corresponding role |
isReadable | public boolean isReadable()(Code) | | Returns read access mode for the role (true if it is readable)
True if it is readable otherwise false |
isWritable | public boolean isWritable()(Code) | | Returns write access mode for the role (true if it is writable)
True if it is writable otherwise false |
toString | public String toString()(Code) | | Prints a string describing the role info
Overrides:
toString in class java.lang.Object
String representation of the role info |
|
|