org.terracotta.cluster
Interface ClusterNode

All Known Implementing Classes:
TerracottaNode

public interface ClusterNode

Describes a node in the Terracotta cluster.


Method Summary
 InetAddress getAddress()
          Returns the IP address of the node.
 String getId()
          Returns the unique string identifier that corresponds to the node.
 

Method Detail

getId

String getId()
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.

Returns:
string identifier for the node

getAddress

InetAddress getAddress()
                       throws UnknownHostException
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.

Returns:
the IP address of the node
Throws:
UnknownHostException


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