Class RoleUnresolved
java.lang.Object
javax.management.relation.RoleUnresolved
- All Implemented Interfaces:
Serializable
Represents an unresolved role: a role not retrieved from a relation due
to a problem. It provides the role name, value (if problem when trying to
set the role) and an integer defining the problem (constants defined in
RoleStatus).
The serialVersionUID of this class is -48350262537070138L.
- Since:
- 1.5
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRoleUnresolved(String name, List<ObjectName> value, int pbType) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clone this object.intRetrieves problem type.Retrieves role name.Retrieves role value.voidsetProblemType(int pbType) Sets problem type.voidsetRoleName(String name) Sets role name.voidsetRoleValue(List<ObjectName> value) Sets role value.toString()Return a string describing this object.Methods declared in class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitModifier and TypeMethodDescriptionbooleanCompares 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.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.
-
Constructor Details
-
RoleUnresolved
public RoleUnresolved(String name, List<ObjectName> value, int pbType) throws IllegalArgumentException Constructor.- Parameters:
name- name of the rolevalue- value of the role (if problem when setting the role)pbType- type of problem (according to known problem types, listed as static final members).- Throws:
IllegalArgumentException- if null parameter or incorrect problem type
-
-
Method Details
-
getRoleName
-
getRoleValue
Retrieves role value.- Returns:
- an ArrayList of ObjectName objects, the one provided to be set in given role. Null if the unresolved role is returned for a read access.
- See Also:
-
getProblemType
public int getProblemType()Retrieves problem type.- Returns:
- an integer corresponding to a problem, those being described as static final members of current class.
- See Also:
-
setRoleName
Sets role name.- Parameters:
name- the new role name.- Throws:
IllegalArgumentException- if null parameter- See Also:
-
setRoleValue
Sets role value.- Parameters:
value- List of ObjectName objects for referenced MBeans not set in role.- See Also:
-
setProblemType
Sets problem type.- Parameters:
pbType- integer corresponding to a problem. Must be one of those described as static final members of current class.- Throws:
IllegalArgumentException- if incorrect problem type- See Also:
-
clone
-
toString
-