public void destroy() { try { conn.close(); } catch (Exception e) { RpcCommunicator.instance().getLogger().error(e.getMessage()); } }
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; }