public class MasterConf extends Object
Modifier and Type | Field and Description |
---|---|
String |
FORMAT_FILE_PREFIX |
int |
HEARTBEAT_INTERVAL_MS |
String |
HOSTNAME |
String |
JOURNAL_FOLDER |
String |
KEYTAB |
String |
KEYTAB_KEY |
String |
MASTER_ADDRESS |
int |
PORT |
String |
PRINCIPAL |
String |
PRINCIPAL_KEY |
int |
QUEUE_SIZE_PER_SELECTOR |
int |
SELECTOR_THREADS |
int |
SERVER_THREADS |
String |
TEMPORARY_FOLDER |
int |
WEB_PORT |
int |
WEB_THREAD_COUNT |
ArrayList<String> |
WHITELIST |
int |
WORKER_TIMEOUT_MS |
Modifier and Type | Method and Description |
---|---|
static void |
clear()
This is for unit test only.
|
static MasterConf |
get() |
static boolean |
getBooleanProperty(String property) |
static boolean |
getBooleanProperty(String property,
boolean defaultValue) |
static <T extends Enum<T>> |
getEnumProperty(String property,
T defaultValue) |
static Integer |
getIntegerProperty(String property,
Integer defaultValue) |
static int |
getIntProperty(String property) |
static int |
getIntProperty(String property,
int defaultValue) |
static com.google.common.collect.ImmutableList<String> |
getListProperty(String property,
com.google.common.collect.ImmutableList<String> 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 JOURNAL_FOLDER
public final String FORMAT_FILE_PREFIX
public final String HOSTNAME
public final int PORT
public final String MASTER_ADDRESS
public final int WEB_PORT
public final String TEMPORARY_FOLDER
public final int HEARTBEAT_INTERVAL_MS
public final int SELECTOR_THREADS
public final int QUEUE_SIZE_PER_SELECTOR
public final int SERVER_THREADS
public final int WORKER_TIMEOUT_MS
public final int WEB_THREAD_COUNT
public final String KEYTAB_KEY
public final String KEYTAB
public final String PRINCIPAL_KEY
public final String PRINCIPAL
public static void clear()
public static MasterConf get()
public static boolean getBooleanProperty(String property)
public static boolean getBooleanProperty(String property, boolean defaultValue)
public static <T extends Enum<T>> T getEnumProperty(String property, T 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)
public static com.google.common.collect.ImmutableList<String> getListProperty(String property, com.google.common.collect.ImmutableList<String> defaultValue)
Copyright © 2015. All Rights Reserved.