public class UserConf extends Object
Modifier and Type | Field and Description |
---|---|
long |
DEFAULT_BLOCK_SIZE_BYTE |
WriteType |
DEFAULT_WRITE_TYPE |
int |
FAILED_SPACE_REQUEST_LIMITS |
int |
FILE_BUFFER_BYTES |
long |
HEARTBEAT_INTERVAL_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 <T extends Enum<T>> |
getEnumProperty(String property,
T defaultValue) |
static Integer |
getIntegerProperty(String property,
Integer defaultValue) |
static int |
getIntProperty(String property) |
static int |
getIntProperty(String property,
int defaultValue) |
static com.google.common.collect.ImmutableList<String> |
getListProperty(String property,
com.google.common.collect.ImmutableList<String> 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 DEFAULT_BLOCK_SIZE_BYTE
public final int REMOTE_READ_BUFFER_SIZE_BYTE
public final WriteType DEFAULT_WRITE_TYPE
public static void clear()
public static UserConf get()
public static boolean getBooleanProperty(String property)
public static boolean getBooleanProperty(String property, boolean defaultValue)
public static <T extends Enum<T>> T getEnumProperty(String property, T 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)
public static com.google.common.collect.ImmutableList<String> getListProperty(String property, com.google.common.collect.ImmutableList<String> defaultValue)
Copyright © 2015. All Rights Reserved.