org.apache.accumulo.core.util
Class ThriftUtil
java.lang.Object
org.apache.accumulo.core.util.ThriftUtil
public class ThriftUtil
- extends java.lang.Object
Method Summary |
static
<T extends org.apache.thrift.TServiceClient>
T |
|
createClient(org.apache.thrift.TServiceClientFactory<T> factory,
org.apache.thrift.transport.TTransport transport)
|
static
<T extends org.apache.thrift.TServiceClient>
T |
|
getClient(org.apache.thrift.TServiceClientFactory<T> factory,
java.net.InetSocketAddress address,
AccumuloConfiguration conf)
|
static
<T extends org.apache.thrift.TServiceClient>
T |
|
getClient(org.apache.thrift.TServiceClientFactory<T> factory,
java.lang.String address,
Property property,
AccumuloConfiguration configuration)
|
static
<T extends org.apache.thrift.TServiceClient>
T |
|
getClient(org.apache.thrift.TServiceClientFactory<T> factory,
java.lang.String address,
Property property,
Property timeoutProperty,
AccumuloConfiguration configuration)
|
static TabletClientService.Iface |
getTServerClient(java.lang.String address,
AccumuloConfiguration conf)
|
static org.apache.thrift.protocol.TProtocolFactory |
inputProtocolFactory()
|
static org.apache.thrift.protocol.TProtocolFactory |
outputProtocolFactory()
|
static void |
returnClient(java.lang.Object iface)
|
static org.apache.thrift.transport.TTransportFactory |
transportFactory()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThriftUtil
public ThriftUtil()
createClient
public static <T extends org.apache.thrift.TServiceClient> T createClient(org.apache.thrift.TServiceClientFactory<T> factory,
org.apache.thrift.transport.TTransport transport)
getClient
public static <T extends org.apache.thrift.TServiceClient> T getClient(org.apache.thrift.TServiceClientFactory<T> factory,
java.net.InetSocketAddress address,
AccumuloConfiguration conf)
throws org.apache.thrift.transport.TTransportException
- Throws:
org.apache.thrift.transport.TTransportException
getClient
public static <T extends org.apache.thrift.TServiceClient> T getClient(org.apache.thrift.TServiceClientFactory<T> factory,
java.lang.String address,
Property property,
AccumuloConfiguration configuration)
throws org.apache.thrift.transport.TTransportException
- Throws:
org.apache.thrift.transport.TTransportException
getClient
public static <T extends org.apache.thrift.TServiceClient> T getClient(org.apache.thrift.TServiceClientFactory<T> factory,
java.lang.String address,
Property property,
Property timeoutProperty,
AccumuloConfiguration configuration)
throws org.apache.thrift.transport.TTransportException
- Throws:
org.apache.thrift.transport.TTransportException
returnClient
public static void returnClient(java.lang.Object iface)
getTServerClient
public static TabletClientService.Iface getTServerClient(java.lang.String address,
AccumuloConfiguration conf)
throws org.apache.thrift.transport.TTransportException
- Throws:
org.apache.thrift.transport.TTransportException
transportFactory
public static org.apache.thrift.transport.TTransportFactory transportFactory()
outputProtocolFactory
public static org.apache.thrift.protocol.TProtocolFactory outputProtocolFactory()
inputProtocolFactory
public static org.apache.thrift.protocol.TProtocolFactory inputProtocolFactory()
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.