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 SummaryNested ClassesModifier and TypeClassDescriptionclassNarrowed interface to WorkManager that is made available to tasks it is managing.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()getBee()Get the number of queries that are running on a drillbit.voidstart(CoordinationProtos.DrillbitEndpoint endpoint, Controller controller, DataConnectionCreator data, ClusterCoordinator coord, PersistentStoreProvider provider, PersistentStoreProvider profilesProvider) voidwaitToExit(boolean forcefulShutdown) 
- 
Constructor Details- 
WorkManager
 
- 
- 
Method Details- 
startpublic void start(CoordinationProtos.DrillbitEndpoint endpoint, Controller controller, DataConnectionCreator data, ClusterCoordinator coord, PersistentStoreProvider provider, PersistentStoreProvider profilesProvider) 
- 
getExecutor
- 
getWorkBus
- 
getControlMessageHandler
- 
getUserWorker
- 
getBee
- 
close- Specified by:
- closein interface- AutoCloseable
- Throws:
- Exception
 
- 
getContext
- 
waitToExitpublic void waitToExit(boolean forcefulShutdown) 
- 
getRemainingQueriesGet 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.
 
-