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
作者:
无花

构造方法摘要
ConnectionUtil()
           
 
方法摘要
static MonitorResult getConnectedCount(String ip, String toString, String user, String password)
           
static String getConnectionInfo(String ip, int port, String user, String password)
           分组统计连接到指定端口的客户端ip连接数
static boolean IsConnected(String ip, String toString, String user, String password)
           
static void main(String[] args)
           
 
从类 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.