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
ConstructorDescriptionStatusHandler
(Consumer<RpcException> consumer, SendingAccountor sendingAccountor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
failed
(RpcException ex) Called when an error occurred while waiting for the RPC outcome.void
Called when the sending thread is interrupted.void
success
(GeneralRPCProtos.Ack value, io.netty.buffer.ByteBuf buffer)
-
Constructor Details
-
StatusHandler
-
-
Method Details
-
failed
Description copied from interface:RpcOutcomeListener
Called when an error occurred while waiting for the RPC outcome.- Specified by:
failed
in interfaceRpcOutcomeListener<GeneralRPCProtos.Ack>
-
success
- Specified by:
success
in interfaceRpcOutcomeListener<GeneralRPCProtos.Ack>
-
interrupted
Description copied from interface:RpcOutcomeListener
Called when the sending thread is interrupted. Possible when the fragment is cancelled due to query cancellations or failures.- Specified by:
interrupted
in interfaceRpcOutcomeListener<GeneralRPCProtos.Ack>
-