public class RoleUnresolved extends Object implements 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
.
public RoleUnresolved(String name, List<ObjectName> value, int pbType) throws IllegalArgumentException
Constructor.
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).IllegalArgumentException
- if null parameter or incorrect problem typepublic String getRoleName()
Retrieves role name.
setRoleName(java.lang.String)
public List<ObjectName> getRoleValue()
Retrieves role value.
setRoleValue(java.util.List<javax.management.ObjectName>)
public int getProblemType()
Retrieves problem type.
setProblemType(int)
public void setRoleName(String name) throws IllegalArgumentException
Sets role name.
name
- the new role name.IllegalArgumentException
- if null parametergetRoleName()
public void setRoleValue(List<ObjectName> value)
Sets role value.
value
- List of ObjectName objects for referenced MBeans not set in role.getRoleValue()
public void setProblemType(int pbType) throws IllegalArgumentException
Sets problem type.
pbType
- integer corresponding to a problem. Must be one of those described as static final members of current class.IllegalArgumentException
- if incorrect problem typegetProblemType()
public Object clone()
Clone this object.
public String toString()
Return a string describing this object.
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.