tachyon.conf
Class WorkerConf

java.lang.Object
  extended by tachyon.conf.WorkerConf

public class WorkerConf
extends Object


Field Summary
 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
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MASTER_HOSTNAME

public final String MASTER_HOSTNAME

MASTER_PORT

public final int MASTER_PORT

PORT

public final int PORT

DATA_PORT

public final int DATA_PORT

DATA_FOLDER

public final String DATA_FOLDER

MEMORY_SIZE

public final long MEMORY_SIZE

HEARTBEAT_TIMEOUT_MS

public final long HEARTBEAT_TIMEOUT_MS

TO_MASTER_HEARTBEAT_INTERVAL_MS

public final int TO_MASTER_HEARTBEAT_INTERVAL_MS

SELECTOR_THREADS

public final int SELECTOR_THREADS

QUEUE_SIZE_PER_SELECTOR

public final int QUEUE_SIZE_PER_SELECTOR

SERVER_THREADS

public final int SERVER_THREADS

USER_TIMEOUT_MS

public final int USER_TIMEOUT_MS

USER_TEMP_RELATIVE_FOLDER

public final String USER_TEMP_RELATIVE_FOLDER
See Also:
Constant Field Values
Method Detail

get

public static WorkerConf get()

clear

public static void clear()
This is for unit test only. DO NOT use it for other purpose.


getProperty

public static String getProperty(String property)

getProperty

public static String getProperty(String property,
                                 String defaultValue)

getBooleanProperty

public static boolean getBooleanProperty(String property)

getBooleanProperty

public static boolean getBooleanProperty(String property,
                                         boolean defaultValue)

getIntProperty

public static int getIntProperty(String property)

getIntProperty

public static int getIntProperty(String property,
                                 int defaultValue)

getLongProperty

public static long getLongProperty(String property)

getLongProperty

public static long getLongProperty(String property,
                                   int defaultValue)


Copyright © 2013. All Rights Reserved.