Class PublicationTransportHandler
java.lang.Object
org.elasticsearch.cluster.coordination.PublicationTransportHandler
public class PublicationTransportHandler
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
PublicationTransportHandler.PublicationContext
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
COMMIT_STATE_ACTION_NAME
static java.lang.String
PUBLISH_STATE_ACTION_NAME
-
Constructor Summary
Constructors Constructor Description PublicationTransportHandler(TransportService transportService, NamedWriteableRegistry namedWriteableRegistry, java.util.function.Function<PublishRequest,PublishWithJoinResponse> handlePublishRequest, java.util.function.BiConsumer<ApplyCommitRequest,ActionListener<java.lang.Void>> handleApplyCommit)
-
Method Summary
Modifier and Type Method Description PublicationTransportHandler.PublicationContext
newPublicationContext(ClusterChangedEvent clusterChangedEvent)
static BytesReference
serializeDiffClusterState(Diff diff, Version nodeVersion)
static BytesReference
serializeFullClusterState(ClusterState clusterState, Version nodeVersion)
PublishClusterStateStats
stats()
-
Field Details
-
PUBLISH_STATE_ACTION_NAME
public static final java.lang.String PUBLISH_STATE_ACTION_NAME- See Also:
- Constant Field Values
-
COMMIT_STATE_ACTION_NAME
public static final java.lang.String COMMIT_STATE_ACTION_NAME- See Also:
- Constant Field Values
-
-
Constructor Details
-
PublicationTransportHandler
public PublicationTransportHandler(TransportService transportService, NamedWriteableRegistry namedWriteableRegistry, java.util.function.Function<PublishRequest,PublishWithJoinResponse> handlePublishRequest, java.util.function.BiConsumer<ApplyCommitRequest,ActionListener<java.lang.Void>> handleApplyCommit)
-
-
Method Details
-
stats
-
newPublicationContext
public PublicationTransportHandler.PublicationContext newPublicationContext(ClusterChangedEvent clusterChangedEvent) -
serializeFullClusterState
public static BytesReference serializeFullClusterState(ClusterState clusterState, Version nodeVersion) throws java.io.IOException- Throws:
java.io.IOException
-
serializeDiffClusterState
public static BytesReference serializeDiffClusterState(Diff diff, Version nodeVersion) throws java.io.IOException- Throws:
java.io.IOException
-