| Modifier and Type | Class and Description |
|---|---|
class |
NullContext
If total
Context exceed Constants.MAX_CONTEXT_NAME_SIZE, a
NullContext will get when invoke ContextUtil.enter(), means
no rules checking will do. |
| Modifier and Type | Method and Description |
|---|---|
static Context |
ContextUtil.enter(String name)
Enter the invocation context.
|
static Context |
ContextUtil.enter(String name,
String origin)
Enter the invocation context.
|
static Context |
ContextUtil.getContext()
Get
Context of current thread. |
protected static Context |
ContextUtil.trueEnter(String name,
String origin) |
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultProcessorSlotChain.entry(Context context,
ResourceWrapper resourceWrapper,
Object t,
int count,
Object... args) |
void |
ProcessorSlot.entry(Context context,
ResourceWrapper resourceWrapper,
T param,
int count,
Object... args)
Entrance of this slot.
|
void |
ProcessorSlot.exit(Context context,
ResourceWrapper resourceWrapper,
int count,
Object... args)
Exit of this slot.
|
void |
DefaultProcessorSlotChain.exit(Context context,
ResourceWrapper resourceWrapper,
int count,
Object... args) |
void |
ProcessorSlot.fireEntry(Context context,
ResourceWrapper resourceWrapper,
Object obj,
int count,
Object... args)
|
void |
AbstractLinkedProcessorSlot.fireEntry(Context context,
ResourceWrapper resourceWrapper,
Object obj,
int count,
Object... args) |
void |
ProcessorSlot.fireExit(Context context,
ResourceWrapper resourceWrapper,
int count,
Object... args)
Means finish of
ProcessorSlot.exit(Context, ResourceWrapper, int, Object...). |
void |
AbstractLinkedProcessorSlot.fireExit(Context context,
ResourceWrapper resourceWrapper,
int count,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
Rule.passCheck(Context context,
DefaultNode node,
int count,
Object... args)
Check whether current statistical indicators meet this rule, which means not exceeding any threshold.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
AuthorityRuleManager.checkAuthority(ResourceWrapper resource,
Context context,
DefaultNode node,
int count) |
void |
AuthoritySlot.entry(Context context,
ResourceWrapper resourceWrapper,
DefaultNode node,
int count,
Object... args) |
void |
AuthoritySlot.exit(Context context,
ResourceWrapper resourceWrapper,
int count,
Object... args) |
boolean |
AuthorityRule.passCheck(Context context,
DefaultNode node,
int count,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
static void |
DegradeRuleManager.checkDegrade(ResourceWrapper resource,
Context context,
DefaultNode node,
int count) |
void |
DegradeSlot.entry(Context context,
ResourceWrapper resourceWrapper,
DefaultNode node,
int count,
Object... args) |
void |
DegradeSlot.exit(Context context,
ResourceWrapper resourceWrapper,
int count,
Object... args) |
boolean |
DegradeRule.passCheck(Context context,
DefaultNode node,
int acquireCount,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
static void |
FlowRuleManager.checkFlow(ResourceWrapper resource,
Context context,
DefaultNode node,
int count) |
void |
FlowSlot.entry(Context context,
ResourceWrapper resourceWrapper,
DefaultNode node,
int count,
Object... args) |
void |
FlowSlot.exit(Context context,
ResourceWrapper resourceWrapper,
int count,
Object... args) |
boolean |
FlowRule.passCheck(Context context,
DefaultNode node,
int acquireCount,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
void |
ClusterBuilderSlot.entry(Context context,
ResourceWrapper resourceWrapper,
DefaultNode node,
int count,
Object... args) |
void |
ClusterBuilderSlot.exit(Context context,
ResourceWrapper resourceWrapper,
int count,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
void |
LogSlot.entry(Context context,
ResourceWrapper resourceWrapper,
DefaultNode obj,
int count,
Object... args) |
void |
LogSlot.exit(Context context,
ResourceWrapper resourceWrapper,
int count,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
void |
NodeSelectorSlot.entry(Context context,
ResourceWrapper resourceWrapper,
Object obj,
int count,
Object... args) |
void |
NodeSelectorSlot.exit(Context context,
ResourceWrapper resourceWrapper,
int count,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
void |
StatisticSlot.entry(Context context,
ResourceWrapper resourceWrapper,
DefaultNode node,
int count,
Object... args) |
void |
StatisticSlot.exit(Context context,
ResourceWrapper resourceWrapper,
int count,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
void |
SystemSlot.entry(Context context,
ResourceWrapper resourceWrapper,
DefaultNode node,
int count,
Object... args) |
void |
SystemSlot.exit(Context context,
ResourceWrapper resourceWrapper,
int count,
Object... args) |
boolean |
SystemRule.passCheck(Context context,
DefaultNode node,
int count,
Object... args) |
Copyright © 2018 Alibaba Group. All rights reserved.