Ejemplo n.º 1
0
 @Override
 public void addFlow(Flow flow) {
   Preconditions.checkArgument(flow != null, "Flow cannot be null.");
   FlowSpecification spec =
       new DefaultFlowSpecification(flow.getClass().getName(), flow.configure());
   flows.put(spec.getName(), spec);
 }
Ejemplo n.º 2
0
 public DefaultFlowSpecification(String className, FlowSpecification other) {
   this(
       className,
       other.getName(),
       other.getDescription(),
       other.getFlowlets(),
       other.getConnections());
 }