package org.apache.mesos.hbase.util;
/**
* Constants for HBase Mesos framework.
*/
public final class HBaseConstants {
// Total number of master nodes
public static final Integer TOTAL_MASTER_NODES = 2;
public static final String DEVELOPMENT_MODE_PROPERTY = "mesos.hbase.devel";
// Messages
public static final String RELOAD_CONFIG = "reload config";
// NodeIds
public static final String MASTER_NODE_ID = "masternode";
public static final String SLAVE_NODE_ID = "slavenode";
public static final String STARGATE_NODE_ID = "stargatenode";
// MASTER node TaskId
public static final String MASTER_NODE_TASKID = ".masternode.masternode.";
// ExecutorsIds
public static final String NODE_EXECUTOR_ID = "NodeExecutor";
// Path to Store HDFS Binary
public static final String HBASE_BINARY_DIR = "hbase";
// Current HDFS Binary File Name
public static final String HBASE_BINARY_FILE_NAME = "hbase-mesos-executor-0.1.0.tgz";
// HBase Config File Name
public static final String HBASE_CONFIG_FILE_NAME = "hbase-site.xml";
// HDFS Config File Name
public static final String HDFS_CONFIG_FILE_NAME = "hdfs-site.xml";
// region servers file name
public static final String REGION_SERVERS_FILENAME = "regionservers";
private HBaseConstants() {
}
public static boolean isDevelopmentMode()
{
return System.getProperty("mesos.hbase.devel") != null;
}
}