Package org.apache.tajo.rpc

Examples of org.apache.tajo.rpc.BlockingRpcClient$ClientChannelUpstreamHandler


    connect(NetUtils.createSocketAddr(hostname, port));
  }

  private void connect(InetSocketAddress addr) throws IOException {
    try {
      tasjoMasterClient = new BlockingRpcClient(TajoMasterClientProtocol.class, addr);
      tajoMasterService = tasjoMasterClient.getStub();
    } catch (Exception e) {
      throw new IOException(e);
    }
  }
View Full Code Here


  }

  private void connectionToQueryMaster(QueryId queryId, String queryMasterHost, int queryMasterPort) {
    try {
      InetSocketAddress addr = NetUtils.createSocketAddr(queryMasterHost, queryMasterPort);
      BlockingRpcClient client = new BlockingRpcClient(QueryMasterClientProtocol.class, addr);
      QueryMasterClientProtocolService.BlockingInterface service = client.getStub();

      queryMasterConnectionMap.put(queryId, service);
      queryMasterClientMap.put(queryId, client);

      LOG.info("Connected to Query Master (qid=" + queryId + ", addr=" + NetUtils.normalizeInetSocketAddress(addr)
View Full Code Here

  private void connect(InetSocketAddress serverAddr) throws IOException {
    String addrStr = NetUtils.normalizeInetSocketAddress(serverAddr);
    LOG.info("Trying to connect the catalog (" + addrStr + ")");
    try {
      client = new BlockingRpcClient(CatalogProtocol.class, serverAddr);
      setStub((BlockingInterface) client.getStub());
    } catch (Exception e) {
      throw new IOException("Can't connect the catalog server (" + addrStr +")");
    }
    LOG.info("Connected to the catalog server (" + addrStr + ")");
View Full Code Here

TOP

Related Classes of org.apache.tajo.rpc.BlockingRpcClient$ClientChannelUpstreamHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.