@InterfaceAudience.Private @InterfaceStability.Unstable public class SubWorkflowActionBuilder extends NodeBuilderBaseImpl<SubWorkflowActionBuilder> implements Builder<SubWorkflowAction>
SubWorkflowAction.
The properties of the builder can only be set once, an attempt to set them a second time will trigger
an IllegalStateException. The properties that are lists are an exception to this rule, of course multiple
elements can be added / removed.
Builder instances can be used to build several elements, although properties already set cannot be changed after
a call to build() either.| Modifier and Type | Method and Description |
|---|---|
SubWorkflowAction |
build()
Creates a new
SubWorkflowAction object with the properties stores in this builder. |
static SubWorkflowActionBuilder |
create()
Creates and returns an empty builder.
|
static SubWorkflowActionBuilder |
createFromExistingAction(SubWorkflowAction action)
Create and return a new
SubWorkflowActionBuilder that is based on an already built
SubWorkflowAction object. |
protected SubWorkflowActionBuilder |
getRuntimeSelfReference() |
SubWorkflowActionBuilder |
withAppPath(String appPath)
Registers the path to the application definition (usually workflow.xml) of the subworkflow.
|
SubWorkflowActionBuilder |
withConfigProperty(String key,
String value)
Registers a configuration property (a key-value pair) with this builder.
|
SubWorkflowActionBuilder |
withoutPropagatingConfiguration()
Registers that the configuration of the main workflow should NOT propagate to the subworkflow.
|
SubWorkflowActionBuilder |
withPropagatingConfiguration()
Registers that the configuration of the main workflow should propagate to the subworkflow.
|
addAsChildToAllParents, clearCredentials, clearParents, withCredential, withErrorHandler, withName, withoutCredential, withoutErrorHandler, withoutParent, withParent, withParentDefaultConditional, withParentWithCondition, withRetryInterval, withRetryMax, withRetryPolicypublic static SubWorkflowActionBuilder create()
public static SubWorkflowActionBuilder createFromExistingAction(SubWorkflowAction action)
SubWorkflowActionBuilder that is based on an already built
SubWorkflowAction object. The properties of the builder will initially be the same as those of the
provided SubWorkflowAction object, but it is possible to modify them once.action - The SubWorkflowAction object on which this SubWorkflowActionBuilder will be based.SubWorkflowActionBuilder that is based on a previously built SubWorkflowAction object.public SubWorkflowActionBuilder withAppPath(String appPath)
appPath - HDFS application pathpublic SubWorkflowActionBuilder withPropagatingConfiguration()
public SubWorkflowActionBuilder withoutPropagatingConfiguration()
public SubWorkflowActionBuilder withConfigProperty(String key, String value)
key - The name of the property to set.value - The value of the property to set.IllegalStateException - if the provided key has already been set on this builder.public SubWorkflowAction build()
SubWorkflowAction object with the properties stores in this builder.
The new MapReduceAction object is independent of this builder and the builder can be used to build
new instances.build in interface Builder<SubWorkflowAction>MapReduceAction object with the properties stored in this builder.protected SubWorkflowActionBuilder getRuntimeSelfReference()
getRuntimeSelfReference in class NodeBuilderBaseImpl<SubWorkflowActionBuilder>Copyright © 2021 Apache Software Foundation. All rights reserved.