Class Publication
java.lang.Object
org.elasticsearch.cluster.coordination.Publication
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPublication(PublishRequest publishRequest, ClusterStatePublisher.AckListener ackListener, LongSupplier currentTimeSupplier)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected abstract Optional<ApplyCommitRequest>
handlePublishResponse(DiscoveryNode sourceNode, PublishResponse publishResponse)
boolean
protected abstract boolean
protected abstract void
onCompletion(boolean committed)
void
onFaultyNode(DiscoveryNode faultyNode)
protected abstract void
protected abstract void
onMissingJoin(DiscoveryNode discoveryNode)
protected abstract void
sendApplyCommit(DiscoveryNode destination, ApplyCommitRequest applyCommit, ActionListener<TransportResponse.Empty> responseActionListener)
protected abstract void
sendPublishRequest(DiscoveryNode destination, PublishRequest publishRequest, ActionListener<PublishWithJoinResponse> responseActionListener)
void
start(Set<DiscoveryNode> faultyNodes)
toString()
-
Field Details
-
logger
protected final org.apache.logging.log4j.Logger logger
-
-
Constructor Details
-
Publication
public Publication(PublishRequest publishRequest, ClusterStatePublisher.AckListener ackListener, LongSupplier currentTimeSupplier)
-
-
Method Details
-
start
-
cancel
-
onFaultyNode
-
completedNodes
-
isCommitted
public boolean isCommitted() -
onCompletion
protected abstract void onCompletion(boolean committed) -
isPublishQuorum
-
handlePublishResponse
protected abstract Optional<ApplyCommitRequest> handlePublishResponse(DiscoveryNode sourceNode, PublishResponse publishResponse) -
onJoin
-
onMissingJoin
-
sendPublishRequest
protected abstract void sendPublishRequest(DiscoveryNode destination, PublishRequest publishRequest, ActionListener<PublishWithJoinResponse> responseActionListener) -
sendApplyCommit
protected abstract void sendApplyCommit(DiscoveryNode destination, ApplyCommitRequest applyCommit, ActionListener<TransportResponse.Empty> responseActionListener) -
toString
-