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:
  • Constructor Details

    • NodeAffinity

      public NodeAffinity(String nodeName)
      Construct a new instance.
      Parameters:
      nodeName - the associated node name (must not be null)
  • Method Details

    • getNodeName

      public String getNodeName()
      Get the associated node name.
      Returns:
      the associated node name
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getUri

      public URI getUri()
      Description copied from class: Affinity
      Get the associated URI.
      Specified by:
      getUri in class Affinity
      Returns:
      the associated URI (not null)
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Affinity
    • equals

      public boolean equals(Affinity other)
      Specified by:
      equals in class Affinity
    • equals

      public boolean equals(NodeAffinity other)
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class Affinity