public final class TunableFactory extends Object
TunableConstants
Modifier and Type | Field and Description |
---|---|
static String |
CUSTOM_TUNING_FILE_NAME |
static String |
DEFAULT_TUNING_FILE_NAME |
static String |
TUNE_MARKER |
Constructor and Description |
---|
TunableFactory() |
Modifier and Type | Method and Description |
---|---|
static <T extends TunableConstants> |
get(Class<T> c)
Provide tuning object with initialized information from properties in the class path
or system properties.
|
static <T extends TunableConstants> |
get(Properties p,
Class<T> c)
Provide tuning object with initialized information from the properties file.
|
static void |
reload()
Reload the tunable configuration from the system properties
and the configuration file.
|
public static final String DEFAULT_TUNING_FILE_NAME
public static final String CUSTOM_TUNING_FILE_NAME
public static final String TUNE_MARKER
public static void reload()
public static <T extends TunableConstants> T get(Properties p, Class<T> c)
T
- type of requested tunable classp
- Properties from the execution contextc
- Tunable classpublic static <T extends TunableConstants> T get(Class<T> c)
T
- type of requested tunable classc
- Tunable classcache2k API documentation. Copyright © 2000–2018 headissue GmbH, Munich.