Constructor.
-
Parameters:
-
roleName - name of the role.
-
mbeanClassName - name of the class of MBean(s) expected to be referenced in corresponding role. If an MBean M is in this role, then the MBean server must return true for isInstanceOf(M, mbeanClassName) .
-
read - flag to indicate if the corresponding role can be read
-
write - flag to indicate if the corresponding role can be set
-
min - minimum degree for role, i.e. minimum number of MBeans to provide in corresponding role Must be less than or equal to max . (ROLE_CARDINALITY_INFINITY for unlimited)
-
max - maximum degree for role, i.e. maximum number of MBeans to provide in corresponding role Must be greater than or equal to min (ROLE_CARDINALITY_INFINITY for unlimited)
-
descr - description of the role (can be null)
-
Throws:
-
IllegalArgumentException - if null parameter
-
InvalidRoleInfoException - if the minimum degree is greater than the maximum degree.
-
ClassNotFoundException - As of JMX 1.2, this exception can no longer be thrown. It is retained in the declaration of this class for compatibility with existing code.
-
NotCompliantMBeanException - if the class mbeanClassName is not a MBean class.
|
|