public final class SentinelConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
APP_TYPE |
static int |
APP_TYPE_COMMON
The default application type.
|
static String |
CHARSET |
static String |
COLD_FACTOR |
static int |
DEFAULT_STATISTIC_MAX_RT |
static String |
SINGLE_METRIC_FILE_SIZE |
static String |
SPI_CLASSLOADER |
static String |
STATISTIC_MAX_RT |
static String |
TOTAL_METRIC_FILE_COUNT |
| Modifier and Type | Method and Description |
|---|---|
static String |
charset() |
static int |
coldFactor() |
static String |
getAppName() |
static int |
getAppType()
Get application type.
|
static String |
getConfig(String key)
Get config value of the specific key.
|
static String |
removeConfig(String key) |
static void |
setConfig(String key,
String value) |
static void |
setConfigIfAbsent(String key,
String value) |
static long |
singleMetricFileSize() |
static int |
statisticMaxRt()
Get the max RT value that Sentinel could accept.
|
static int |
totalMetricFileCount() |
public static final int APP_TYPE_COMMON
public static final String APP_TYPE
public static final String CHARSET
public static final String SINGLE_METRIC_FILE_SIZE
public static final String TOTAL_METRIC_FILE_COUNT
public static final String COLD_FACTOR
public static final String STATISTIC_MAX_RT
public static final String SPI_CLASSLOADER
public static final int DEFAULT_STATISTIC_MAX_RT
public static String getConfig(String key)
key - config keypublic static String getAppName()
public static int getAppType()
public static String charset()
public static long singleMetricFileSize()
public static int totalMetricFileCount()
public static int coldFactor()
public static int statisticMaxRt()
Get the max RT value that Sentinel could accept.
Response time that exceeds statisticMaxRt will be recorded as this value.
The default value is DEFAULT_STATISTIC_MAX_RT.
Copyright © 2019 Alibaba Group. All rights reserved.