Beispiel #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);
 }
 public DefaultFlowSpecification(String className, FlowSpecification other) {
   this(
       className,
       other.getName(),
       other.getDescription(),
       other.getFlowlets(),
       other.getConnections());
 }