Top Description Fields Constructors Methods
javax.management.relation

public Class RoleUnresolved

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Annotations
@SuppressWarnings:serial
Static Imports
com.sun.jmx.mbeanserver.Util.cast

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

Field Summary

Modifier and TypeField and Description
private static boolean
private static final ObjectStreamField[]
private static final long
private static final ObjectStreamField[]
private static final long
private int
private String
private List<ObjectName>
private static final ObjectStreamField[]
private static final long

Constructor Summary

AccessConstructor and Description
public
RoleUnresolved(String
name of the role
name
,
List<ObjectName>
value of the role (if problem when setting the role)
value
,
int
type of problem (according to known problem types, listed as static final members).
pbType
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

an independent clone.
clone
()

Overrides java.lang.Object.clone.

Clone this object.
public int

Returns:

an integer corresponding to a problem, those being described as static final members of current class.
getProblemType
()

Retrieves problem type.

public String

Returns:

the role name.
getRoleName
()

Retrieves role name.

public List<ObjectName>

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.
getRoleValue
()

Retrieves role value.

private void
public void
setProblemType(int
integer corresponding to a problem. Must be one of those described as static final members of current class.
pbType
)

Sets problem type.

public void
setRoleName(String
the new role name.
name
)

Sets role name.

public void
setRoleValue(List<ObjectName>
List of ObjectName objects for referenced MBeans not set in role.
value
)

Sets role value.

public String

Returns:

a description of this RoleUnresolved object.
toString
()

Overrides java.lang.Object.toString.

Return a string describing this object.
private void
Inherited from java.lang.Object:
equalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

compatback to summary
private static boolean compat
newSerialPersistentFieldsback to summary
private static final ObjectStreamField[] newSerialPersistentFields
newSerialVersionUIDback to summary
private static final long newSerialVersionUID
oldSerialPersistentFieldsback to summary
private static final ObjectStreamField[] oldSerialPersistentFields
oldSerialVersionUIDback to summary
private static final long oldSerialVersionUID
problemTypeback to summary
private int problemType
roleNameback to summary
private String roleName
roleValueback to summary
private List<ObjectName> roleValue
serialPersistentFieldsback to summary
private static final ObjectStreamField[] serialPersistentFields
Serial Fields:
roleName:String
Role name
roleValue:List
Role value (List of ObjectName objects)
problemType:int
Problem type
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

RoleUnresolvedback to summary
public RoleUnresolved(String name, List<ObjectName> value, int pbType) throws IllegalArgumentException

Constructor.

Parameters
name:String

name of the role

value:List<ObjectName>

value of the role (if problem when setting the role)

pbType:int

type of problem (according to known problem types, listed as static final members).

Exceptions
IllegalArgumentException:
if null parameter or incorrect problem type

Method Detail

cloneback to summary
public Object clone()

Overrides java.lang.Object.clone.

Clone this object.

Returns:Object

an independent clone.

getProblemTypeback to summary
public int getProblemType()

Retrieves problem type.

Returns:int

an integer corresponding to a problem, those being described as static final members of current class.

See Also
setProblemType
getRoleNameback to summary
public String getRoleName()

Retrieves role name.

Returns:String

the role name.

See Also
setRoleName
getRoleValueback to summary
public List<ObjectName> getRoleValue()

Retrieves role value.

Returns:List<ObjectName>

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
setRoleValue
readObjectback to summary
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException

Deserializes a RoleUnresolved from an ObjectInputStream.

setProblemTypeback to summary
public void setProblemType(int pbType) throws IllegalArgumentException

Sets problem type.

Parameters
pbType:int

integer corresponding to a problem. Must be one of those described as static final members of current class.

Exceptions
IllegalArgumentException:
if incorrect problem type
See Also
getProblemType
setRoleNameback to summary
public void setRoleName(String name) throws IllegalArgumentException

Sets role name.

Parameters
name:String

the new role name.

Exceptions
IllegalArgumentException:
if null parameter
See Also
getRoleName
setRoleValueback to summary
public void setRoleValue(List<ObjectName> value)

Sets role value.

Parameters
value:List<ObjectName>

List of ObjectName objects for referenced MBeans not set in role.

See Also
getRoleValue
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Return a string describing this object.

Returns:String

a description of this RoleUnresolved object.

writeObjectback to summary
private void writeObject(ObjectOutputStream out) throws IOException

Serializes a RoleUnresolved to an ObjectOutputStream.