public class WorkerConf extends Object
Modifier and Type | Field and Description |
---|---|
String |
DATA_FOLDER |
int |
DATA_PORT |
long |
HEARTBEAT_TIMEOUT_MS |
String |
MASTER_HOSTNAME |
int |
MASTER_PORT |
long |
MEMORY_SIZE |
int |
PORT |
int |
QUEUE_SIZE_PER_SELECTOR |
int |
SELECTOR_THREADS |
int |
SERVER_THREADS |
int |
TO_MASTER_HEARTBEAT_INTERVAL_MS |
String |
USER_TEMP_RELATIVE_FOLDER |
int |
USER_TIMEOUT_MS |
int |
WORKER_CHECKPOINT_THREADS |
int |
WORKER_PER_THREAD_CHECKPOINT_CAP_MB_SEC |
Modifier and Type | Method and Description |
---|---|
static void |
clear()
This is for unit test only.
|
static WorkerConf |
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 MASTER_HOSTNAME
public final int MASTER_PORT
public final int PORT
public final int DATA_PORT
public final String DATA_FOLDER
public final long MEMORY_SIZE
public final long HEARTBEAT_TIMEOUT_MS
public final int TO_MASTER_HEARTBEAT_INTERVAL_MS
public final int SELECTOR_THREADS
public final int QUEUE_SIZE_PER_SELECTOR
public final int SERVER_THREADS
public final int USER_TIMEOUT_MS
public final String USER_TEMP_RELATIVE_FOLDER
public final int WORKER_CHECKPOINT_THREADS
public final int WORKER_PER_THREAD_CHECKPOINT_CAP_MB_SEC
public static void clear()
public static WorkerConf get()
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.