public class Context extends Object
EntranceNode: the root of the current invocation
tree.Entry: the current invocation point.Node: the statistics related to the
Entry.
Each SphU#entry() or SphO#entry() should be in a Context,
if we don't invoke ContextUtil#enter() explicitly, DEFAULT context will be used.
A invocation tree will be created if we invoke SphU#entry() multi times in
the same context.
Same resource in different context will count separately, see NodeSelectorSlot.
ContextUtil,
NodeSelectorSlot| Constructor and Description |
|---|
Context(DefaultNode entranceNode,
String name) |
| Modifier and Type | Method and Description |
|---|---|
Entry |
getCurEntry() |
Node |
getCurNode() |
DefaultNode |
getEntranceNode() |
Node |
getLastNode()
Get the parent
Node of the current. |
String |
getName() |
String |
getOrigin() |
double |
getOriginAvgRt() |
double |
getOriginBlockedQps() |
long |
getOriginBlockedRequest() |
int |
getOriginCurThreadNum() |
Node |
getOriginNode() |
double |
getOriginPassedQps() |
double |
getOriginPassedReqQps() |
double |
getOriginTotalQps() |
long |
getOriginTotalRequest() |
void |
setCurEntry(Entry curEntry) |
void |
setCurNode(Node node) |
void |
setOrigin(String origin) |
public Context(DefaultNode entranceNode, String name)
public String getName()
public Node getCurNode()
public void setCurNode(Node node)
public Entry getCurEntry()
public void setCurEntry(Entry curEntry)
public String getOrigin()
public void setOrigin(String origin)
public double getOriginTotalQps()
public double getOriginBlockedQps()
public double getOriginPassedReqQps()
public double getOriginPassedQps()
public long getOriginTotalRequest()
public long getOriginBlockedRequest()
public double getOriginAvgRt()
public int getOriginCurThreadNum()
public DefaultNode getEntranceNode()
public Node getLastNode()
Node of the current.public Node getOriginNode()
Copyright © 2018 Alibaba Group. All rights reserved.