- All Superinterfaces:
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested 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 booleanReturnstrueiff thisClusterState.Customis private to the cluster and should never be send to a client.toXContent(XContentBuilder builder, ToXContent.Params params) Serialize thisClusterState.Customfor diagnostic purposes, exposed by theMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragmentMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
getMinimalSupportedVersion, getWriteableName
-
Method Details
-
isPrivate
default boolean isPrivate()Returnstrueiff thisClusterState.Customis private to the cluster and should never be send to a client. The default isfalse; -
toXContent
Serialize thisClusterState.Customfor 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:
toXContentin interfaceToXContent- Throws:
IOException
-