public class ServerNode extends Object
| 构造器和说明 |
|---|
ServerNode(String ip,
int port) |
ServerNode(String ip,
int port,
String ext) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object other) |
static ServerNode |
fromParts(String host,
int port)
获取ServerNode
|
String |
genAddress()
生成服务地址
Server端:ip:port Client端:ip:port:i_节点序列号 |
String |
getExt()
getter method
|
String |
getIp()
getter method
|
int |
getPort()
getter method
|
int |
hashCode() |
void |
setExt(String ext)
setter method
|
void |
setIp(String ip)
setter method
|
void |
setPort(int port)
setter method
|
String |
toString() |
public ServerNode(String ip, int port)
ip - port - public static ServerNode fromParts(String host, int port)
host - port - ServerNodepublic String genAddress()
public int getPort()
portpublic void setPort(int port)
port - the port to setportCopyright © 2015 Baifendian Corporation. All rights reserved.