Package org.apache.drill.exec.ops
Class StatusHandler
java.lang.Object
org.apache.drill.exec.ops.StatusHandler
- All Implemented Interfaces:
RpcOutcomeListener<GeneralRPCProtos.Ack>
Listener that keeps track of the status of batches sent, and updates the SendingAccountor when status is received
for each batch
-
Constructor Summary
ConstructorsConstructorDescriptionStatusHandler(Consumer<RpcException> consumer, SendingAccountor sendingAccountor) -
Method Summary
Modifier and TypeMethodDescriptionvoidfailed(RpcException ex) Called when an error occurred while waiting for the RPC outcome.voidCalled when the sending thread is interrupted.voidsuccess(GeneralRPCProtos.Ack value, io.netty.buffer.ByteBuf buffer) 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.RpcOutcomeListener
complete
-
Constructor Details
-
StatusHandler
-
-
Method Details
-
failed
Description copied from interface:RpcOutcomeListenerCalled when an error occurred while waiting for the RPC outcome.- Specified by:
failedin interfaceRpcOutcomeListener<GeneralRPCProtos.Ack>- Parameters:
ex-
-
success
- Specified by:
successin interfaceRpcOutcomeListener<GeneralRPCProtos.Ack>
-
interrupted
Description copied from interface:RpcOutcomeListenerCalled when the sending thread is interrupted. Possible when the fragment is cancelled due to query cancellations or failures.- Specified by:
interruptedin interfaceRpcOutcomeListener<GeneralRPCProtos.Ack>
-