public final class Node extends Object
Modifier and Type | Field and Description |
---|---|
static int |
FIRST_PART |
Constructor and Description |
---|
Node(int node,
String url,
NodeType type) |
Node(long nodeId,
String url,
NodeType type,
short cluster) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
short |
getCluster() |
static String |
getHost(String url) |
String |
getInfo() |
long |
getNodeId() |
NodeType |
getType() |
String |
getUrl() |
int |
hashCode() |
void |
setCluster(short cluster) |
void |
setNodeId(int nodeId) |
void |
setSince(long since) |
void |
setType(NodeType type) |
void |
setUrl(String url) |
byte[] |
toBytes() |
static Node |
toNode(byte[] bytes) |
String |
toString() |
public static final int FIRST_PART
public String getInfo()
public long getNodeId()
public void setNodeId(int nodeId)
public String getUrl()
public void setUrl(String url)
public NodeType getType()
public void setType(NodeType type)
public short getCluster()
public void setCluster(short cluster)
public void setSince(long since)
public byte[] toBytes() throws UnsupportedEncodingException
UnsupportedEncodingException
public static Node toNode(byte[] bytes) throws UnsupportedEncodingException
UnsupportedEncodingException
Copyright © 2016. All rights reserved.