Class 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 Detail

      • CompositeConfig

        public CompositeConfig​(java.util.ArrayList<JobConfig> jobs,
                               java.lang.Boolean sequential)
        Parameters:
        jobs - the list of jobs
        sequential - 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:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface JobConfig
        Returns:
        the name of the job
      • affectedPaths

        public java.util.Collection<java.lang.String> affectedPaths()
        Specified by:
        affectedPaths in interface JobConfig
        Returns:
        list of affected paths