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.
InstanceTemplate
public InstanceTemplate(int numberOfInstances,
String... roles)
InstanceTemplate
public InstanceTemplate(int numberOfInstances,
Set<String> roles)
InstanceTemplate
public InstanceTemplate(int numberOfInstances,
int minNumberOfInstances,
String... roles)
InstanceTemplate
public InstanceTemplate(int numberOfInstances,
int minNumberOfInstances,
Set<String> roles)
getRoles
public Set<String> getRoles()
getNumberOfInstances
public int getNumberOfInstances()
getMinNumberOfInstances
public int getMinNumberOfInstances()
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 cconf)
Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.