Package co.cask.tigon.internal.flowlet

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


    Map<String, String> properties = deserializeMap(jsonObj.get("properties"), context, String.class);
    ResourceSpecification resources = context.deserialize(jsonObj.get("resources"),
                                                          new TypeToken<ResourceSpecification>() { }.getType());
    int maxInstances = jsonObj.get("maxInstances").getAsInt();

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


                      new OutputEmitterFieldExtractor(outputTypes),
                      new ProcessMethodExtractor(inputTypes));

    this.inputTypes = immutableCopyOf(inputTypes);
    this.outputTypes = immutableCopyOf(outputTypes);
    this.flowletSpec = new DefaultFlowletSpecification(flowlet.getClass().getName(),
                                                       flowletName == null ? flowletSpec.getName() : flowletName,
                                                       flowletSpec.getDescription(), flowletSpec.getFailurePolicy(),
                                                       properties, flowletSpec.getResources(),
                                                       flowletSpec.getMaxInstances());
  }
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, arguments, resources, maxInstances);
      }
View Full Code Here

TOP

Related Classes of co.cask.tigon.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.