performancemonster.stretchedcallgraph
Class ThreadNode

java.lang.Object
  extended by performancemonster.stretchedcallgraph.ThreadNode
All Implemented Interfaces:
Node

public class ThreadNode
extends java.lang.Object
implements Node


Constructor Summary
ThreadNode(long threadId)
           
 
Method Summary
 Node addChild(GraphElement element)
           
 boolean areChildrenEnded()
           
 boolean equals(java.lang.Object other)
           
 java.util.List<MethodNode> getChildren()
           
 java.lang.String getName()
          Gives the name of this node.
 Node getParent()
           
 long getThreadId()
           
 long getTimeInMethod()
          Gives the time spent in this method, excluding the time spent in sub-methods.
 long getTotalTime()
          Gives the total time spent in this method.
 int hashCode()
           
 boolean isEnded()
          Indicates whether or not the underlying graph element is ended or not.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ThreadNode

public ThreadNode(long threadId)
Method Detail

addChild

public Node addChild(GraphElement element)
Specified by:
addChild in interface Node

getParent

public Node getParent()
Specified by:
getParent in interface Node

getChildren

public java.util.List<MethodNode> getChildren()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getName

public java.lang.String getName()
Description copied from interface: Node
Gives the name of this node.

Specified by:
getName in interface Node
Returns:
The name of this node.

getTotalTime

public long getTotalTime()
Description copied from interface: Node
Gives the total time spent in this method.

Specified by:
getTotalTime in interface Node
Returns:

getTimeInMethod

public long getTimeInMethod()
Description copied from interface: Node
Gives the time spent in this method, excluding the time spent in sub-methods.

Specified by:
getTimeInMethod in interface Node
Returns:

getThreadId

public long getThreadId()

isEnded

public boolean isEnded()
Description copied from interface: Node
Indicates whether or not the underlying graph element is ended or not.

Specified by:
isEnded in interface Node
Returns:
true if the underlying graph element is ended, false otherwise.

areChildrenEnded

public boolean areChildrenEnded()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object


Copyright © 2005 Ole Friis. All Rights Reserved.