javax.management.relation
Class RoleStatus

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.management.relation.RoleStatus

public class RoleStatus
extends Object sample code for java.lang.Object definition code for java.lang.Object

This class describes the various problems which can be encountered when accessing a role.

Since:
1.5

Field Summary
static int LESS_THAN_MIN_ROLE_DEGREE sample code for javax.management.relation.RoleStatus.LESS_THAN_MIN_ROLE_DEGREE definition code for javax.management.relation.RoleStatus.LESS_THAN_MIN_ROLE_DEGREE
          Problem type when trying to set a role value with less ObjectNames than the minimum expected cardinality.
static int MORE_THAN_MAX_ROLE_DEGREE sample code for javax.management.relation.RoleStatus.MORE_THAN_MAX_ROLE_DEGREE definition code for javax.management.relation.RoleStatus.MORE_THAN_MAX_ROLE_DEGREE
          Problem type when trying to set a role value with more ObjectNames than the maximum expected cardinality.
static int NO_ROLE_WITH_NAME sample code for javax.management.relation.RoleStatus.NO_ROLE_WITH_NAME definition code for javax.management.relation.RoleStatus.NO_ROLE_WITH_NAME
          Problem type when trying to access an unknown role.
static int REF_MBEAN_NOT_REGISTERED sample code for javax.management.relation.RoleStatus.REF_MBEAN_NOT_REGISTERED definition code for javax.management.relation.RoleStatus.REF_MBEAN_NOT_REGISTERED
          Problem type when trying to set a role value including the ObjectName of a MBean not registered in the MBean Server.
static int REF_MBEAN_OF_INCORRECT_CLASS sample code for javax.management.relation.RoleStatus.REF_MBEAN_OF_INCORRECT_CLASS definition code for javax.management.relation.RoleStatus.REF_MBEAN_OF_INCORRECT_CLASS
          Problem type when trying to set a role value including the ObjectName of a MBean not of the class expected for that role.
static int ROLE_NOT_READABLE sample code for javax.management.relation.RoleStatus.ROLE_NOT_READABLE definition code for javax.management.relation.RoleStatus.ROLE_NOT_READABLE
          Problem type when trying to read a non-readable attribute.
static int ROLE_NOT_WRITABLE sample code for javax.management.relation.RoleStatus.ROLE_NOT_WRITABLE definition code for javax.management.relation.RoleStatus.ROLE_NOT_WRITABLE
          Problem type when trying to update a non-writable attribute.
 
Constructor Summary
RoleStatus sample code for javax.management.relation.RoleStatus.RoleStatus() definition code for javax.management.relation.RoleStatus.RoleStatus() ()
           
 
Method Summary
static boolean isRoleStatus sample code for javax.management.relation.RoleStatus.isRoleStatus(int) definition code for javax.management.relation.RoleStatus.isRoleStatus(int) (int theRoleStatus)
          Returns true if given value corresponds to a known role status, false otherwise.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

NO_ROLE_WITH_NAME sample code for javax.management.relation.RoleStatus.NO_ROLE_WITH_NAME

public static final int NO_ROLE_WITH_NAME
Problem type when trying to access an unknown role.

See Also:
Constant Field Values

ROLE_NOT_READABLE sample code for javax.management.relation.RoleStatus.ROLE_NOT_READABLE

public static final int ROLE_NOT_READABLE
Problem type when trying to read a non-readable attribute.

See Also:
Constant Field Values

ROLE_NOT_WRITABLE sample code for javax.management.relation.RoleStatus.ROLE_NOT_WRITABLE

public static final int ROLE_NOT_WRITABLE
Problem type when trying to update a non-writable attribute.

See Also:
Constant Field Values

LESS_THAN_MIN_ROLE_DEGREE sample code for javax.management.relation.RoleStatus.LESS_THAN_MIN_ROLE_DEGREE

public static final int LESS_THAN_MIN_ROLE_DEGREE
Problem type when trying to set a role value with less ObjectNames than the minimum expected cardinality.

See Also:
Constant Field Values

MORE_THAN_MAX_ROLE_DEGREE sample code for javax.management.relation.RoleStatus.MORE_THAN_MAX_ROLE_DEGREE

public static final int MORE_THAN_MAX_ROLE_DEGREE
Problem type when trying to set a role value with more ObjectNames than the maximum expected cardinality.

See Also:
Constant Field Values

REF_MBEAN_OF_INCORRECT_CLASS sample code for javax.management.relation.RoleStatus.REF_MBEAN_OF_INCORRECT_CLASS

public static final int REF_MBEAN_OF_INCORRECT_CLASS
Problem type when trying to set a role value including the ObjectName of a MBean not of the class expected for that role.

See Also:
Constant Field Values

REF_MBEAN_NOT_REGISTERED sample code for javax.management.relation.RoleStatus.REF_MBEAN_NOT_REGISTERED

public static final int REF_MBEAN_NOT_REGISTERED
Problem type when trying to set a role value including the ObjectName of a MBean not registered in the MBean Server.

See Also:
Constant Field Values
Constructor Detail

RoleStatus sample code for javax.management.relation.RoleStatus() definition code for javax.management.relation.RoleStatus()

public RoleStatus()
Method Detail

isRoleStatus sample code for javax.management.relation.RoleStatus.isRoleStatus(int) definition code for javax.management.relation.RoleStatus.isRoleStatus(int)

public static boolean isRoleStatus(int theRoleStatus)
Returns true if given value corresponds to a known role status, false otherwise.

Parameters:
theRoleStatus - a status code.
Returns:
true if this value is a known role status.