org.apache.whirr
Class InstanceTemplate
java.lang.Object
org.apache.whirr.InstanceTemplate
public class InstanceTemplate
- extends Object
This class describes the type of instances that should be in the cluster.
This is done by specifying the number of instances in each role.
builder
public static InstanceTemplate.Builder builder()
getRoles
public Set<String> getRoles()
getNumberOfInstances
public int getNumberOfInstances()
getMinNumberOfInstances
public int getMinNumberOfInstances()
getTemplate
@Nullable
public org.jclouds.compute.domain.TemplateBuilderSpec getTemplate()
getAwsEc2SpotPrice
@Nullable
public Float getAwsEc2SpotPrice()
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
parse
public static Map<String,String> parse(String... strings)
parse
public static List<InstanceTemplate> parse(org.apache.commons.configuration.Configuration configuration)
throws org.apache.commons.configuration.ConfigurationException
- Throws:
org.apache.commons.configuration.ConfigurationException
Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.