类 NacosTpsControlManager
java.lang.Object
com.alibaba.nacos.plugin.control.tps.TpsControlManager
com.alibaba.nacos.plugin.control.impl.NacosTpsControlManager
Nacos default control plugin implementation.
- 作者:
- shiyiyue
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明protected ScheduledExecutorServiceprotected final Map<String, TpsBarrier> point name -> tps barrier.protected final Map<String, TpsControlRule> point name -> tps control rule.从类继承的字段 com.alibaba.nacos.plugin.control.tps.TpsControlManager
tpsBarrierCreator -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidapplyTpsRule(String pointName, TpsControlRule rule) apple tps rule.check(TpsCheckRequest tpsRequest) check tps result.getName()getRules()voidregisterTpsPoint(String pointName) apple tps rule.protected void从类继承的方法 com.alibaba.nacos.plugin.control.tps.TpsControlManager
buildTpsBarrierCreator, buildTpsControlRuleParser, getTpsControlRuleParser, initTpsRule
-
字段详细资料
-
points
point name -> tps barrier. -
rules
point name -> tps control rule. -
executorService
-
-
构造器详细资料
-
NacosTpsControlManager
public NacosTpsControlManager()
-
-
方法详细资料
-
startTpsReport
protected void startTpsReport() -
registerTpsPoint
apple tps rule.- 指定者:
registerTpsPoint在类中TpsControlManager- 参数:
pointName- pointName.
-
applyTpsRule
apple tps rule.- 指定者:
applyTpsRule在类中TpsControlManager- 参数:
pointName- pointName.rule- rule.
-
getPoints
- 指定者:
getPoints在类中TpsControlManager
-
getRules
- 指定者:
getRules在类中TpsControlManager
-
check
check tps result.- 指定者:
check在类中TpsControlManager- 参数:
tpsRequest- TpsRequest.- 返回:
- check current tps is allowed.
-
getName
- 指定者:
getName在类中TpsControlManager
-