public abstract class AckedClusterStateUpdateTask<Response> extends ClusterStateUpdateTask implements AckedClusterStateTaskListener
ClusterStateUpdateTask that allows to be notified when
all the nodes have acknowledged a cluster state update requestClusterStateTaskExecutor.BatchResult<T>, ClusterStateTaskExecutor.TaskResult| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
AckedClusterStateUpdateTask(AckedRequest request,
ActionListener<Response> listener) |
protected |
AckedClusterStateUpdateTask(Priority priority,
AckedRequest request,
ActionListener<Response> listener) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
TimeValue |
ackTimeout()
Acknowledgement timeout, maximum time interval to wait for acknowledgements
|
void |
clusterStateProcessed(String source,
ClusterState oldState,
ClusterState newState)
Called when the result of the
ClusterStateTaskExecutor.execute(ClusterState, List) have been processed
properly by all listeners. |
boolean |
mustAck(DiscoveryNode discoveryNode)
Called to determine which nodes the acknowledgement is expected from
|
protected abstract Response |
newResponse(boolean acknowledged) |
void |
onAckTimeout()
Called once the acknowledgement timeout defined by
ackTimeout() has expired |
void |
onAllNodesAcked(Throwable t)
Called once all the nodes have acknowledged the cluster state update request.
|
void |
onFailure(String source,
Throwable t)
A callback called when execute fails.
|
TimeValue |
timeout()
If the cluster state update task wasn't processed by the provided timeout, call
ClusterStateUpdateTask.onFailure(String, Throwable). |
execute, execute, onNoLongerMaster, priorityclusterStatePublished, runOnlyOnMasterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonNoLongerMasterprotected AckedClusterStateUpdateTask(AckedRequest request, ActionListener<Response> listener)
protected AckedClusterStateUpdateTask(Priority priority, AckedRequest request, ActionListener<Response> listener)
public boolean mustAck(DiscoveryNode discoveryNode)
mustAck インタフェース内 AckedClusterStateTaskListenerdiscoveryNode - a nodepublic void onAllNodesAcked(@Nullable Throwable t)
onAllNodesAcked インタフェース内 AckedClusterStateTaskListenert - optional error that might have been thrownprotected abstract Response newResponse(boolean acknowledged)
public void onAckTimeout()
ackTimeout() has expiredonAckTimeout インタフェース内 AckedClusterStateTaskListenerpublic void onFailure(String source, Throwable t)
ClusterStateUpdateTaskonFailure インタフェース内 ClusterStateTaskListeneronFailure クラス内 ClusterStateUpdateTaskpublic void clusterStateProcessed(String source, ClusterState oldState, ClusterState newState)
ClusterStateTaskListenerClusterStateTaskExecutor.execute(ClusterState, List) have been processed
properly by all listeners.clusterStateProcessed インタフェース内 ClusterStateTaskListenerclusterStateProcessed クラス内 ClusterStateUpdateTaskpublic TimeValue ackTimeout()
ackTimeout インタフェース内 AckedClusterStateTaskListenerpublic TimeValue timeout()
ClusterStateUpdateTaskClusterStateUpdateTask.onFailure(String, Throwable). May return null to indicate no timeout is needed (default).timeout インタフェース内 ClusterStateTaskConfigtimeout クラス内 ClusterStateUpdateTaskCopyright © 2009–2016. All rights reserved.