예제 #1
0
 public void destroy() {
   try {
     conn.close();
   } catch (Exception e) {
     RpcCommunicator.instance().getLogger().error(e.getMessage());
   }
 }
예제 #2
0
 public static ITerminalProxy create(String host, int port, Boolean ssl_enable) {
   int type = RpcConsts.CONNECTION_SOCK;
   if (ssl_enable) type |= RpcConsts.CONNECTION_SSL;
   RpcConnection conn = RpcCommunicator.instance().createConnection(type, host, port);
   ITerminalProxy prx = new ITerminalProxy(conn);
   return prx;
 }