Class ClientServiceThriftClient
- java.lang.Object
-
- org.apache.accumulo.core.rpc.clients.ThriftClientTypes<ClientService.Client>
-
- org.apache.accumulo.core.rpc.clients.ClientServiceThriftClient
-
- All Implemented Interfaces:
TServerClient<ClientService.Client>
public class ClientServiceThriftClient extends ThriftClientTypes<ClientService.Client> implements TServerClient<ClientService.Client>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.accumulo.core.rpc.clients.ThriftClientTypes
ThriftClientTypes.Exec<R,C>, ThriftClientTypes.ExecVoid<C>
-
-
Field Summary
-
Fields inherited from class org.apache.accumulo.core.rpc.clients.ThriftClientTypes
CLIENT, COMPACTOR, COORDINATOR, FATE, GC, MANAGER, REPLICATION_COORDINATOR, REPLICATION_SERVICER, TABLET_SCAN, TABLET_SERVER
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> R
execute(ClientContext context, ThriftClientTypes.Exec<R,ClientService.Client> exec)
void
executeVoid(ClientContext context, ThriftClientTypes.ExecVoid<ClientService.Client> exec)
Pair<String,ClientService.Client>
getTabletServerConnection(ClientContext context, boolean preferCachedConnections)
-
Methods inherited from class org.apache.accumulo.core.rpc.clients.ThriftClientTypes
getClient, getClientFactory, getConnection, getConnectionWithRetry, getServiceName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.accumulo.core.rpc.clients.TServerClient
execute, executeVoid, getTabletServerConnection
-
-
-
-
Method Detail
-
getTabletServerConnection
public Pair<String,ClientService.Client> getTabletServerConnection(ClientContext context, boolean preferCachedConnections) throws org.apache.thrift.transport.TTransportException
- Specified by:
getTabletServerConnection
in interfaceTServerClient<ClientService.Client>
- Throws:
org.apache.thrift.transport.TTransportException
-
execute
public <R> R execute(ClientContext context, ThriftClientTypes.Exec<R,ClientService.Client> exec) throws AccumuloException, AccumuloSecurityException
- Overrides:
execute
in classThriftClientTypes<ClientService.Client>
- Throws:
AccumuloException
AccumuloSecurityException
-
executeVoid
public void executeVoid(ClientContext context, ThriftClientTypes.ExecVoid<ClientService.Client> exec) throws AccumuloException, AccumuloSecurityException
- Overrides:
executeVoid
in classThriftClientTypes<ClientService.Client>
- Throws:
AccumuloException
AccumuloSecurityException
-
-