Examples of SocketPoolProfile


Examples of com.bj58.spat.gaea.client.configuration.commmunication.SocketPoolProfile

        config.serviceid = Integer.parseInt(idNode.getNodeValue());
        Node xnSocketPool = (Node) xpath.evaluate("Commmunication/SocketPool", serviceNode, XPathConstants.NODE);
        if(xnSocketPool == null){
          printExceprion(1,serviceName);
        }
        config.SocketPool = new SocketPoolProfile(xnSocketPool);

        Node xnProtocol = (Node) xpath.evaluate("Commmunication/Protocol", serviceNode, XPathConstants.NODE);
        if(xnProtocol == null){
          printExceprion(2,serviceName);
        }
View Full Code Here

Examples of com.bj58.spat.gaea.client.configuration.commmunication.SocketPoolProfile

    GaeaInit.init("e:/gaea.config");
    ServiceConfig serviceConfig = ServiceConfig.GetConfig(serviceName);
    System.out.println("servicename is "+serviceConfig.getServicename());
    System.out.println("serviceid is "+serviceConfig.getServiceid());
   
    SocketPoolProfile socketPoolProfile = serviceConfig.getSocketPool();
    System.out.println("bufferSize "+socketPoolProfile.getBufferSize());
    System.out.println("ConnectionTimeout "+socketPoolProfile.getConnectionTimeout());
    System.out.println("MaxPakageSize "+socketPoolProfile.getMaxPakageSize());
    System.out.println("MaxPoolSize "+socketPoolProfile.getMaxPoolSize());
    System.out.println("MinPoolSize "+socketPoolProfile.getMinPoolSize());
    System.out.println("ReceiveTimeout "+socketPoolProfile.getReceiveTimeout());
    System.out.println("RecvBufferSize "+socketPoolProfile.getRecvBufferSize());
    System.out.println("ReconnectTime "+socketPoolProfile.getReconnectTime());
    System.out.println("SendBufferSize "+socketPoolProfile.getSendBufferSize());
    System.out.println("SendTimeout "+socketPoolProfile.getSendTimeout());
    System.out.println("ShrinkInterval "+socketPoolProfile.getShrinkInterval());
    System.out.println("WaitTimeout "+socketPoolProfile.getWaitTimeout());
   
    List<ServerProfile> list = serviceConfig.getServers();
    for(ServerProfile serverProfile: list){
      System.out.println("name:"+serverProfile.getName()+"host:"+serverProfile.getHost()+"port"+serverProfile.getPort()+"DeadTimeout:"+serverProfile.getDeadTimeout());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.