@Spi(order=-7000) public class StatisticSlot extends AbstractLinkedProcessorSlot<DefaultNode>
A processor slot that dedicates to real time statistics. When entering this slot, we need to separately count the following information:
ClusterNode: total statistics of a cluster node of the resource ID.DefaultNode: statistics for specific resource name in the specific context.| Constructor and Description |
|---|
StatisticSlot() |
| Modifier and Type | Method and Description |
|---|---|
void |
entry(Context context,
ResourceWrapper resourceWrapper,
DefaultNode node,
int count,
boolean prioritized,
Object... args)
Entrance of this slot.
|
void |
exit(Context context,
ResourceWrapper resourceWrapper,
int count,
Object... args)
Exit of this slot.
|
fireEntry, fireExit, getNext, setNextpublic void entry(Context context, ResourceWrapper resourceWrapper, DefaultNode node, int count, boolean prioritized, Object... args) throws Throwable
ProcessorSlotpublic void exit(Context context, ResourceWrapper resourceWrapper, int count, Object... args)
ProcessorSlotcontext - current ContextresourceWrapper - current resourcecount - tokens neededargs - parameters of the original callCopyright © 2021 Alibaba Group. All rights reserved.