Package org.apache.drill.exec.work.batch
Class ControlMessageHandler
java.lang.Object
org.apache.drill.exec.work.batch.ControlMessageHandler
- All Implemented Interfaces:
RequestHandler<ControlConnection>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(ControlConnection connection, int rpcType, ByteBuf pBody, ByteBuf dBody, ResponseSender sender) initializeFragment(BitControl.InitializeFragments fragments) receivingFragmentFinished(BitControl.FinishedReceiver finishedReceiver) requestQueryCancel(UserBitShared.QueryId queryId) requestQueryStatus(UserBitShared.QueryId queryId) voidstartNewFragment(BitControl.PlanFragment fragment, DrillbitContext drillbitContext) Start a new fragment on this node.
-
Constructor Details
-
ControlMessageHandler
-
-
Method Details
-
handle
public void handle(ControlConnection connection, int rpcType, ByteBuf pBody, ByteBuf dBody, ResponseSender sender) throws RpcException - Specified by:
handlein interfaceRequestHandler<ControlConnection>- Throws:
RpcException
-
startNewFragment
public void startNewFragment(BitControl.PlanFragment fragment, DrillbitContext drillbitContext) throws UserRpcException Start a new fragment on this node. These fragments can be leaf or intermediate fragments which are scheduled by remote or local Foreman node.- Parameters:
fragment-- Throws:
UserRpcException
-
cancelFragment
-
resumeFragment
-
receivingFragmentFinished
-
requestFragmentStatus
-
initializeFragment
public GeneralRPCProtos.Ack initializeFragment(BitControl.InitializeFragments fragments) throws RpcException - Throws:
RpcException
-
getHandlerRegistry
-