public class YAMLToInternalMappers
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
YAMLToInternalMappers.ConfigTemplateReader
Implementation for reading files from disk.
|
Constructor and Description |
---|
YAMLToInternalMappers() |
Modifier and Type | Method and Description |
---|---|
static DefaultServiceSpec |
convertServiceSpec(RawServiceSpec rawServiceSpec,
SchedulerConfig schedulerConfig,
TaskEnvRouter taskEnvRouter,
YAMLToInternalMappers.ConfigTemplateReader configTemplateReader)
Converts the provided YAML
RawServiceSpec into a new ServiceSpec . |
public static DefaultServiceSpec convertServiceSpec(RawServiceSpec rawServiceSpec, SchedulerConfig schedulerConfig, TaskEnvRouter taskEnvRouter, YAMLToInternalMappers.ConfigTemplateReader configTemplateReader) throws java.lang.Exception
RawServiceSpec
into a new ServiceSpec
.rawServiceSpec
- the raw service specification representing a YAML fileconfigTemplateReader
- the file reader to be used for reading template files, allowing overrides for testingjava.lang.Exception
- if the conversion fails