public class ThriftUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ThriftUtil.TraceProtocol |
static class |
ThriftUtil.TraceProtocolFactory |
Constructor and Description |
---|
ThriftUtil() |
Modifier and Type | Method and Description |
---|---|
static <T extends org.apache.thrift.TServiceClient> |
createClient(org.apache.thrift.TServiceClientFactory<T> factory,
org.apache.thrift.transport.TTransport transport) |
static org.apache.thrift.transport.TTransport |
createClientTransport(com.google.common.net.HostAndPort address,
int timeout,
SslConnectionParams sslParams) |
static org.apache.thrift.transport.TTransport |
createTransport(com.google.common.net.HostAndPort address,
AccumuloConfiguration conf)
create a transport that is not pooled
|
static void |
execute(String address,
AccumuloConfiguration conf,
ClientExec<TabletClientService.Client> exec) |
static <T> T |
execute(String address,
AccumuloConfiguration conf,
ClientExecReturn<T,TabletClientService.Client> exec) |
static <T extends org.apache.thrift.TServiceClient> |
getClient(org.apache.thrift.TServiceClientFactory<T> factory,
com.google.common.net.HostAndPort address,
AccumuloConfiguration conf) |
static <T extends org.apache.thrift.TServiceClient> |
getClient(org.apache.thrift.TServiceClientFactory<T> factory,
String address,
long timeout,
AccumuloConfiguration configuration) |
static <T extends org.apache.thrift.TServiceClient> |
getClient(org.apache.thrift.TServiceClientFactory<T> factory,
String address,
Property timeoutProperty,
AccumuloConfiguration configuration) |
static <T extends org.apache.thrift.TServiceClient> |
getClientNoTimeout(org.apache.thrift.TServiceClientFactory<T> factory,
String address,
AccumuloConfiguration configuration) |
static org.apache.thrift.transport.TServerSocket |
getServerSocket(int port,
int timeout,
InetAddress address,
SslConnectionParams params) |
static TabletClientService.Client |
getTServerClient(String address,
AccumuloConfiguration conf) |
static TabletClientService.Client |
getTServerClient(String address,
AccumuloConfiguration conf,
long timeout) |
static org.apache.thrift.protocol.TProtocolFactory |
protocolFactory() |
static void |
returnClient(org.apache.thrift.TServiceClient iface) |
static org.apache.thrift.transport.TTransportFactory |
transportFactory() |
static org.apache.thrift.transport.TTransportFactory |
transportFactory(int maxFrameSize) |
static org.apache.thrift.transport.TTransportFactory |
transportFactory(long maxFrameSize) |
public static <T extends org.apache.thrift.TServiceClient> T createClient(org.apache.thrift.TServiceClientFactory<T> factory, org.apache.thrift.transport.TTransport transport)
public static <T extends org.apache.thrift.TServiceClient> T getClient(org.apache.thrift.TServiceClientFactory<T> factory, com.google.common.net.HostAndPort address, AccumuloConfiguration conf) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportException
public static <T extends org.apache.thrift.TServiceClient> T getClientNoTimeout(org.apache.thrift.TServiceClientFactory<T> factory, String address, AccumuloConfiguration configuration) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportException
public static <T extends org.apache.thrift.TServiceClient> T getClient(org.apache.thrift.TServiceClientFactory<T> factory, String address, Property timeoutProperty, AccumuloConfiguration configuration) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportException
public static <T extends org.apache.thrift.TServiceClient> T getClient(org.apache.thrift.TServiceClientFactory<T> factory, String address, long timeout, AccumuloConfiguration configuration) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportException
public static void returnClient(org.apache.thrift.TServiceClient iface)
public static TabletClientService.Client getTServerClient(String address, AccumuloConfiguration conf) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportException
public static TabletClientService.Client getTServerClient(String address, AccumuloConfiguration conf, long timeout) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportException
public static void execute(String address, AccumuloConfiguration conf, ClientExec<TabletClientService.Client> exec) throws AccumuloException, AccumuloSecurityException
public static <T> T execute(String address, AccumuloConfiguration conf, ClientExecReturn<T,TabletClientService.Client> exec) throws AccumuloException, AccumuloSecurityException
public static org.apache.thrift.transport.TTransport createTransport(com.google.common.net.HostAndPort address, AccumuloConfiguration conf) throws org.apache.thrift.TException
org.apache.thrift.TException
public static org.apache.thrift.transport.TTransportFactory transportFactory()
public static org.apache.thrift.transport.TTransportFactory transportFactory(int maxFrameSize)
public static org.apache.thrift.transport.TTransportFactory transportFactory(long maxFrameSize)
public static org.apache.thrift.protocol.TProtocolFactory protocolFactory()
public static org.apache.thrift.transport.TServerSocket getServerSocket(int port, int timeout, InetAddress address, SslConnectionParams params) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportException
public static org.apache.thrift.transport.TTransport createClientTransport(com.google.common.net.HostAndPort address, int timeout, SslConnectionParams sslParams) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportException
Copyright © 2014 Apache Accumulo Project. All rights reserved.