Package co.cask.cdap.api.workflow

Examples of co.cask.cdap.api.workflow.WorkflowActionSpecification$Builder


  public DefaultWorkflowActionSpecification(String name, String description, Map<String, String> properties) {
    this(null, name, description, properties);
  }

  public DefaultWorkflowActionSpecification(WorkflowAction action) {
    WorkflowActionSpecification spec = action.configure();

    Map<String, String> properties = Maps.newHashMap(spec.getProperties());
    Reflections.visit(action, TypeToken.of(action.getClass()),
                      new PropertyFieldExtractor(properties));

    this.className = action.getClass().getName();
    this.name = spec.getName();
    this.description = spec.getDescription();
    this.properties = ImmutableMap.copyOf(properties);
  }
View Full Code Here


    // Executes actions step by step. Individually invoke the init()->run()->destroy() sequence.
    Iterator<WorkflowActionSpecification> iterator = workflowSpec.getActions().iterator();
    int step = 0;
    while (running && iterator.hasNext()) {
      WorkflowActionSpecification actionSpec = iterator.next();
      workflowStatus = new WorkflowStatus(state(), actionSpec, step++);

      WorkflowAction action = initialize(actionSpec, classLoader, instantiator);
      try {
        action.run();
View Full Code Here

TOP

Related Classes of co.cask.cdap.api.workflow.WorkflowActionSpecification$Builder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.