javax.management.relation
Class RoleUnresolvedjava.lang.Object | +--javax.management.relation.RoleUnresolved
- public class RoleUnresolved
- extends java.lang.Object
- implements java.io.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).
- Version:
- 1.7
- Author:
- Cosimo Vampo
- See Also:
- Serialized Form
Constructor Summary
RoleUnresolved(java.lang.String theRoleName, java.util.List theRoleValue, int thePbType)
Constructor
Method Summary
java.lang.Object clone()
Cloneint getProblemType()
Retrieves problem typejava.lang.String getRoleName()
Retrieves role namejava.util.List getRoleValue()
Retrieves role valuevoid setProblemType(int thePbType)
Sets problem typevoid setRoleName(java.lang.String theRoleName)
Sets role namevoid setRoleValue(java.util.List theRoleValue)
Sets role valuejava.lang.String toString()
Prints a string describing the role
Methods inherited from class java.lang.Object equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Constructor Detail
RoleUnresolved
public RoleUnresolved(java.lang.String theRoleName, java.util.List theRoleValue, int thePbType) throws java.lang.IllegalArgumentException
- Constructor
Parameters:
- theRoleName - name of the role
- theRoleValue - value of the role (if problem when setting the role)
- thePbType - type of problem (according to known problem types, listed as static final members).
Throws:
- java.lang.IllegalArgumentException - if null parameter or incorrect problem type
Method Detail
clone
public java.lang.Object clone()
- Clone
- Overrides:
- clone in class java.lang.Object
Returns:
- an independent clone
getProblemType
public int getProblemType()
- Retrieves problem type
Returns:
- an integer corresponding to a problem, those being described as static final members of current class.
getRoleName
public java.lang.String getRoleName()
- Retrieves role name
getRoleValue
public java.util.List 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.
setProblemType
public void setProblemType(int thePbType) throws java.lang.IllegalArgumentException
- Sets problem type
Parameters:
- thePbType - integer corresponding to a problem. Must be one of those described as static final members of current class.
Throws:
- java.lang.IllegalArgumentException - if incorrect problem type
setRoleName
public void setRoleName(java.lang.String theRoleName) throws java.lang.IllegalArgumentException
- Sets role name
Throws:
- java.lang.IllegalArgumentException - if null parameter
setRoleValue
public void setRoleValue(java.util.List theRoleValue)
- Sets role value
Parameters:
- theRoleValue - ArrayList of ObjectName objects for referenced MBeans not set in role.
toString
public java.lang.String toString()
- Prints a string describing the role
- Overrides:
- toString in class java.lang.Object