@Alpha public interface FlowTemplate extends Spec
JobTemplates. It also has
method for retrieving required configs for every JobTemplate in the flow.| Modifier and Type | Method and Description |
|---|---|
List<org.apache.commons.lang3.tuple.Pair<DatasetDescriptor,DatasetDescriptor>> |
getDatasetDescriptors(com.typesafe.config.Config userConfig,
boolean resolvable) |
List<JobTemplate> |
getJobTemplates() |
com.typesafe.config.Config |
getRawTemplateConfig() |
List<com.typesafe.config.Config> |
getResolvedJobConfigs(com.typesafe.config.Config userConfig,
DatasetDescriptor inputDescriptor,
DatasetDescriptor outputDescriptor)
|
void |
tryResolving(com.typesafe.config.Config userConfig,
DatasetDescriptor inputDescriptor,
DatasetDescriptor outputDescriptor)
Try to resolve the
FlowTemplate using the provided Config object. |
getDescription, getUri, getVersionList<JobTemplate> getJobTemplates()
Collection of JobTemplates that belong to this FlowTemplate.com.typesafe.config.Config getRawTemplateConfig()
List<org.apache.commons.lang3.tuple.Pair<DatasetDescriptor,DatasetDescriptor>> getDatasetDescriptors(com.typesafe.config.Config userConfig, boolean resolvable) throws IOException, ReflectiveOperationException, SpecNotFoundException, JobTemplate.TemplateException
userConfig - a list of user customized attributes.resolvable - if true, only return descriptors that resolve the FlowTemplateDatasetDescriptors corresponding to the provied userConfig.IOExceptionReflectiveOperationExceptionSpecNotFoundExceptionJobTemplate.TemplateExceptionvoid tryResolving(com.typesafe.config.Config userConfig,
DatasetDescriptor inputDescriptor,
DatasetDescriptor outputDescriptor)
throws SpecNotFoundException,
JobTemplate.TemplateException
FlowTemplate using the provided Config object. A FlowTemplate
is resolvable only if each of the JobTemplates in the flow is resolvable. Throws an exception if the flow is
not resolvable.userConfig - User supplied ConfiginputDescriptor - input DatasetDescriptoroutputDescriptor - output DatasetDescriptorSpecNotFoundExceptionJobTemplate.TemplateExceptionList<com.typesafe.config.Config> getResolvedJobConfigs(com.typesafe.config.Config userConfig, DatasetDescriptor inputDescriptor, DatasetDescriptor outputDescriptor) throws SpecNotFoundException, JobTemplate.TemplateException
userConfig - User supplied ConfiginputDescriptor - input DatasetDescriptoroutputDescriptor - output DatasetDescriptorConfigs.SpecNotFoundExceptionJobTemplate.TemplateException