Package org.elasticsearch.cluster
Interface ClusterState.Custom
- All Superinterfaces:
ClusterState.FeatureAware
,Diffable<ClusterState.Custom>
,NamedDiffable<ClusterState.Custom>
,NamedWriteable
,ToXContent
,ToXContentFragment
,VersionedNamedWriteable
,Writeable
- All Known Implementing Classes:
RepositoryCleanupInProgress
,RestoreInProgress
,SnapshotDeletionsInProgress
,SnapshotsInProgress
- Enclosing class:
- ClusterState
public static interface ClusterState.Custom
extends NamedDiffable<ClusterState.Custom>, ToXContentFragment, ClusterState.FeatureAware
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Returnstrue
iff thisClusterState.Custom
is private to the cluster and should never be send to a client.toXContent
(XContentBuilder builder, ToXContent.Params params) Serialize thisClusterState.Custom
for diagnostic purposes, exposed by theMethods inherited from interface org.elasticsearch.cluster.ClusterState.FeatureAware
getRequiredFeature
Methods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
Methods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
getMinimalSupportedVersion, getWriteableName
-
Method Details
-
isPrivate
default boolean isPrivate()Returnstrue
iff thisClusterState.Custom
is private to the cluster and should never be send to a client. The default isfalse
; -
toXContent
Serialize thisClusterState.Custom
for diagnostic purposes, exposed by theGET _cluster/state
API etc. The XContent representation does not need to be 100% faithful since we never reconstruct a cluster state from its XContent representation, but the more faithful it is the more useful it is for diagnostics.- Specified by:
toXContent
in interfaceToXContent
- Throws:
IOException
-