Package net.sf.ehcache.terracotta
Class DisconnectedClusterNode
- java.lang.Object
-
- net.sf.ehcache.terracotta.DisconnectedClusterNode
-
- All Implemented Interfaces:
ClusterNode
public class DisconnectedClusterNode extends java.lang.Object implements ClusterNode
ClusterNode which copies a disconnected ClusterNode without keeping any reference to the original one.- Author:
- Ludovic Orban
-
-
Constructor Summary
Constructors Constructor Description DisconnectedClusterNode(ClusterNode node)Constructor accepting the disconnected node
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetHostname()Get the host name of the nodejava.lang.StringgetId()Get a unique (per cluster) identifier for this node.java.lang.StringgetIp()Get the IP address of the node
-
-
-
Constructor Detail
-
DisconnectedClusterNode
public DisconnectedClusterNode(ClusterNode node)
Constructor accepting the disconnected node- Parameters:
node- the node to copy
-
-
Method Detail
-
getId
public java.lang.String getId()
Get a unique (per cluster) identifier for this node.- Specified by:
getIdin interfaceClusterNode- Returns:
- Unique per cluster identifier
-
getHostname
public java.lang.String getHostname()
Get the host name of the node- Specified by:
getHostnamein interfaceClusterNode- Returns:
- Host name of node
-
getIp
public java.lang.String getIp()
Get the IP address of the node- Specified by:
getIpin interfaceClusterNode- Returns:
- IP address of node
-
-