Example #1
0
  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) + ")");
  }
Example #2
0
 public boolean isConnected() {
   return client.isConnected();
 }
Example #3
0
 public void close() {
   client.close();
 }