org.apache.accumulo.core.client.impl
Class ServerClient
java.lang.Object
org.apache.accumulo.core.client.impl.ServerClient
public class ServerClient
- extends Object
Method Summary |
static void |
close(ClientService.Client client)
|
static void |
execute(Instance instance,
ClientExec<ClientService.Client> exec)
|
static
|
execute(Instance instance,
ClientExecReturn<T,ClientService.Client> exec)
|
static void |
executeRaw(Instance instance,
ClientExec<ClientService.Client> exec)
|
static
|
executeRaw(Instance instance,
ClientExecReturn<T,ClientService.Client> exec)
|
static Pair<String,ClientService.Client> |
getConnection(Instance instance)
|
static Pair<String,ClientService.Client> |
getConnection(Instance instance,
boolean preferCachedConnections)
|
static Pair<String,ClientService.Client> |
getConnection(Instance instance,
boolean preferCachedConnections,
long rpcTimeout)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerClient
public ServerClient()
execute
public static <T> T execute(Instance instance,
ClientExecReturn<T,ClientService.Client> exec)
throws AccumuloException,
AccumuloSecurityException
- Throws:
AccumuloException
AccumuloSecurityException
execute
public static void execute(Instance instance,
ClientExec<ClientService.Client> exec)
throws AccumuloException,
AccumuloSecurityException
- Throws:
AccumuloException
AccumuloSecurityException
executeRaw
public static <T> T executeRaw(Instance instance,
ClientExecReturn<T,ClientService.Client> exec)
throws Exception
- Throws:
Exception
executeRaw
public static void executeRaw(Instance instance,
ClientExec<ClientService.Client> exec)
throws Exception
- Throws:
Exception
getConnection
public static Pair<String,ClientService.Client> getConnection(Instance instance)
throws org.apache.thrift.transport.TTransportException
- Throws:
org.apache.thrift.transport.TTransportException
getConnection
public static Pair<String,ClientService.Client> getConnection(Instance instance,
boolean preferCachedConnections)
throws org.apache.thrift.transport.TTransportException
- Throws:
org.apache.thrift.transport.TTransportException
getConnection
public static Pair<String,ClientService.Client> getConnection(Instance instance,
boolean preferCachedConnections,
long rpcTimeout)
throws org.apache.thrift.transport.TTransportException
- Throws:
org.apache.thrift.transport.TTransportException
close
public static void close(ClientService.Client client)
Copyright © 2015 Apache Accumulo Project. All rights reserved.