Class PublicationTransportHandler
java.lang.Object
org.elasticsearch.cluster.coordination.PublicationTransportHandler
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Publishing a cluster state typically involves sending the same cluster state (or diff) to every node, so the work of diffing, serializing, and compressing the state can be done once and the results shared across publish requests. -
Field Summary
-
Constructor Summary
ConstructorDescriptionPublicationTransportHandler(TransportService transportService, NamedWriteableRegistry namedWriteableRegistry, Function<PublishRequest,PublishWithJoinResponse> handlePublishRequest, BiConsumer<ApplyCommitRequest,ActionListener<Void>> handleApplyCommit)
-
Method Summary
Modifier and TypeMethodDescriptionnewPublicationContext(ClusterChangedEvent clusterChangedEvent)
stats()
-
Field Details
-
PUBLISH_STATE_ACTION_NAME
- See Also:
- Constant Field Values
-
COMMIT_STATE_ACTION_NAME
- See Also:
- Constant Field Values
-
-
Constructor Details
-
PublicationTransportHandler
public PublicationTransportHandler(TransportService transportService, NamedWriteableRegistry namedWriteableRegistry, Function<PublishRequest,PublishWithJoinResponse> handlePublishRequest, BiConsumer<ApplyCommitRequest,ActionListener<Void>> handleApplyCommit)
-
-
Method Details
-
stats
-
newPublicationContext
public PublicationTransportHandler.PublicationContext newPublicationContext(ClusterChangedEvent clusterChangedEvent)
-