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