Package alluxio.job.workflow.composite
Class CompositeConfig
- java.lang.Object
-
- alluxio.job.workflow.composite.CompositeConfig
-
- All Implemented Interfaces:
JobConfig,WorkflowConfig,java.io.Serializable
@ThreadSafe public final class CompositeConfig extends java.lang.Object implements WorkflowConfig
A composite job is a list of jobs to be executed either sequentially or concurrently. A composite job can contain other composite jobs, this can be used to implement patterns like: execute a set of jobs concurrently, each job can run run another set of sub jobs sequentially.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CompositeConfig(java.util.ArrayList<JobConfig> jobs, java.lang.Boolean sequential)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.String>affectedPaths()booleanequals(java.lang.Object obj)java.util.ArrayList<JobConfig>getJobs()java.lang.StringgetName()inthashCode()booleanisSequential()java.lang.StringtoString()
-
-
-
Constructor Detail
-
CompositeConfig
public CompositeConfig(java.util.ArrayList<JobConfig> jobs, java.lang.Boolean sequential)
- Parameters:
jobs- the list of jobssequential- whether to execute jobs sequentially
-
-
Method Detail
-
getJobs
public java.util.ArrayList<JobConfig> getJobs()
- Returns:
- the list of jobs
-
isSequential
public boolean isSequential()
- Returns:
- whether to execute the jobs sequentially
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getName
public java.lang.String getName()
-
affectedPaths
public java.util.Collection<java.lang.String> affectedPaths()
- Specified by:
affectedPathsin interfaceJobConfig- Returns:
- list of affected paths
-
-