public class ClusterNode extends StatisticNode
This class stores summary runtime statistics of the resource, including rt, thread count, qps
and so on. Same resource shares the same ClusterNode globally, no matter in witch
Context.
To distinguish invocation from different origin (declared in
ContextUtil.enter(String name, String origin)),
one ClusterNode holds an originCountMap, this map holds StatisticNode
of different origin. Use getOriginNode(String) to get Node of the specific
origin.
Note that 'origin' usually is Service Consumer's app name.
| Constructor and Description |
|---|
ClusterNode() |
| Modifier and Type | Method and Description |
|---|---|
HashMap<String,StatisticNode> |
getOriginCountMap() |
Node |
getOriginNode(String origin)
Get
Node of the specific origin. |
void |
trace(Throwable throwable,
int count)
Add exception count only when
throwable is not BlockException.isBlockException(Throwable) |
addPassRequest, avgRt, blockedQps, blockedRequest, curThreadNum, debug, decreaseThreadNum, exceptionQps, increaseBlockedQps, increaseExceptionQps, increaseThreadNum, maxSuccessQps, metrics, minRt, passQps, previousBlockQps, previousPassQps, reset, rt, successQps, totalException, totalQps, totalRequest, totalSuccesspublic Node getOriginNode(String origin)
Node of the specific origin. Usually the origin is the Service Consumer's app name.origin - The caller's name. It is declared in the
ContextUtil.enter(String name, String origin).Node of the specific origin.public HashMap<String,StatisticNode> getOriginCountMap()
public void trace(Throwable throwable, int count)
throwable is not BlockException.isBlockException(Throwable)throwable - count - count to add.Copyright © 2018 Alibaba Group. All rights reserved.