public class TaskMaster extends Object
Constructor and Description |
---|
TaskMaster(TaskQueueConfig taskQueueConfig,
TaskLockbox taskLockbox,
TaskStorage taskStorage,
TaskActionClientFactory taskActionClientFactory,
DruidNode node,
IndexerZkConfig zkPaths,
TaskRunnerFactory runnerFactory,
ResourceManagementSchedulerFactory managementSchedulerFactory,
org.apache.curator.framework.CuratorFramework curator,
ServiceAnnouncer serviceAnnouncer,
com.metamx.emitter.service.ServiceEmitter emitter) |
Modifier and Type | Method and Description |
---|---|
String |
getLeader() |
com.google.common.base.Optional<ResourceManagementScheduler> |
getResourceManagementScheduler() |
com.google.common.base.Optional<TaskActionClient> |
getTaskActionClient(Task task) |
com.google.common.base.Optional<TaskQueue> |
getTaskQueue() |
com.google.common.base.Optional<TaskRunner> |
getTaskRunner() |
boolean |
isLeading() |
void |
start()
Starts waiting for leadership.
|
void |
stop()
Stops forever (not just this particular leadership session).
|
@Inject public TaskMaster(TaskQueueConfig taskQueueConfig, TaskLockbox taskLockbox, TaskStorage taskStorage, TaskActionClientFactory taskActionClientFactory, DruidNode node, IndexerZkConfig zkPaths, TaskRunnerFactory runnerFactory, ResourceManagementSchedulerFactory managementSchedulerFactory, org.apache.curator.framework.CuratorFramework curator, ServiceAnnouncer serviceAnnouncer, com.metamx.emitter.service.ServiceEmitter emitter)
public void start()
public void stop()
public boolean isLeading()
public String getLeader()
public com.google.common.base.Optional<TaskRunner> getTaskRunner()
public com.google.common.base.Optional<TaskQueue> getTaskQueue()
public com.google.common.base.Optional<TaskActionClient> getTaskActionClient(Task task)
public com.google.common.base.Optional<ResourceManagementScheduler> getResourceManagementScheduler()
Copyright © 2011–2015. All rights reserved.