Class ServerClient
- java.lang.Object
-
- org.apache.accumulo.core.clientImpl.ServerClient
-
public class ServerClient extends Object
-
-
Constructor Summary
Constructors Constructor Description ServerClient()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclose(org.apache.thrift.TServiceClient client)static <T> Texecute(ClientContext context, ClientExecReturn<T,ClientService.Client> exec)static <CT extends org.apache.thrift.TServiceClient,RT>
RTexecute(ClientContext context, org.apache.thrift.TServiceClientFactory<CT> factory, ClientExecReturn<RT,CT> exec)static <T> TexecuteRaw(ClientContext context, ClientExecReturn<T,ClientService.Client> exec)static <CT extends org.apache.thrift.TServiceClient,RT>
RTexecuteRaw(ClientContext context, org.apache.thrift.TServiceClientFactory<CT> factory, ClientExecReturn<RT,CT> exec)static voidexecuteRawVoid(ClientContext context, ClientExec<ClientService.Client> exec)static voidexecuteVoid(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>
Pair<String,CT>getConnection(ClientContext context, org.apache.thrift.TServiceClientFactory<CT> factory)static <CT extends org.apache.thrift.TServiceClient>
Pair<String,CT>getConnection(ClientContext context, org.apache.thrift.TServiceClientFactory<CT> factory, boolean preferCachedConnections, long rpcTimeout)
-
-
-
Method Detail
-
execute
public static <T> T execute(ClientContext context, ClientExecReturn<T,ClientService.Client> exec) throws AccumuloException, AccumuloSecurityException
-
execute
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
-
executeVoid
public static void executeVoid(ClientContext context, ClientExec<ClientService.Client> exec) throws AccumuloException, AccumuloSecurityException
-
executeRaw
public static <T> T executeRaw(ClientContext context, ClientExecReturn<T,ClientService.Client> exec) throws Exception
- Throws:
Exception
-
executeRaw
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
- Throws:
Exception
-
executeRawVoid
public static void executeRawVoid(ClientContext context, ClientExec<ClientService.Client> exec) throws Exception
- Throws:
Exception
-
getConnection
public static Pair<String,ClientService.Client> getConnection(ClientContext context) throws org.apache.thrift.transport.TTransportException
- Throws:
org.apache.thrift.transport.TTransportException
-
getConnection
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
- Throws:
org.apache.thrift.transport.TTransportException
-
getConnection
public static Pair<String,ClientService.Client> getConnection(ClientContext context, boolean preferCachedConnections) throws org.apache.thrift.transport.TTransportException
- Throws:
org.apache.thrift.transport.TTransportException
-
getConnection
public static Pair<String,ClientService.Client> getConnection(ClientContext context, boolean preferCachedConnections, long rpcTimeout) throws org.apache.thrift.transport.TTransportException
- Throws:
org.apache.thrift.transport.TTransportException
-
getConnection
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
- Throws:
org.apache.thrift.transport.TTransportException
-
close
public static void close(org.apache.thrift.TServiceClient client)
-
-