org.apache.accumulo.core.client.impl
Class ThriftTransportPool

java.lang.Object
  extended by org.apache.accumulo.core.client.impl.ThriftTransportPool

public class ThriftTransportPool
extends Object


Nested Class Summary
static class ThriftTransportPool.TransportPoolShutdownException
           
 
Method Summary
static ThriftTransportPool getInstance()
           
 org.apache.thrift.transport.TTransport getTransport(String location, long milliseconds, SslConnectionParams sslParams)
           
 org.apache.thrift.transport.TTransport getTransportWithDefaultTimeout(com.google.common.net.HostAndPort addr, AccumuloConfiguration conf)
           
 void returnTransport(org.apache.thrift.transport.TTransport tsc)
           
 void setIdleTime(long time)
          Set the time after which idle connections should be closed
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTransportWithDefaultTimeout

public org.apache.thrift.transport.TTransport getTransportWithDefaultTimeout(com.google.common.net.HostAndPort addr,
                                                                             AccumuloConfiguration conf)
                                                                      throws org.apache.thrift.transport.TTransportException
Throws:
org.apache.thrift.transport.TTransportException

getTransport

public org.apache.thrift.transport.TTransport getTransport(String location,
                                                           long milliseconds,
                                                           SslConnectionParams sslParams)
                                                    throws org.apache.thrift.transport.TTransportException
Throws:
org.apache.thrift.transport.TTransportException

returnTransport

public void returnTransport(org.apache.thrift.transport.TTransport tsc)

setIdleTime

public void setIdleTime(long time)
Set the time after which idle connections should be closed


getInstance

public static ThriftTransportPool getInstance()

shutdown

public void shutdown()


Copyright © 2015 Apache Accumulo Project. All rights reserved.