public class NodeVo extends Object
DefaultNode or ClusterNode.| Constructor and Description |
|---|
NodeVo() |
| Modifier and Type | Method and Description |
|---|---|
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. |
static NodeVo |
fromClusterNode(String name,
com.alibaba.csp.sentinel.node.ClusterNode node)
ClusterNode holds total statistics of the same resource name. |
static NodeVo |
fromDefaultNode(com.alibaba.csp.sentinel.node.DefaultNode node,
String parentId)
DefaultNode holds statistics of every node in the invoke tree. |
Long |
getAverageRt() |
Long |
getBlockQps() |
Long |
getExceptionQps() |
String |
getId() |
Long |
getOneMinuteBlock() |
Long |
getOneMinuteException() |
Long |
getOneMinutePass() |
Long |
getOneMinuteTotal() |
String |
getParentId() |
Long |
getPassQps() |
String |
getResource() |
Long |
getSuccessQps() |
Integer |
getThreadNum() |
Long |
getTimestamp() |
Long |
getTotalQps() |
void |
setAverageRt(Long averageRt) |
void |
setBlockQps(Long blockQps) |
void |
setExceptionQps(Long exceptionQps) |
void |
setId(String id) |
void |
setOneMinuteBlock(Long oneMinuteBlock) |
void |
setOneMinuteException(Long oneMinuteException) |
void |
setOneMinutePass(Long oneMinutePass) |
void |
setOneMinuteTotal(Long oneMinuteTotal) |
void |
setParentId(String parentId) |
void |
setPassQps(Long passQps) |
void |
setResource(String resource) |
void |
setSuccessQps(Long successQps) |
void |
setThreadNum(Integer threadNum) |
void |
setTimestamp(Long timestamp) |
void |
setTotalQps(Long totalQps) |
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 UUIDpublic 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.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.public String getId()
public void setId(String id)
public String getParentId()
public void setParentId(String parentId)
public String getResource()
public void setResource(String resource)
public Integer getThreadNum()
public void setThreadNum(Integer threadNum)
public Long getPassQps()
public void setPassQps(Long passQps)
public Long getBlockQps()
public void setBlockQps(Long blockQps)
public Long getTotalQps()
public void setTotalQps(Long totalQps)
public Long getAverageRt()
public void setAverageRt(Long averageRt)
public Long getSuccessQps()
public void setSuccessQps(Long successQps)
public Long getExceptionQps()
public void setExceptionQps(Long exceptionQps)
public Long getOneMinuteException()
public void setOneMinuteException(Long oneMinuteException)
public Long getOneMinutePass()
public void setOneMinutePass(Long oneMinutePass)
public Long getOneMinuteBlock()
public void setOneMinuteBlock(Long oneMinuteBlock)
public Long getOneMinuteTotal()
public void setOneMinuteTotal(Long oneMinuteTotal)
public Long getTimestamp()
public void setTimestamp(Long timestamp)
Copyright © 2020 Alibaba Group. All rights reserved.