Package org.elasticsearch.cluster
Interface ClusterState.Custom
- All Superinterfaces:
Diffable<ClusterState.Custom>,NamedDiffable<ClusterState.Custom>,NamedWriteable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentFragment,VersionedNamedWriteable,Writeable
- All Known Implementing Classes:
RepositoryCleanupInProgress,RestoreInProgress,SnapshotDeletionsInProgress,SnapshotsInProgress
- Enclosing class:
- ClusterState
public static interface ClusterState.Custom
extends NamedDiffable<ClusterState.Custom>, org.elasticsearch.xcontent.ToXContentFragment
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.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.org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.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
org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException 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 interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-