Examples of TTransport


Examples of org.apache.thrift.transport.TTransport

      }
      unscanned.put(new KeyExtent(entry.getKey()), ranges);
    }
   
    timeoutTracker.startingScan();
    TTransport transport = null;
    try {
      TabletClientService.Client client;
      if (timeoutTracker.getTimeOut() < conf.getTimeInMillis(Property.GENERAL_RPC_TIMEOUT))
        client = ThriftUtil.getTServerClient(server, conf, timeoutTracker.getTimeOut());
      else
View Full Code Here

Examples of org.apache.thrift.transport.TTransport

    public TabletServerStatus getTableMap(boolean usePooledConnection) throws TException, ThriftSecurityException {
     
      if (usePooledConnection == true)
        throw new UnsupportedOperationException();
     
      TTransport transport = ThriftUtil.createTransport(address, conf);
     
      try {
        TabletClientService.Client client = ThriftUtil.createClient(new TabletClientService.Client.Factory(), transport);
        return client.getTabletServerStatus(Tracer.traceInfo(), SecurityConstants.getSystemCredentials());
      } finally {
        if (transport != null)
          transport.close();
      }
    }
View Full Code Here

Examples of org.apache.thrift7.transport.TTransport

     * Connect to the specified server via framed transport
     * @param transport The underlying Thrift transport.
     */
    public TTransport connect(TTransport transport, String serverHost) throws TTransportException {
        //create a framed transport
        TTransport conn = new TFramedTransport(transport);

        //connect
        conn.open();
        LOG.debug("Simple client transport has been established");

        return conn;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.