public static class DefaultServiceSpec.Generator
extends java.lang.Object
ServiceSpec from a given YAML definition in the form of a RawServiceSpec.| Modifier and Type | Method and Description |
|---|---|
DefaultServiceSpec |
build() |
DefaultServiceSpec.Generator |
setAllPodsEnv(java.lang.String key,
java.lang.String value)
Assigns an environment variable to be included in all service tasks.
|
DefaultServiceSpec.Generator |
setConfigTemplateReader(YAMLToInternalMappers.ConfigTemplateReader configTemplateReader)
Assigns a custom
YAMLToInternalMappers.ConfigTemplateReader implementation for reading config file
templates. |
DefaultServiceSpec.Generator |
setPodEnv(java.lang.String podType,
java.lang.String key,
java.lang.String value)
Assigns an environment variable to be included in tasks for the specified pod type.
|
public DefaultServiceSpec.Generator setAllPodsEnv(java.lang.String key, java.lang.String value)
TASKCFG_* scheduler environment variables at runtime, and by pod-specific settings provided via
setPodEnv(String, String, String).public DefaultServiceSpec.Generator setPodEnv(java.lang.String podType, java.lang.String key, java.lang.String value)
TASKCFG_* scheduler environment
variables at runtime.public DefaultServiceSpec.Generator setConfigTemplateReader(YAMLToInternalMappers.ConfigTemplateReader configTemplateReader)
YAMLToInternalMappers.ConfigTemplateReader implementation for reading config file
templates. This is exposed to support mocking in tests.public DefaultServiceSpec build() throws java.lang.Exception
java.lang.Exception