类 DefaultNode

java.lang.Object
com.alibaba.csp.sentinel.node.StatisticNode
com.alibaba.csp.sentinel.node.DefaultNode
所有已实现的接口:
Node, OccupySupport, DebugSupport
直接已知子类:
EntranceNode

public class DefaultNode extends StatisticNode

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
另请参阅:
  • 构造器详细资料

  • 方法详细资料

    • getId

      public ResourceWrapper getId()
    • getClusterNode

      public ClusterNode getClusterNode()
    • setClusterNode

      public void setClusterNode(ClusterNode clusterNode)
    • addChild

      public void addChild(Node node)
      Add child node to current node.
      参数:
      node - valid child node
    • removeChildList

      public void removeChildList()
      Reset the child node list.
    • getChildList

      public Set<Node> getChildList()
    • increaseBlockQps

      public void increaseBlockQps(int count)
      从接口复制的说明: Node
      Increase the block count.
      指定者:
      increaseBlockQps 在接口中 Node
      覆盖:
      increaseBlockQps 在类中 StatisticNode
      参数:
      count - count to add
    • increaseExceptionQps

      public void increaseExceptionQps(int count)
      从接口复制的说明: Node
      Add the biz exception count.
      指定者:
      increaseExceptionQps 在接口中 Node
      覆盖:
      increaseExceptionQps 在类中 StatisticNode
      参数:
      count - count to add
    • addRtAndSuccess

      public void addRtAndSuccess(long rt, int successCount)
      从接口复制的说明: Node
      Add rt and success count.
      指定者:
      addRtAndSuccess 在接口中 Node
      覆盖:
      addRtAndSuccess 在类中 StatisticNode
      参数:
      rt - response time
      successCount - success count to add
    • increaseThreadNum

      public void increaseThreadNum()
      从接口复制的说明: Node
      Increase current thread count.
      指定者:
      increaseThreadNum 在接口中 Node
      覆盖:
      increaseThreadNum 在类中 StatisticNode
    • decreaseThreadNum

      public void decreaseThreadNum()
      从接口复制的说明: Node
      Decrease current thread count.
      指定者:
      decreaseThreadNum 在接口中 Node
      覆盖:
      decreaseThreadNum 在类中 StatisticNode
    • addPassRequest

      public void addPassRequest(int count)
      从接口复制的说明: Node
      Add pass count.
      指定者:
      addPassRequest 在接口中 Node
      覆盖:
      addPassRequest 在类中 StatisticNode
      参数:
      count - count to add pass
    • printDefaultNode

      public void printDefaultNode()