Package org.apache.drill.exec.work
Class WorkManager
java.lang.Object
org.apache.drill.exec.work.WorkManager
- All Implemented Interfaces:
AutoCloseable
Manages the running fragments in a Drillbit. Periodically requests run-time
stats updates from fragments running elsewhere.
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Narrowed interface to WorkManager that is made available to tasks it is managing. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
getBee()
Get the number of queries that are running on a drillbit.void
start
(CoordinationProtos.DrillbitEndpoint endpoint, Controller controller, DataConnectionCreator data, ClusterCoordinator coord, PersistentStoreProvider provider, PersistentStoreProvider profilesProvider) void
waitToExit
(boolean forcefulShutdown)
-
Constructor Details
-
WorkManager
-
-
Method Details
-
start
public void start(CoordinationProtos.DrillbitEndpoint endpoint, Controller controller, DataConnectionCreator data, ClusterCoordinator coord, PersistentStoreProvider provider, PersistentStoreProvider profilesProvider) -
getExecutor
-
getWorkBus
-
getControlMessageHandler
-
getUserWorker
-
getBee
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
getContext
-
waitToExit
public void waitToExit(boolean forcefulShutdown) -
getRemainingQueries
Get the number of queries that are running on a drillbit. Primarily used to monitor the number of running queries after a shutdown request is triggered.
-