ehcache

net.sf.ehcache.terracotta
Class DisconnectedClusterNode

java.lang.Object
  extended by net.sf.ehcache.terracotta.DisconnectedClusterNode
All Implemented Interfaces:
ClusterNode

public class DisconnectedClusterNode
extends Object
implements ClusterNode

ClusterNode which copies a disconnected ClusterNode without keeping any reference to the original one.

Author:
Ludovic Orban

Constructor Summary
DisconnectedClusterNode(ClusterNode node)
          Constructor accepting the disconnected node
 
Method Summary
 String getHostname()
          Get the host name of the node
 String getId()
          Get a unique (per cluster) identifier for this node.
 String getIp()
          Get the IP address of the node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisconnectedClusterNode

public DisconnectedClusterNode(ClusterNode node)
Constructor accepting the disconnected node

Parameters:
node - the node to copy
Method Detail

getId

public String getId()
Get a unique (per cluster) identifier for this node.

Specified by:
getId in interface ClusterNode
Returns:
Unique per cluster identifier

getHostname

public String getHostname()
Get the host name of the node

Specified by:
getHostname in interface ClusterNode
Returns:
Host name of node

getIp

public String getIp()
Get the IP address of the node

Specified by:
getIp in interface ClusterNode
Returns:
IP address of node

ehcache

Copyright 2001-2017, Terracotta, Inc.