Class RoleStatus
java.lang.Object
javax.management.relation.RoleStatus
This class describes the various problems which can be encountered when
accessing a role.
- Since:
- 1.5
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intProblem type when trying to set a role value with less ObjectNames than the minimum expected cardinality.static final intProblem type when trying to set a role value with more ObjectNames than the maximum expected cardinality.static final intProblem type when trying to access an unknown role.static final intProblem type when trying to set a role value including the ObjectName of a MBean not registered in the MBean Server.static final intProblem type when trying to set a role value including the ObjectName of a MBean not of the class expected for that role.static final intProblem type when trying to read a non-readable attribute.static final intProblem type when trying to update a non-writable attribute. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisRoleStatus(int status) Returns true if given value corresponds to a known role status, false otherwise.Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()Answers a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.booleanCompares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.protected voidfinalize()Deprecated, for removal: This API element is subject to removal in a future version.May cause performance issues, deadlocks and hangs.getClass()Answers the unique instance of java.lang.Class which represents the class of the receiver.inthashCode()Answers an integer hash code for the receiver.final voidnotify()Causes one thread which iswaiting on the receiver to be made ready to run.final voidCauses all threads which arewaiting on the receiver to be made ready to run.toString()Answers a string containing a concise, human-readable description of the receiver.final voidwait()Causes the thread which sent this message to be made not ready to run pending some change in the receiver (as indicated bynotifyornotifyAll).final voidwait(long time) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.final voidwait(long time, int frac) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.
-
Field Details
-
NO_ROLE_WITH_NAME
public static final int NO_ROLE_WITH_NAMEProblem type when trying to access an unknown role.- See Also:
-
ROLE_NOT_READABLE
public static final int ROLE_NOT_READABLEProblem type when trying to read a non-readable attribute.- See Also:
-
ROLE_NOT_WRITABLE
public static final int ROLE_NOT_WRITABLEProblem type when trying to update a non-writable attribute.- See Also:
-
LESS_THAN_MIN_ROLE_DEGREE
public static final int LESS_THAN_MIN_ROLE_DEGREEProblem type when trying to set a role value with less ObjectNames than the minimum expected cardinality.- See Also:
-
MORE_THAN_MAX_ROLE_DEGREE
public static final int MORE_THAN_MAX_ROLE_DEGREEProblem type when trying to set a role value with more ObjectNames than the maximum expected cardinality.- See Also:
-
REF_MBEAN_OF_INCORRECT_CLASS
public static final int REF_MBEAN_OF_INCORRECT_CLASSProblem type when trying to set a role value including the ObjectName of a MBean not of the class expected for that role.- See Also:
-
REF_MBEAN_NOT_REGISTERED
public static final int REF_MBEAN_NOT_REGISTEREDProblem type when trying to set a role value including the ObjectName of a MBean not registered in the MBean Server.- See Also:
-
-
Constructor Details
-
RoleStatus
Deprecated, for removal: This API element is subject to removal in a future version.Do not call.
-
-
Method Details
-
isRoleStatus
public static boolean isRoleStatus(int status) Returns true if given value corresponds to a known role status, false otherwise.- Parameters:
status- a status code.- Returns:
- true if this value is a known role status.
-