Package co.cask.cdap.internal.flowlet

Examples of co.cask.cdap.internal.flowlet.DefaultFlowletSpecification


                      new ProcessMethodExtractor(inputTypes));

    this.datasets = ImmutableSet.copyOf(datasets);
    this.inputTypes = immutableCopyOf(inputTypes);
    this.outputTypes = immutableCopyOf(outputTypes);
    this.flowletSpec = new DefaultFlowletSpecification(flowlet.getClass().getName(),
                                                       flowletName == null ? flowletSpec.getName() : flowletName,
                                                       flowletSpec.getDescription(), flowletSpec.getFailurePolicy(),
                                                       datasets, properties,
                                                       flowletSpec.getResources());
  }
View Full Code Here


      /**
       * Creates an instance of {@link FlowletSpecification}.
       * @return An instance of {@link FlowletSpecification}.
       */
      public FlowletSpecification build() {
        return new DefaultFlowletSpecification(name, description, failurePolicy,
                                               dataSets.build(), arguments, resources);
      }
View Full Code Here

    Set<String> dataSets = deserializeSet(jsonObj.get("datasets"), context, String.class);
    Map<String, String> properties = deserializeMap(jsonObj.get("properties"), context, String.class);
    ResourceSpecification resources = context.deserialize(jsonObj.get("resources"),
                                                          new TypeToken<ResourceSpecification>() { }.getType());

    return new DefaultFlowletSpecification(className, name, description, policy, dataSets, properties, resources);
  }
View Full Code Here

TOP

Related Classes of co.cask.cdap.internal.flowlet.DefaultFlowletSpecification

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.