private void connect(InetSocketAddress addr) throws IOException { try { client = new ProtoBlockingRpcClient(ClientProtocol.class, addr); service = client.getStub(); } catch (Exception e) { throw new IOException(e); } LOG.info("connected to tajo cluster (" + tajo.util.NetUtils.getIpPortString(addr) + ")"); }
public boolean isConnected() { return client.isConnected(); }
public void close() { client.close(); }