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


Method Summary
static ThriftTransportPool getInstance()
           
 org.apache.thrift.transport.TTransport getTransport(InetSocketAddress addr, long timeout)
           
 org.apache.thrift.transport.TTransport getTransport(String location, int port)
           
 org.apache.thrift.transport.TTransport getTransport(String location, int port, long milliseconds)
           
 org.apache.thrift.transport.TTransport getTransportWithDefaultTimeout(InetSocketAddress addr, AccumuloConfiguration conf)
           
 org.apache.thrift.transport.TTransport getTransportWithDefaultTimeout(String location, int port, AccumuloConfiguration conf)
           
 void returnTransport(org.apache.thrift.transport.TTransport tsc)
           
 void setIdleTime(long time)
          Set the time after which idle connections should be closed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTransport

public org.apache.thrift.transport.TTransport getTransport(String location,
                                                           int port)
                                                    throws org.apache.thrift.transport.TTransportException
Throws:
org.apache.thrift.transport.TTransportException

getTransportWithDefaultTimeout

public org.apache.thrift.transport.TTransport getTransportWithDefaultTimeout(InetSocketAddress addr,
                                                                             AccumuloConfiguration conf)
                                                                      throws org.apache.thrift.transport.TTransportException
Throws:
org.apache.thrift.transport.TTransportException

getTransport

public org.apache.thrift.transport.TTransport getTransport(InetSocketAddress addr,
                                                           long timeout)
                                                    throws org.apache.thrift.transport.TTransportException
Throws:
org.apache.thrift.transport.TTransportException

getTransportWithDefaultTimeout

public org.apache.thrift.transport.TTransport getTransportWithDefaultTimeout(String location,
                                                                             int port,
                                                                             AccumuloConfiguration conf)
                                                                      throws org.apache.thrift.transport.TTransportException
Throws:
org.apache.thrift.transport.TTransportException

getTransport

public org.apache.thrift.transport.TTransport getTransport(String location,
                                                           int port,
                                                           long milliseconds)
                                                    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

Parameters:
time -

getInstance

public static ThriftTransportPool getInstance()


Copyright © 2013 Apache Accumulo Project. All Rights Reserved.