public class NodeReference extends Object implements Comparable<NodeReference>, Serializable
Modifier and Type | Field and Description |
---|---|
private String |
hostname |
private static String |
HOSTNAME_PREFIX |
static NodeReference |
MASTER_NODE
NodeReference.MASTER_NODE is used in this example as the master node known by the peers to join
the Chord Overlay network
|
private Key |
nodeId |
private static String |
REMOTE_PORT |
private static String |
RESOURCES_PATH |
Constructor and Description |
---|
NodeReference() |
NodeReference(Key nodeId,
String ip) |
NodeReference(String ip) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(NodeReference o) |
boolean |
equals(Object obj) |
String |
getEndpoint() |
String |
getHostname() |
static NodeReference |
getLocal() |
Key |
getNodeId() |
String |
toString() |
public static final NodeReference MASTER_NODE
private static final String HOSTNAME_PREFIX
private static final String REMOTE_PORT
private static final String RESOURCES_PATH
private Key nodeId
private String hostname
public NodeReference(String ip)
public NodeReference()
public static NodeReference getLocal()
public Key getNodeId()
public String getHostname()
public String getEndpoint()
public int compareTo(NodeReference o)
compareTo
in interface Comparable<NodeReference>
Copyright © 2018. All rights reserved.