org.apache.accumulo.core.client.impl
Class ServerClient

java.lang.Object
  extended by org.apache.accumulo.core.client.impl.ServerClient

public class ServerClient
extends Object


Constructor Summary
ServerClient()
           
 
Method Summary
static void close(ClientService.Client client)
           
static void execute(Instance instance, ClientExec<ClientService.Client> exec)
           
static
<T> T
execute(Instance instance, ClientExecReturn<T,ClientService.Client> exec)
           
static void executeRaw(Instance instance, ClientExec<ClientService.Client> exec)
           
static
<T> T
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
 

Constructor Detail

ServerClient

public ServerClient()
Method Detail

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 © 2013 Apache Accumulo Project. All Rights Reserved.