public class CommonConf extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
ASYNC_ENABLED |
String |
TACHYON_HOME |
String |
UNDERFS_ADDRESS |
String |
UNDERFS_DATA_FOLDER |
String |
UNDERFS_HDFS_IMPL |
String |
UNDERFS_WORKERS_FOLDER |
boolean |
USE_ZOOKEEPER |
String |
WEB_RESOURCES |
String |
ZOOKEEPER_ADDRESS |
String |
ZOOKEEPER_ELECTION_PATH |
String |
ZOOKEEPER_LEADER_PATH |
Modifier and Type | Method and Description |
---|---|
static void |
clear()
This is for unit test only.
|
static CommonConf |
get() |
static boolean |
getBooleanProperty(String property) |
static boolean |
getBooleanProperty(String property,
boolean defaultValue) |
static int |
getIntProperty(String property) |
static int |
getIntProperty(String property,
int defaultValue) |
static long |
getLongProperty(String property) |
static long |
getLongProperty(String property,
int defaultValue) |
static String |
getProperty(String property) |
static String |
getProperty(String property,
String defaultValue) |
public final String TACHYON_HOME
public final String UNDERFS_ADDRESS
public final String UNDERFS_DATA_FOLDER
public final String UNDERFS_WORKERS_FOLDER
public final String UNDERFS_HDFS_IMPL
public final String WEB_RESOURCES
public final boolean USE_ZOOKEEPER
public final String ZOOKEEPER_ADDRESS
public final String ZOOKEEPER_ELECTION_PATH
public final String ZOOKEEPER_LEADER_PATH
public final boolean ASYNC_ENABLED
public static CommonConf get()
public static void clear()
public static boolean getBooleanProperty(String property)
public static boolean getBooleanProperty(String property, boolean defaultValue)
public static int getIntProperty(String property)
public static int getIntProperty(String property, int defaultValue)
public static long getLongProperty(String property)
public static long getLongProperty(String property, int defaultValue)
Copyright © 2014. All rights reserved.