com.taobao.metamorphosis.tools.utils
类 ConnectionUtil
java.lang.Object
com.taobao.metamorphosis.tools.utils.ConnectionUtil
public class ConnectionUtil
- extends Object
- 从以下版本开始:
- 2011-9-29 上午9:56:05
- 作者:
- 无花
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionUtil
public ConnectionUtil()
getConnectedCount
public static MonitorResult getConnectedCount(String ip,
String toString,
String user,
String password)
IsConnected
public static boolean IsConnected(String ip,
String toString,
String user,
String password)
getConnectionInfo
public static String getConnectionInfo(String ip,
int port,
String user,
String password)
分组统计连接到指定端口的客户端ip连接数
- 参数:
ip
- port
- user
- password
-
- 返回:
- 3 10.232.101.45
2 10.13.44.24
1 10.32.100.151
1 10.32.100.133
1 10.32.100.131
1 10.232.37.54
main
public static void main(String[] args)
Copyright © 2010–2013. All rights reserved.