Package co.cask.tigon.api

Examples of co.cask.tigon.api.ResourceSpecification$Builder


    String className = jsonObj.get("className").getAsString();
    String name = jsonObj.get("name").getAsString();
    String description = jsonObj.get("description").getAsString();
    FailurePolicy policy = FailurePolicy.valueOf(jsonObj.get("failurePolicy").getAsString());
    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

TOP

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