public abstract class ClusterStateTaskExecutor<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ClusterStateTaskExecutor.BatchResult<T>
Represents the result of a batched execution of cluster state update tasks
|
static class |
ClusterStateTaskExecutor.TaskResult |
Constructor and Description |
---|
ClusterStateTaskExecutor() |
Modifier and Type | Method and Description |
---|---|
void |
clusterStatePublished(ClusterState newClusterState)
Callback invoked after new cluster state is published.
|
abstract ClusterStateTaskExecutor.BatchResult<T> |
execute(ClusterState currentState,
List<T> tasks)
Update the cluster state based on the current state and the given tasks.
|
boolean |
runOnlyOnMaster()
indicates whether this task should only run if current node is master
|
public abstract ClusterStateTaskExecutor.BatchResult<T> execute(ClusterState currentState, List<T> tasks) throws Exception
Exception
public boolean runOnlyOnMaster()
public void clusterStatePublished(ClusterState newClusterState)
Copyright © 2009–2016. All rights reserved.