org.terracotta.cluster
Class TerracottaNode

java.lang.Object
  extended by org.terracotta.cluster.TerracottaNode
All Implemented Interfaces:
ClusterNode

public class TerracottaNode
extends Object
implements ClusterNode


Method Summary
 boolean equals(Object obj)
           
 InetAddress getAddress()
          Returns the IP address of the node.
 String getId()
          Returns the unique string identifier that corresponds to the node.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getId

public String getId()
Description copied from interface: ClusterNode
Returns the unique string identifier that corresponds to the node.

This identifier is unique for the life-time of the cluster. However, if the cluster is completely shut down and brought back up again, these identifiers might be recycled.

Specified by:
getId in interface ClusterNode
Returns:
string identifier for the node

getAddress

public InetAddress getAddress()
                       throws UnknownHostException
Description copied from interface: ClusterNode
Returns the IP address of the node.

This operation talks back to the server array the first time it's called. The result is cached for further use.

Specified by:
getAddress in interface ClusterNode
Returns:
the IP address of the node
Throws:
UnknownHostException

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2015 Terracotta, Inc.. All Rights Reserved.