public class FaultToleranceConfigManager extends Object
| 构造器和说明 |
|---|
FaultToleranceConfigManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
static FaultToleranceConfig |
getConfig(String appName)
Get config if absent, else return default
|
static int |
getDegradeLeastWeight(String appName)
Gets degrade least weight.
|
static int |
getDegradeMaxIpCount(String appName)
Gets degrade max ip count.
|
static long |
getLeastCallCount(String appName)
Gets least invoke count.
|
static long |
getLeastWindowCount(String appName)
Gets least window count.
|
static double |
getLeastWindowExceptionRateMultiple(String appName)
Gets least window exception rate multiple.
|
static long |
getTimeWindow(String appName)
getTimeWindow
|
static double |
getWeightDegradeRate(String appName)
Gets weight degrade rate.
|
static double |
getWeightRecoverRate(String appName)
Gets weight recover rate.
|
static boolean |
isDegradeEffective(String appName)
Is degrade effective boolean.
|
static boolean |
isEnable()
If one app enable this AFT, return true.
|
static boolean |
isRegulationEffective(String appName)
Is regulation effective boolean.
|
static void |
putAppConfig(String appName,
FaultToleranceConfig value)
Put app config.
|
public static void putAppConfig(String appName, FaultToleranceConfig value)
appName - the app namevalue - the valuepublic static boolean isEnable()
public static FaultToleranceConfig getConfig(String appName)
appName - App namepublic static long getTimeWindow(String appName)
appName - App namepublic static long getLeastCallCount(String appName)
appName - the app namepublic static long getLeastWindowCount(String appName)
appName - the app namepublic static double getLeastWindowExceptionRateMultiple(String appName)
appName - the app namepublic static double getWeightDegradeRate(String appName)
appName - the app namepublic static boolean isRegulationEffective(String appName)
appName - the app namepublic static boolean isDegradeEffective(String appName)
appName - the app namepublic static int getDegradeLeastWeight(String appName)
appName - the app namepublic static double getWeightRecoverRate(String appName)
appName - the app namepublic static int getDegradeMaxIpCount(String appName)
appName - the app nameCopyright © 2008–2018 The Ant Financial. All rights reserved.