Package org.jboss.ejb.client
Class NodeAffinity
- java.lang.Object
-
- org.jboss.ejb.client.Affinity
-
- org.jboss.ejb.client.NodeAffinity
-
- All Implemented Interfaces:
Serializable
public final class NodeAffinity extends Affinity
A single node affinity specification.- Author:
- David M. Lloyd
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.jboss.ejb.client.Affinity
LOCAL, NONE, WEAK_AFFINITY_CONTEXT_KEY
-
-
Constructor Summary
Constructors Constructor Description NodeAffinity(String nodeName)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
boolean
equals(Affinity other)
boolean
equals(NodeAffinity other)
String
getNodeName()
Get the associated node name.URI
getUri()
Get the associated URI.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
NodeAffinity
public NodeAffinity(String nodeName)
Construct a new instance.- Parameters:
nodeName
- the associated node name (must not benull
)
-
-
Method Detail
-
getNodeName
public String getNodeName()
Get the associated node name.- Returns:
- the associated node name
-
equals
public boolean equals(NodeAffinity other)
-
-