|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.infrared.agent.OperationTree
This class represents a tree of methods as they happen during the execution of an operation. Each method on the tree is represented using an ApiTime object.
It also keeps track of the SQL statements executed as part of this operation.
| Constructor Summary | |
OperationTree()
|
|
OperationTree(OperationTree other,
IdMapper idMapper)
|
|
| Method Summary | |
void |
appendToName(ApiTime child)
This is called when a new node is added to the operation tree The api name is appended to the operation name. |
boolean |
containsMethod(String apiName)
Checks if an API with the given name was invoked as part of this operation. |
TreeNode |
getHead()
Gets the ApiTime that represents the start method of the operation. |
int |
getNoOfSqlCalls()
|
String |
getOperationName()
Gets the name of the call. |
Tree |
getTree()
|
boolean |
hasSqlCalls()
|
void |
incrementNoOfSqlCalls()
|
boolean |
isFaulty()
Checks if a tree is marked as faulty. |
void |
markAsFaulty()
Marks the tree as faulty. |
void |
setHead(TreeNode head)
|
String |
toString()
Gets the string representation of this OperationTree. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public OperationTree()
public OperationTree(OperationTree other,
IdMapper idMapper)
| Method Detail |
public TreeNode getHead()
public void appendToName(ApiTime child)
child - public void markAsFaulty()
public boolean isFaulty()
public String getOperationName()
public String toString()
public boolean containsMethod(String apiName)
apiName -
public void setHead(TreeNode head)
public boolean hasSqlCalls()
public int getNoOfSqlCalls()
public void incrementNoOfSqlCalls()
public Tree getTree()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||