Module org.elasticsearch.server
Interface Metadata.Custom
- All Superinterfaces:
ChunkedToXContent,Diffable<Metadata.Custom>,NamedDiffable<Metadata.Custom>,NamedWriteable,VersionedNamedWriteable,Writeable
- All Known Implementing Classes:
ComponentTemplateMetadata,ComposableIndexTemplateMetadata,DataStreamMetadata,DesiredNodesMetadata,ElasticsearchNodeCommand.UnknownMetadataCustom,IndexGraveyard,IngestMetadata,NodesShutdownMetadata,PersistentTasksCustomMetadata,RegisteredPolicySnapshots,RepositoriesMetadata,ScriptMetadata
- Enclosing class:
Metadata
Custom metadata that persists (via XContent) across restarts. The deserialization method for each implementation must be registered
with the
NamedXContentRegistry.-
Nested Class Summary
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.common.xcontent.ChunkedToXContent
EMPTY -
Method Summary
Methods inherited from interface org.elasticsearch.common.xcontent.ChunkedToXContent
isFragment, toXContentChunked, toXContentChunked, toXContentChunkedV8Methods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
getMinimalSupportedVersion, getWriteableName
-
Method Details
-
context
EnumSet<Metadata.XContentContext> context() -
isRestorable
default boolean isRestorable()- Returns:
- true if this custom could be restored from snapshot
-