tachyon.conf
Class MasterConf

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

public class MasterConf
extends Object

Configurations used by master only.


Field Summary
 String CHECKPOINT_FILE
           
 int HEARTBEAT_INTERVAL_MS
           
 String HOSTNAME
           
 String LOG_FILE
           
 ArrayList<String> PINLIST
           
 int PORT
           
 int QUEUE_SIZE_PER_SELECTOR
           
 int SELECTOR_THREADS
           
 int SERVER_THREADS
           
 int WEB_PORT
           
 ArrayList<String> WHITELIST
           
 int WORKER_TIMEOUT_MS
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHECKPOINT_FILE

public final String CHECKPOINT_FILE

LOG_FILE

public final String LOG_FILE

HOSTNAME

public final String HOSTNAME

PORT

public final int PORT

WEB_PORT

public final int WEB_PORT

HEARTBEAT_INTERVAL_MS

public final int 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

WORKER_TIMEOUT_MS

public final int WORKER_TIMEOUT_MS

WHITELIST

public final ArrayList<String> WHITELIST

PINLIST

public final ArrayList<String> PINLIST
Method Detail

get

public static MasterConf 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.