public class UserConf extends Object
Modifier and Type | Field and Description |
---|---|
long |
DEFAULT_BLOCK_SIZE_BYTE |
int |
FAILED_SPACE_REQUEST_LIMITS |
int |
FILE_BUFFER_BYTES |
long |
HEARTBEAT_INTERVAL_MS |
long |
MASTER_CLIENT_TIMEOUT_MS |
long |
QUOTA_UNIT_BYTES |
int |
REMOTE_READ_BUFFER_SIZE_BYTE |
Modifier and Type | Method and Description |
---|---|
static void |
clear()
This is for unit test only.
|
static UserConf |
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 int FAILED_SPACE_REQUEST_LIMITS
public final long QUOTA_UNIT_BYTES
public final int FILE_BUFFER_BYTES
public final long HEARTBEAT_INTERVAL_MS
public final long MASTER_CLIENT_TIMEOUT_MS
public final long DEFAULT_BLOCK_SIZE_BYTE
public final int REMOTE_READ_BUFFER_SIZE_BYTE
public static UserConf 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.