org.apache.accumulo.core.util
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 |
createTransport(InetSocketAddress address,
AccumuloConfiguration conf)
create a transport that is not pooled
|
static org.apache.thrift.transport.TTransport |
createTransport(String address,
int port,
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,
InetSocketAddress address,
AccumuloConfiguration conf) |
static <T extends org.apache.thrift.TServiceClient> |
getClient(org.apache.thrift.TServiceClientFactory<T> factory,
String address,
Property property,
AccumuloConfiguration configuration) |
static <T extends org.apache.thrift.TServiceClient> |
getClient(org.apache.thrift.TServiceClientFactory<T> factory,
String address,
Property property,
long timeout,
AccumuloConfiguration configuration) |
static <T extends org.apache.thrift.TServiceClient> |
getClient(org.apache.thrift.TServiceClientFactory<T> factory,
String address,
Property property,
Property timeoutProperty,
AccumuloConfiguration configuration) |
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, InetSocketAddress address, AccumuloConfiguration conf) 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 property, 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 property, 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, Property property, 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(String address, int port, AccumuloConfiguration conf) throws org.apache.thrift.TException
org.apache.thrift.TException
public static org.apache.thrift.transport.TTransport createTransport(InetSocketAddress 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()
Copyright © 2011-2015 The Apache Software Foundation. All Rights Reserved.