public class MockTaskManager
extends org.elasticsearch.tasks.TaskManager
Modifier and Type | Field and Description |
---|---|
static org.elasticsearch.common.settings.Setting<java.lang.Boolean> |
USE_MOCK_TASK_MANAGER_SETTING |
Constructor and Description |
---|
MockTaskManager(org.elasticsearch.common.settings.Settings settings) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(MockTaskManagerListener listener) |
org.elasticsearch.tasks.Task |
register(java.lang.String type,
java.lang.String action,
org.elasticsearch.transport.TransportRequest request) |
void |
removeListener(MockTaskManagerListener listener) |
org.elasticsearch.tasks.Task |
unregister(org.elasticsearch.tasks.Task task) |
cancel, clusterChanged, getBanCount, getCancellableTask, getCancellableTasks, getTask, getTasks, registerChildTask, removeBan, setBan
public static final org.elasticsearch.common.settings.Setting<java.lang.Boolean> USE_MOCK_TASK_MANAGER_SETTING
public MockTaskManager(org.elasticsearch.common.settings.Settings settings)
public org.elasticsearch.tasks.Task register(java.lang.String type, java.lang.String action, org.elasticsearch.transport.TransportRequest request)
register
in class org.elasticsearch.tasks.TaskManager
public org.elasticsearch.tasks.Task unregister(org.elasticsearch.tasks.Task task)
unregister
in class org.elasticsearch.tasks.TaskManager
public void addListener(MockTaskManagerListener listener)
public void removeListener(MockTaskManagerListener listener)