Module org.elasticsearch.server
Class DataStreamFailureStore.Builder
java.lang.Object
org.elasticsearch.cluster.metadata.DataStreamFailureStore.Builder
- Enclosing class:
DataStreamFailureStore
Builder that is able to create either a DataStreamFailureStore or its respective Template.
Furthermore, its composeTemplate method during template composition.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a valid DataStreamFailureStore configuration.Builds a valid template for the DataStreamFailureStore configuration.composeTemplate
(DataStreamFailureStore.Template failureStore) Composes the provided failure store template with this builder.enabled
(ResettableValue<Boolean> enabled) Composes the provided enabled value with the current one.lifecycle
(DataStreamLifecycle lifecycle) lifecycle
(ResettableValue<DataStreamLifecycle.Template> lifecycle) Composes the provided lifecycle value with the current one.
-
Method Details
-
enabled
-
enabled
Composes the provided enabled value with the current one. Because enabled is a resettable boolean, if it is defined it will overwrite the current value. -
lifecycle
-
lifecycle
public DataStreamFailureStore.Builder lifecycle(ResettableValue<DataStreamLifecycle.Template> lifecycle) Composes the provided lifecycle value with the current one. Because lifecycle is a resettable template that can be merged, if it is defined it will delegate toDataStreamLifecycle.Builder.composeTemplate(DataStreamLifecycle.Template)
to correctly compose the contents. -
composeTemplate
Composes the provided failure store template with this builder. -
build
Builds a valid DataStreamFailureStore configuration.- Returns:
- the object or null if all the values were null.
-
buildTemplate
Builds a valid template for the DataStreamFailureStore configuration.- Returns:
- the template or null if all the values were null.
-