public final class Node extends Object implements Comparable<Node>, Serializable
Modifier and Type | Field and Description |
---|---|
static String |
CENTRAL_NODE |
static String |
CEP_NODE |
Constructor and Description |
---|
Node() |
Node(String nodeName,
int weight) |
Node(String ip,
String port,
String nodeName,
int weight) |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkEquals(String firstNodeString,
String secondNodeString) |
int |
compareTo(Node node)
比较节点名称
|
boolean |
equals(Object object)
比较节点名称
|
String |
getIp() |
String |
getNodeName() |
String |
getPort() |
List<ServiceInfo> |
getServiceInfos() |
String |
getType() |
int |
getWeight() |
int |
hashCode() |
void |
setIp(String ip) |
void |
setNodeName(String nodeName) |
void |
setPort(String port) |
void |
setServiceInfos(List<ServiceInfo> serviceInfos) |
void |
setType(String type) |
void |
setWeight(int weight) |
String |
toString() |
public static final String CEP_NODE
public static final String CENTRAL_NODE
public Node()
public Node(String nodeName, int weight)
public String getType()
public void setType(String type)
public List<ServiceInfo> getServiceInfos()
public void setServiceInfos(List<ServiceInfo> serviceInfos)
public String getIp()
public void setIp(String ip)
public String getPort()
public void setPort(String port)
public int getWeight()
public void setWeight(int weight)
public String getNodeName()
public void setNodeName(String nodeName)
public int compareTo(Node node)
compareTo
in interface Comparable<Node>
Copyright © 2006–2018 TinyGroup. All rights reserved.