org.hopto.pentaj.jexin.stacktrace
Class StackTrace

java.lang.Object
  extended by org.hopto.pentaj.jexin.stacktrace.StackTrace

public class StackTrace
extends java.lang.Object

NodeAddress, thread, and list of stack frames that identify a single thread execution path. The NodeAddress and thread ID identify a unique and sequential execution path. The trace may be open, meaning there are StackFrames that have not completed yet; or completed, meaning all StackFrames are completed (their associated methods have completed). If the trace is completed you may get the stack frames, if it is not completed you may not get the stack frames.


Constructor Summary
StackTrace(NodeAddress address, long threadId, java.lang.String threadName, StackFrame rootStackFrame)
           
 
Method Summary
 NodeAddress getAddress()
           
 int getStackEndIndex()
          The end index of the stack
 java.util.List<StackFrame> getStackFrames()
           
 long getThreadId()
           
 java.lang.String getThreadName()
           
 boolean isCompleted()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StackTrace

public StackTrace(NodeAddress address,
                  long threadId,
                  java.lang.String threadName,
                  StackFrame rootStackFrame)
Parameters:
address -
threadId -
threadName -
rootStackFrame -
Method Detail

getAddress

public NodeAddress getAddress()
Returns:
the address

getThreadId

public long getThreadId()
Returns:
the threadId

getThreadName

public java.lang.String getThreadName()
Returns:
the threadName

getStackFrames

public java.util.List<StackFrame> getStackFrames()
Returns:
the methodFrames

isCompleted

public boolean isCompleted()

getStackEndIndex

public int getStackEndIndex()
The end index of the stack