Interface TServerClient<C extends org.apache.thrift.TServiceClient>
-
- All Known Implementing Classes:
ClientServiceThriftClient
,TabletServerThriftClient
public interface TServerClient<C extends org.apache.thrift.TServiceClient>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <R> R
execute(org.slf4j.Logger LOG, ClientContext context, ThriftClientTypes.Exec<R,C> exec)
default void
executeVoid(org.slf4j.Logger LOG, ClientContext context, ThriftClientTypes.ExecVoid<C> exec)
Pair<String,C>
getTabletServerConnection(ClientContext context, boolean preferCachedConnections)
default Pair<String,C>
getTabletServerConnection(org.slf4j.Logger LOG, ThriftClientTypes<C> type, ClientContext context, boolean preferCachedConnections, AtomicBoolean warned)
-
-
-
Method Detail
-
getTabletServerConnection
Pair<String,C> getTabletServerConnection(ClientContext context, boolean preferCachedConnections) throws org.apache.thrift.transport.TTransportException
- Throws:
org.apache.thrift.transport.TTransportException
-
getTabletServerConnection
default Pair<String,C> getTabletServerConnection(org.slf4j.Logger LOG, ThriftClientTypes<C> type, ClientContext context, boolean preferCachedConnections, AtomicBoolean warned) throws org.apache.thrift.transport.TTransportException
- Throws:
org.apache.thrift.transport.TTransportException
-
execute
default <R> R execute(org.slf4j.Logger LOG, ClientContext context, ThriftClientTypes.Exec<R,C> exec) throws AccumuloException, AccumuloSecurityException
-
executeVoid
default void executeVoid(org.slf4j.Logger LOG, ClientContext context, ThriftClientTypes.ExecVoid<C> exec) throws AccumuloException, AccumuloSecurityException
-
-