Package org.apache.drill.exec.rpc
Class FutureBitCommand<T extends com.google.protobuf.MessageLite,C extends RemoteConnection,E extends com.google.protobuf.Internal.EnumLite,M extends com.google.protobuf.MessageLite>
java.lang.Object
org.apache.drill.exec.rpc.FutureBitCommand<T,C,E,M>
- All Implemented Interfaces:
RpcCommand<T,,C, E, M> RpcConnectionHandler<C>
- Direct Known Subclasses:
ControlTunnel.CancelQuery,ControlTunnel.RequestProfile,ControlTunnel.SendFragmentStatus,ControlTunnel.SyncCustomMessageSender
public abstract class FutureBitCommand<T extends com.google.protobuf.MessageLite,C extends RemoteConnection,E extends com.google.protobuf.Internal.EnumLite,M extends com.google.protobuf.MessageLite>
extends Object
implements RpcCommand<T,C,E,M>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.drill.exec.rpc.RpcConnectionHandler
RpcConnectionHandler.FailureType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.google.common.util.concurrent.SettableFuture<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnectionAvailable(C connection) voidvoidconnectionSucceeded(C connection) abstract voiddoRpcCall(RpcOutcomeListener<T> outcomeListener, C connection) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.drill.exec.rpc.RpcCommand
getMessage, getRpcType
-
Field Details
-
settableFuture
protected final com.google.common.util.concurrent.SettableFuture<T extends com.google.protobuf.MessageLite> settableFuture
-
-
Constructor Details
-
FutureBitCommand
public FutureBitCommand()
-
-
Method Details
-
doRpcCall
-
connectionAvailable
- Specified by:
connectionAvailablein interfaceRpcCommand<T extends com.google.protobuf.MessageLite,C extends RemoteConnection, E extends com.google.protobuf.Internal.EnumLite, M extends com.google.protobuf.MessageLite>
-
connectionSucceeded
- Specified by:
connectionSucceededin interfaceRpcConnectionHandler<T extends com.google.protobuf.MessageLite>
-
getFuture
-
getOutcomeListener
- Specified by:
getOutcomeListenerin interfaceRpcCommand<T extends com.google.protobuf.MessageLite,C extends RemoteConnection, E extends com.google.protobuf.Internal.EnumLite, M extends com.google.protobuf.MessageLite>
-
connectionFailed
- Specified by:
connectionFailedin interfaceRpcConnectionHandler<T extends com.google.protobuf.MessageLite>
-