| Package | Description |
|---|---|
| com.alibaba.csp.sentinel.command.handler | |
| com.alibaba.csp.sentinel.slots.block.flow.param |
| Modifier and Type | Method and Description |
|---|---|
static com.alibaba.csp.sentinel.datasource.WritableDataSource<List<ParamFlowRule>> |
ModifyParamFlowRulesCommandHandler.getWritableDataSource() |
| Modifier and Type | Method and Description |
|---|---|
static void |
ModifyParamFlowRulesCommandHandler.setWritableDataSource(com.alibaba.csp.sentinel.datasource.WritableDataSource<List<ParamFlowRule>> hotParamWds) |
| Modifier and Type | Method and Description |
|---|---|
ParamFlowRule |
ParamFlowException.getRule()
Get triggered rule.
|
ParamFlowRule |
ParamFlowRule.setBurstCount(int burstCount) |
ParamFlowRule |
ParamFlowRule.setClusterConfig(ParamFlowClusterConfig clusterConfig) |
ParamFlowRule |
ParamFlowRule.setClusterMode(boolean clusterMode) |
ParamFlowRule |
ParamFlowRule.setControlBehavior(int controlBehavior) |
ParamFlowRule |
ParamFlowRule.setCount(double count) |
ParamFlowRule |
ParamFlowRule.setDurationInSec(long durationInSec) |
ParamFlowRule |
ParamFlowRule.setGrade(int grade) |
ParamFlowRule |
ParamFlowRule.setMaxQueueingTimeMs(int maxQueueingTimeMs) |
ParamFlowRule |
ParamFlowRule.setParamFlowItemList(List<ParamFlowItem> paramFlowItemList) |
ParamFlowRule |
ParamFlowRule.setParamIdx(Integer paramIdx) |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,List<ParamFlowRule>> |
ParamFlowRuleUtil.buildParamRuleMap(List<ParamFlowRule> list)
Build the flow rule map from raw list of flow rules, grouping by resource name.
|
static <K> Map<K,List<ParamFlowRule>> |
ParamFlowRuleUtil.buildParamRuleMap(List<ParamFlowRule> list,
Function<ParamFlowRule,K> groupFunction,
Predicate<ParamFlowRule> filter,
boolean shouldSort)
Build the rule map from raw list of parameter flow rules, grouping by provided group function.
|
static Map<String,List<ParamFlowRule>> |
ParamFlowRuleUtil.buildParamRuleMap(List<ParamFlowRule> list,
Predicate<ParamFlowRule> filter)
Build the parameter flow rule map from raw list of rules, grouping by resource name.
|
static Map<String,List<ParamFlowRule>> |
ParamFlowRuleUtil.buildParamRuleMap(List<ParamFlowRule> list,
Predicate<ParamFlowRule> filter,
boolean shouldSort)
Build the parameter flow rule map from raw list of rules, grouping by resource name.
|
static List<ParamFlowRule> |
ParamFlowRuleManager.getRules()
Get a copy of the rules.
|
static List<ParamFlowRule> |
ParamFlowRuleManager.getRulesOfResource(String resourceName) |
| Modifier and Type | Method and Description |
|---|---|
static void |
ParamFlowRuleUtil.fillExceptionFlowItems(ParamFlowRule rule)
Fill the parameter rule with parsed items.
|
CacheMap<Object,AtomicLong> |
ParameterMetric.getRuleTimeCounter(ParamFlowRule rule)
Get the time record counter for given parameter rule.
|
CacheMap<Object,AtomicLong> |
ParameterMetric.getRuleTokenCounter(ParamFlowRule rule)
Get the token counter for given parameter rule.
|
void |
ParameterMetric.initialize(ParamFlowRule rule) |
static void |
ParameterMetricStorage.initParamMetricsFor(ResourceWrapper resourceWrapper,
ParamFlowRule rule)
Init the parameter metric and index map for given resource.
|
static boolean |
ParamFlowRuleUtil.isValidRule(ParamFlowRule rule)
Check whether the provided rule is valid.
|
static boolean |
ParamFlowChecker.passCheck(ResourceWrapper resourceWrapper,
ParamFlowRule rule,
int count,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,List<ParamFlowRule>> |
ParamFlowRuleUtil.buildParamRuleMap(List<ParamFlowRule> list)
Build the flow rule map from raw list of flow rules, grouping by resource name.
|
static <K> Map<K,List<ParamFlowRule>> |
ParamFlowRuleUtil.buildParamRuleMap(List<ParamFlowRule> list,
Function<ParamFlowRule,K> groupFunction,
Predicate<ParamFlowRule> filter,
boolean shouldSort)
Build the rule map from raw list of parameter flow rules, grouping by provided group function.
|
static <K> Map<K,List<ParamFlowRule>> |
ParamFlowRuleUtil.buildParamRuleMap(List<ParamFlowRule> list,
Function<ParamFlowRule,K> groupFunction,
Predicate<ParamFlowRule> filter,
boolean shouldSort)
Build the rule map from raw list of parameter flow rules, grouping by provided group function.
|
static <K> Map<K,List<ParamFlowRule>> |
ParamFlowRuleUtil.buildParamRuleMap(List<ParamFlowRule> list,
Function<ParamFlowRule,K> groupFunction,
Predicate<ParamFlowRule> filter,
boolean shouldSort)
Build the rule map from raw list of parameter flow rules, grouping by provided group function.
|
static Map<String,List<ParamFlowRule>> |
ParamFlowRuleUtil.buildParamRuleMap(List<ParamFlowRule> list,
Predicate<ParamFlowRule> filter)
Build the parameter flow rule map from raw list of rules, grouping by resource name.
|
static Map<String,List<ParamFlowRule>> |
ParamFlowRuleUtil.buildParamRuleMap(List<ParamFlowRule> list,
Predicate<ParamFlowRule> filter)
Build the parameter flow rule map from raw list of rules, grouping by resource name.
|
static Map<String,List<ParamFlowRule>> |
ParamFlowRuleUtil.buildParamRuleMap(List<ParamFlowRule> list,
Predicate<ParamFlowRule> filter,
boolean shouldSort)
Build the parameter flow rule map from raw list of rules, grouping by resource name.
|
static Map<String,List<ParamFlowRule>> |
ParamFlowRuleUtil.buildParamRuleMap(List<ParamFlowRule> list,
Predicate<ParamFlowRule> filter,
boolean shouldSort)
Build the parameter flow rule map from raw list of rules, grouping by resource name.
|
static void |
ParamFlowRuleManager.loadRules(List<ParamFlowRule> rules)
Load parameter flow rules.
|
static void |
ParamFlowRuleManager.register2Property(SentinelProperty<List<ParamFlowRule>> property)
Listen to the
SentinelProperty for ParamFlowRules. |
| Constructor and Description |
|---|
ParamFlowException(String resourceName,
String param,
ParamFlowRule rule) |
Copyright © 2019 Alibaba Group. All rights reserved.