com.baidubce.services.bvw.model.workflow
Class DagModel

java.lang.Object
  extended by com.baidubce.services.bvw.model.workflow.DagModel

public class DagModel
extends Object

The class of workflow param, is a directed acyclic graph(DAG). DAG contains all of the job stages and the dependencies between them.


Constructor Summary
DagModel()
           
 
Method Summary
 Map<String,List<String>> getDependencies()
           
 Map<String,StageModel> getStages()
           
static DagModel of(Map<String,StageModel> stages, Map<String,List<String>> dependencies)
          Construct a dag with stages.
 void setDependencies(Map<String,List<String>> dependencies)
           
 void setStages(Map<String,StageModel> stages)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DagModel

public DagModel()
Method Detail

of

public static DagModel of(Map<String,StageModel> stages,
                          Map<String,List<String>> dependencies)
Construct a dag with stages.

Parameters:
stages - The stage names and stages
dependencies - The dependencies between stages
Returns:
A dag with specified stages

getStages

public Map<String,StageModel> getStages()

setStages

public void setStages(Map<String,StageModel> stages)

getDependencies

public Map<String,List<String>> getDependencies()

setDependencies

public void setDependencies(Map<String,List<String>> dependencies)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2020. All rights reserved.