public class WorkManager extends Object implements AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
class |
WorkManager.WorkerBee
Narrowed interface to WorkManager that is made available to tasks it is managing.
|
| Constructor and Description |
|---|
WorkManager(BootStrapContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
WorkManager.WorkerBee |
getBee() |
DrillbitContext |
getContext() |
ControlMessageHandler |
getControlMessageHandler() |
Executor |
getExecutor() |
Map<String,Integer> |
getRemainingQueries()
Get the number of queries that are running on a drillbit.
|
UserWorker |
getUserWorker() |
WorkEventBus |
getWorkBus() |
void |
start(CoordinationProtos.DrillbitEndpoint endpoint,
Controller controller,
DataConnectionCreator data,
ClusterCoordinator coord,
PersistentStoreProvider provider,
PersistentStoreProvider profilesProvider) |
void |
waitToExit(Drillbit bit,
boolean forcefulShutdown)
Waits until it is safe to exit.
|
public WorkManager(BootStrapContext context)
public void start(CoordinationProtos.DrillbitEndpoint endpoint, Controller controller, DataConnectionCreator data, ClusterCoordinator coord, PersistentStoreProvider provider, PersistentStoreProvider profilesProvider)
public Executor getExecutor()
public WorkEventBus getWorkBus()
public ControlMessageHandler getControlMessageHandler()
public UserWorker getUserWorker()
public WorkManager.WorkerBee getBee()
public void close()
throws Exception
close in interface AutoCloseableExceptionpublic DrillbitContext getContext()
public void waitToExit(Drillbit bit, boolean forcefulShutdown)
This is intended to be used by Drillbit.close().
Copyright © 2017 The Apache Software Foundation. All rights reserved.