|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectml.shifu.guagua.util.NetworkUtils
public final class NetworkUtils
NetworkUtils is used as TCP server or port helper functions.
| 字段摘要 | |
|---|---|
static int |
RETRY_COUNT
Client connection retry count |
static int |
TRY_PORT_COUNT
How many ports will be used to launch embed zookeeper server. |
| 方法摘要 | |
|---|---|
static int |
getValidServerPort(int iniatialPort)
Get valid TCP server port. |
static boolean |
isServerAlive(InetAddress host,
int port)
Check whether a server is alive. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 字段详细信息 |
|---|
public static final int RETRY_COUNT
public static final int TRY_PORT_COUNT
| 方法详细信息 |
|---|
public static boolean isServerAlive(InetAddress host,
int port)
host - the server hostport - the server port
public static int getValidServerPort(int iniatialPort)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||