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.Iface iface)
           
static void execute(Instance instance, ClientExec<ClientService.Iface> exec)
           
static
<T> T
execute(Instance instance, ClientExecReturn<T,ClientService.Iface> exec)
           
static void executeRaw(Instance instance, ClientExec<ClientService.Iface> exec)
           
static
<T> T
executeRaw(Instance instance, ClientExecReturn<T,ClientService.Iface> exec)
           
static Pair<String,ClientService.Iface> getConnection(Instance instance)
           
static Pair<String,ClientService.Iface> getConnection(Instance instance, boolean preferCachedConnections)
           
 
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.Iface> exec)
                 throws AccumuloException,
                        AccumuloSecurityException
Throws:
AccumuloException
AccumuloSecurityException

execute

public static void execute(Instance instance,
                           ClientExec<ClientService.Iface> exec)
                    throws AccumuloException,
                           AccumuloSecurityException
Throws:
AccumuloException
AccumuloSecurityException

executeRaw

public static <T> T executeRaw(Instance instance,
                               ClientExecReturn<T,ClientService.Iface> exec)
                    throws Exception
Throws:
Exception

executeRaw

public static void executeRaw(Instance instance,
                              ClientExec<ClientService.Iface> exec)
                       throws Exception
Throws:
Exception

getConnection

public static Pair<String,ClientService.Iface> getConnection(Instance instance)
                                                      throws org.apache.thrift.transport.TTransportException
Throws:
org.apache.thrift.transport.TTransportException

getConnection

public static Pair<String,ClientService.Iface> getConnection(Instance instance,
                                                             boolean preferCachedConnections)
                                                      throws org.apache.thrift.transport.TTransportException
Throws:
org.apache.thrift.transport.TTransportException

close

public static void close(ClientService.Iface iface)


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.