Module org.elasticsearch.server
Record Class DataStreamFailureStore
java.lang.Object
java.lang.Record
org.elasticsearch.cluster.metadata.DataStreamFailureStore
- All Implemented Interfaces:
Diffable<DataStreamFailureStore>
,SimpleDiffable<DataStreamFailureStore>
,Writeable
,ToXContent
,ToXContentObject
public record DataStreamFailureStore(Boolean enabled)
extends Record
implements SimpleDiffable<DataStreamFailureStore>, ToXContentObject
Holds the data stream failure store metadata that enable or disable the failure store of a data stream. Currently, it
supports the following configurations only explicitly enabling or disabling the failure store
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
This class is only used in template configuration.Nested classes/interfaces inherited from interface org.elasticsearch.cluster.SimpleDiffable
SimpleDiffable.CompleteDiff<T extends Diffable<T>>
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
FieldsModifier and TypeFieldDescriptionstatic final String
static final ParseField
static final String
static final ConstructingObjectParser
<DataStreamFailureStore, Void> Fields inherited from interface org.elasticsearch.cluster.SimpleDiffable
EMPTY
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS
-
Constructor Summary
ConstructorsConstructorDescriptionDataStreamFailureStore
(Boolean enabled) Creates an instance of aDataStreamFailureStore
record class. -
Method Summary
Modifier and TypeMethodDescriptionenabled()
Returns the value of theenabled
record component.final boolean
Indicates whether some other object is "equal to" this one.static DataStreamFailureStore
fromXContent
(XContentParser parser) final int
hashCode()
Returns a hash code value for this object.static Diff
<DataStreamFailureStore> toString()
Returns a string representation of this record class.toXContent
(XContentBuilder builder, ToXContent.Params params) void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.cluster.SimpleDiffable
diff
Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
FAILURE_STORE
- See Also:
-
ENABLED
- See Also:
-
ENABLED_FIELD
-
PARSER
-
-
Constructor Details
-
DataStreamFailureStore
Creates an instance of aDataStreamFailureStore
record class.- Parameters:
enabled
- the value for theenabled
record component
-
DataStreamFailureStore
- Throws:
IOException
-
-
Method Details
-
readDiffFrom
- Throws:
IOException
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceToXContent
- Throws:
IOException
-
fromXContent
- Throws:
IOException
-
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
enabled
Returns the value of theenabled
record component.- Returns:
- the value of the
enabled
record component
-