brooklyn.extras.whirr.hadoop.WhirrHadoopCluster Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of brooklyn-systems-hadoop Show documentation
Show all versions of brooklyn-systems-hadoop Show documentation
Brooklyn entities for Hadoop systems deployed using Whirr
package brooklyn.extras.whirr.hadoop;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import brooklyn.entity.proxying.ImplementedBy;
import brooklyn.event.basic.BasicAttributeSensor;
import brooklyn.event.basic.BasicConfigKey;
import brooklyn.extras.whirr.core.WhirrCluster;
import brooklyn.util.flags.SetFromFlag;
@ImplementedBy(WhirrHadoopClusterImpl.class)
public interface WhirrHadoopCluster extends WhirrCluster {
public static final Logger log = LoggerFactory.getLogger(WhirrHadoopCluster.class);
@SetFromFlag("name")
public static final BasicConfigKey NAME = new BasicConfigKey(
String.class, "whirr.hadoop.name", "The name of the Hadoop cluster");
@SetFromFlag("size")
public static final BasicConfigKey SIZE = new BasicConfigKey(
Integer.class, "whirr.hadoop.size", "The size of the Hadoop cluster (including a dedicated machine for the namenode)", 2);
@SetFromFlag("memory")
public static final BasicConfigKey MEMORY = new BasicConfigKey(
Integer.class, "whirr.hadoop.memory", "The minimum amount of memory to use for each node (in megabytes)", 1024);
public static final BasicAttributeSensor NAME_NODE_URL = new BasicAttributeSensor(
String.class, "whirr.hadoop.namenodeUrl", "URL for the Hadoop name node in this cluster (hdfs://...)");
public static final BasicAttributeSensor JOB_TRACKER_HOST_PORT = new BasicAttributeSensor(
String.class, "whirr.hadoop.jobtrackerHostPort", "Hadoop Jobtracker host and port");
public static final BasicAttributeSensor SOCKS_SERVER = new BasicAttributeSensor(
String.class, "whirr.hadoop.socks.server", "Local SOCKS server connection details");
public void generateWhirrClusterRecipe();
public List getUserRecipeLines();
public void addRecipeLine(String line);
}