public class ServerClient extends Object
Constructor and Description |
---|
ServerClient() |
Modifier and Type | Method and Description |
---|---|
static void |
close(org.apache.thrift.TServiceClient client) |
static <T> T |
execute(ClientContext context,
ClientExecReturn<T,ClientService.Client> exec) |
static <CT extends org.apache.thrift.TServiceClient,RT> |
execute(ClientContext context,
org.apache.thrift.TServiceClientFactory<CT> factory,
ClientExecReturn<RT,CT> exec) |
static <T> T |
executeRaw(ClientContext context,
ClientExecReturn<T,ClientService.Client> exec) |
static <CT extends org.apache.thrift.TServiceClient,RT> |
executeRaw(ClientContext context,
org.apache.thrift.TServiceClientFactory<CT> factory,
ClientExecReturn<RT,CT> exec) |
static void |
executeRawVoid(ClientContext context,
ClientExec<ClientService.Client> exec) |
static void |
executeVoid(ClientContext context,
ClientExec<ClientService.Client> exec) |
static Pair<String,ClientService.Client> |
getConnection(ClientContext context) |
static Pair<String,ClientService.Client> |
getConnection(ClientContext context,
boolean preferCachedConnections) |
static Pair<String,ClientService.Client> |
getConnection(ClientContext context,
boolean preferCachedConnections,
long rpcTimeout) |
static <CT extends org.apache.thrift.TServiceClient> |
getConnection(ClientContext context,
org.apache.thrift.TServiceClientFactory<CT> factory) |
static <CT extends org.apache.thrift.TServiceClient> |
getConnection(ClientContext context,
org.apache.thrift.TServiceClientFactory<CT> factory,
boolean preferCachedConnections,
long rpcTimeout) |
public static <T> T execute(ClientContext context, ClientExecReturn<T,ClientService.Client> exec) throws AccumuloException, AccumuloSecurityException
public static <CT extends org.apache.thrift.TServiceClient,RT> RT execute(ClientContext context, org.apache.thrift.TServiceClientFactory<CT> factory, ClientExecReturn<RT,CT> exec) throws AccumuloException, AccumuloSecurityException
public static void executeVoid(ClientContext context, ClientExec<ClientService.Client> exec) throws AccumuloException, AccumuloSecurityException
public static <T> T executeRaw(ClientContext context, ClientExecReturn<T,ClientService.Client> exec) throws Exception
Exception
public static <CT extends org.apache.thrift.TServiceClient,RT> RT executeRaw(ClientContext context, org.apache.thrift.TServiceClientFactory<CT> factory, ClientExecReturn<RT,CT> exec) throws Exception
Exception
public static void executeRawVoid(ClientContext context, ClientExec<ClientService.Client> exec) throws Exception
Exception
public static Pair<String,ClientService.Client> getConnection(ClientContext context) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportException
public static <CT extends org.apache.thrift.TServiceClient> Pair<String,CT> getConnection(ClientContext context, org.apache.thrift.TServiceClientFactory<CT> factory) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportException
public static Pair<String,ClientService.Client> getConnection(ClientContext context, boolean preferCachedConnections) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportException
public static Pair<String,ClientService.Client> getConnection(ClientContext context, boolean preferCachedConnections, long rpcTimeout) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportException
public static <CT extends org.apache.thrift.TServiceClient> Pair<String,CT> getConnection(ClientContext context, org.apache.thrift.TServiceClientFactory<CT> factory, boolean preferCachedConnections, long rpcTimeout) throws org.apache.thrift.transport.TTransportException
org.apache.thrift.transport.TTransportException
public static void close(org.apache.thrift.TServiceClient client)
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.