| 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.
author: Young Yang |
Constructor Summary | |
public | RoleInfo(String name, String refMBeanClassName, boolean readable, boolean writable, int minDegree, int maxDegree, String description) Constructor
Parameters: name - name of the role Parameters: refMBeanClassName - name of the class of MBean(s) expected tobe referenced in corresponding role Parameters: readable - flag to indicate if the corresponding rolecan be read Parameters: writable - flag to indicate if the corresponding rolecan be set Parameters: minDegree - minimum degree for role, i.e. | public | RoleInfo(String name, String refMBeanClassName, boolean readable, boolean writable) | public | RoleInfo(String theName, String theRefMBeanClassName) | public | RoleInfo(RoleInfo roleInfo) |
ROLE_CARDINALITY_INFINITY | final public static int ROLE_CARDINALITY_INFINITY(Code) | | To specify an unlimited cardinality, -1
|
RoleInfo | public RoleInfo(String name, String refMBeanClassName, boolean readable, boolean writable, int minDegree, int maxDegree, String description) throws IllegalArgumentException, InvalidRoleInfoException, ClassNotFoundException, NotCompliantMBeanException(Code) | | Constructor
Parameters: name - name of the role Parameters: refMBeanClassName - name of the class of MBean(s) expected tobe referenced in corresponding role Parameters: readable - flag to indicate if the corresponding rolecan be read Parameters: writable - flag to indicate if the corresponding rolecan be set Parameters: minDegree - minimum degree for role, i.e. minimum number ofMBeans to provide in corresponding roleMust be less or equal than maxDegree.(ROLE_CARDINALITY_INFINITY for unlimited) Parameters: maxDegree - maximum degree for role, i.e. maximum number ofMBeans to provide in corresponding roleMust be greater or equal than minDegree(ROLE_CARDINALITY_INFINITY for unlimited) Parameters: description - description of the role (can be null) exception: IllegalArgumentException - if null parameter exception: InvalidRoleInfoException - if the minimum degree isgreater than the maximum degree. exception: ClassNotFoundException - if the class refMBeanClassNamedoes not exist. exception: NotCompliantMBeanException - if the class refMBeanClassNameis not a MBean class. |
checkMaxDegree | public boolean checkMaxDegree(int value)(Code) | | Returns a boolean to specify if given value is less or equal than
expected maximum degree (true if yes)
Parameters: value - value true if less or equal than maximum degree, false else |
checkMinDegree | public boolean checkMinDegree(int value)(Code) | | Returns a boolean to specify if given value is greater or equal than
expected minimum degree (true if yes)
Parameters: value - value true if greater or equal than minimum degree, false else |
getDescription | public String getDescription()(Code) | | Returns description text for the role
|
getMaxDegree | public int getMaxDegree()(Code) | | Returns maximum degree for corresponding role reference
|
getMinDegree | public int getMinDegree()(Code) | | Returns minimum degree for corresponding role reference
|
getName | public String getName()(Code) | | Returns the name of the role
|
getRefMBeanClassName | public String getRefMBeanClassName()(Code) | | Returns name of class of MBean expected to be referenced in
corresponding role
|
isReadable | public boolean isReadable()(Code) | | Returns read access mode for the role (true if it is readable)
|
isWritable | public boolean isWritable()(Code) | | Returns write access mode for the role (true if it is writable)
|
toString | public String toString()(Code) | | Prints a string describing the role info
|
|
|