Package com.yahoo.cloud.config
Class SentinelConfig.Service.Builder
java.lang.Object
com.yahoo.cloud.config.SentinelConfig.Service.Builder
- All Implemented Interfaces:
com.yahoo.config.ConfigBuilder
- Enclosing class:
- SentinelConfig.Service
public static final class SentinelConfig.Service.Builder
extends Object
implements com.yahoo.config.ConfigBuilder
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaffinity(SentinelConfig.Service.Affinity.Builder __builder) Make a new builder and run the supplied function on it before adding it to the listautorestart(boolean __value) autostart(boolean __value) build()environ(SentinelConfig.Service.Environ.Builder __builder) Add the given builder to this builder's list of Environ buildersMake a new builder and run the supplied function on it before adding it to the listenviron(List<SentinelConfig.Service.Environ.Builder> __builders) Set the given list as this builder's list of Environ builderslogctl(SentinelConfig.Service.Logctl.Builder __builder) Add the given builder to this builder's list of Logctl buildersMake a new builder and run the supplied function on it before adding it to the listlogctl(List<SentinelConfig.Service.Logctl.Builder> __builders) Set the given list as this builder's list of Logctl builderspreShutdownCommand(String __value)
-
Field Details
-
environ
-
logctl
-
affinity
-
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
command
-
environ
Add the given builder to this builder's list of Environ builders- Parameters:
__builder- a builder- Returns:
- this builder
-
environ
public SentinelConfig.Service.Builder environ(Consumer<SentinelConfig.Service.Environ.Builder> __func) Make a new builder and run the supplied function on it before adding it to the list- Parameters:
__func- lambda that modifies the given builder- Returns:
- this builder
-
environ
public SentinelConfig.Service.Builder environ(List<SentinelConfig.Service.Environ.Builder> __builders) Set the given list as this builder's list of Environ builders- Parameters:
__builders- a list of builders- Returns:
- this builder
-
logctl
Add the given builder to this builder's list of Logctl builders- Parameters:
__builder- a builder- Returns:
- this builder
-
logctl
public SentinelConfig.Service.Builder logctl(Consumer<SentinelConfig.Service.Logctl.Builder> __func) Make a new builder and run the supplied function on it before adding it to the list- Parameters:
__func- lambda that modifies the given builder- Returns:
- this builder
-
logctl
public SentinelConfig.Service.Builder logctl(List<SentinelConfig.Service.Logctl.Builder> __builders) Set the given list as this builder's list of Logctl builders- Parameters:
__builders- a list of builders- Returns:
- this builder
-
preShutdownCommand
-
name
-
autostart
-
autorestart
-
id
-
affinity
-
affinity
public SentinelConfig.Service.Builder affinity(Consumer<SentinelConfig.Service.Affinity.Builder> __func) Make a new builder and run the supplied function on it before adding it to the list- Parameters:
__func- lambda that modifies the given builder- Returns:
- this builder
-
build
-