public class MasterConf extends Object
Modifier and Type | Field and Description |
---|---|
String |
FORMAT_FILE_PREFIX |
int |
HEARTBEAT_INTERVAL_MS |
String |
HOSTNAME |
String |
JOURNAL_FOLDER |
ArrayList<String> |
PINLIST |
int |
PORT |
int |
QUEUE_SIZE_PER_SELECTOR |
int |
SELECTOR_THREADS |
int |
SERVER_THREADS |
String |
TEMPORARY_FOLDER |
int |
WEB_PORT |
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 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 JOURNAL_FOLDER
public final String FORMAT_FILE_PREFIX
public final String HOSTNAME
public final int PORT
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 static MasterConf 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.