类 DefaultNode
java.lang.Object
com.alibaba.csp.sentinel.node.StatisticNode
com.alibaba.csp.sentinel.node.DefaultNode
- 所有已实现的接口:
Node,OccupySupport,DebugSupport
- 直接已知子类:
EntranceNode
A Node used to hold statistics for specific resource name in the specific context.
Each distinct resource in each distinct Context will corresponding to a DefaultNode.
This class may have a list of sub DefaultNodes. Child nodes will be created when
calling SphU#entry() or SphO@entry() multiple times in the same Context.
- 作者:
- qinan.qn
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidAdd child node to current node.voidaddPassRequest(int count) Add pass count.voidaddRtAndSuccess(long rt, int successCount) Add rt and success count.voidDecrease current thread count.getId()voidincreaseBlockQps(int count) Increase the block count.voidincreaseExceptionQps(int count) Add the biz exception count.voidIncrease current thread count.voidvoidReset the child node list.voidsetClusterNode(ClusterNode clusterNode) 从类继承的方法 com.alibaba.csp.sentinel.node.StatisticNode
addOccupiedPass, addWaitingRequest, avgRt, blockQps, blockRequest, curThreadNum, debug, exceptionQps, maxSuccessQps, metrics, minRt, occupiedPassQps, passQps, previousBlockQps, previousPassQps, rawMetricsInMin, reset, successQps, totalException, totalPass, totalQps, totalRequest, totalSuccess, tryOccupyNext, waiting
-
构造器详细资料
-
DefaultNode
-
-
方法详细资料
-
getId
-
getClusterNode
-
setClusterNode
-
addChild
Add child node to current node.- 参数:
node- valid child node
-
removeChildList
public void removeChildList()Reset the child node list. -
getChildList
-
increaseBlockQps
public void increaseBlockQps(int count) 从接口复制的说明:NodeIncrease the block count.- 指定者:
increaseBlockQps在接口中Node- 覆盖:
increaseBlockQps在类中StatisticNode- 参数:
count- count to add
-
increaseExceptionQps
public void increaseExceptionQps(int count) 从接口复制的说明:NodeAdd the biz exception count.- 指定者:
increaseExceptionQps在接口中Node- 覆盖:
increaseExceptionQps在类中StatisticNode- 参数:
count- count to add
-
addRtAndSuccess
public void addRtAndSuccess(long rt, int successCount) 从接口复制的说明:NodeAdd rt and success count.- 指定者:
addRtAndSuccess在接口中Node- 覆盖:
addRtAndSuccess在类中StatisticNode- 参数:
rt- response timesuccessCount- success count to add
-
increaseThreadNum
public void increaseThreadNum()从接口复制的说明:NodeIncrease current thread count.- 指定者:
increaseThreadNum在接口中Node- 覆盖:
increaseThreadNum在类中StatisticNode
-
decreaseThreadNum
public void decreaseThreadNum()从接口复制的说明:NodeDecrease current thread count.- 指定者:
decreaseThreadNum在接口中Node- 覆盖:
decreaseThreadNum在类中StatisticNode
-
addPassRequest
public void addPassRequest(int count) 从接口复制的说明:NodeAdd pass count.- 指定者:
addPassRequest在接口中Node- 覆盖:
addPassRequest在类中StatisticNode- 参数:
count- count to add pass
-
printDefaultNode
public void printDefaultNode()
-