|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javasimon.callback.calltree.CallTree
public class CallTree
Call tree contains the root call tree node and the current call stack.
| Field Summary | |
|---|---|
private LinkedList<CallTreeNode> |
callStack
Call stack is the path (made of tree nodes) from root tree node to the current tree node. |
private Long |
logThreshold
Log threshold. // TODO in what unit? |
private CallTreeNode |
rootNode
Root call tree node. |
| Constructor Summary | |
|---|---|
CallTree(Long logThreshold)
Main constructor. |
|
| Method Summary | |
|---|---|
String |
getLogMessage(Split context)
Transforms this call tree into a loggable message. |
Long |
getLogThreshold()
|
CallTreeNode |
getRootNode()
|
void |
onRootStopwatchStart(CallTreeNode rootNode,
Split split)
When stopwatch is started, and the root tree node is pushed into the call stack, this method is called. |
protected void |
onRootStopwatchStop(CallTreeNode callTreeNode,
Split split)
When stopwatch is stopped, and root tree node is popped from call stack, this method is called. |
CallTreeNode |
onStopwatchStart(Split split)
When stopwatch is started, a new tree node is added to the parent tree node and pushed on the call stack. |
CallTreeNode |
onStopwatchStop(Split split)
When stopwatch is stopped, the the split is added to current tree node and this tree node is popped from call stack. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final Long logThreshold
private final LinkedList<CallTreeNode> callStack
private CallTreeNode rootNode
| Constructor Detail |
|---|
public CallTree(Long logThreshold)
logThreshold - Log threshold| Method Detail |
|---|
public CallTreeNode onStopwatchStart(Split split)
public CallTreeNode onStopwatchStop(Split split)
public void onRootStopwatchStart(CallTreeNode rootNode,
Split split)
rootNode - Root tree nodesplit - Root split
protected void onRootStopwatchStop(CallTreeNode callTreeNode,
Split split)
public String getLogMessage(Split context)
getLogMessage in interface LogMessageSource<Split>context - Context
public Long getLogThreshold()
public CallTreeNode getRootNode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||