类 NodeVo

java.lang.Object
com.alibaba.csp.sentinel.command.vo.NodeVo

public class NodeVo extends Object
This class is view object of DefaultNode or ClusterNode.
作者:
leyou
  • 构造器详细资料

    • NodeVo

      public NodeVo()
  • 方法详细资料

    • fromDefaultNode

      public static NodeVo fromDefaultNode(com.alibaba.csp.sentinel.node.DefaultNode node, String parentId)
      DefaultNode holds statistics of every node in the invoke tree. We use parentId to hold the tree structure.
      参数:
      node - the DefaultNode to be presented.
      parentId - random generated parent node id, may be a random UUID
      返回:
      node view object.
    • fromClusterNode

      public static NodeVo fromClusterNode(com.alibaba.csp.sentinel.slotchain.ResourceWrapper name, com.alibaba.csp.sentinel.node.ClusterNode node)
      ClusterNode holds total statistics of the same resource name.
      参数:
      name - resource name.
      node - the ClusterNode to be presented.
      返回:
      node view object.
    • fromClusterNode

      public static NodeVo fromClusterNode(String name, com.alibaba.csp.sentinel.node.ClusterNode node)
      ClusterNode holds total statistics of the same resource name.
      参数:
      name - resource name.
      node - the ClusterNode to be presented.
      返回:
      node view object.
    • getId

      public String getId()
    • setId

      public void setId(String id)
    • getParentId

      public String getParentId()
    • setParentId

      public void setParentId(String parentId)
    • getResource

      public String getResource()
    • setResource

      public void setResource(String resource)
    • getThreadNum

      public Integer getThreadNum()
    • setThreadNum

      public void setThreadNum(Integer threadNum)
    • getPassQps

      public Long getPassQps()
    • setPassQps

      public void setPassQps(Long passQps)
    • getBlockQps

      public Long getBlockQps()
    • setBlockQps

      public void setBlockQps(Long blockQps)
    • getTotalQps

      public Long getTotalQps()
    • setTotalQps

      public void setTotalQps(Long totalQps)
    • getAverageRt

      public Long getAverageRt()
    • setAverageRt

      public void setAverageRt(Long averageRt)
    • getSuccessQps

      public Long getSuccessQps()
    • setSuccessQps

      public void setSuccessQps(Long successQps)
    • getExceptionQps

      public Long getExceptionQps()
    • setExceptionQps

      public void setExceptionQps(Long exceptionQps)
    • getOneMinuteException

      public Long getOneMinuteException()
    • setOneMinuteException

      public void setOneMinuteException(Long oneMinuteException)
    • getOneMinutePass

      public Long getOneMinutePass()
    • setOneMinutePass

      public void setOneMinutePass(Long oneMinutePass)
    • getOneMinuteBlock

      public Long getOneMinuteBlock()
    • setOneMinuteBlock

      public void setOneMinuteBlock(Long oneMinuteBlock)
    • getOneMinuteTotal

      public Long getOneMinuteTotal()
    • setOneMinuteTotal

      public void setOneMinuteTotal(Long oneMinuteTotal)
    • getTimestamp

      public Long getTimestamp()
    • setTimestamp

      public void setTimestamp(Long timestamp)