Class TraceThread

All Implemented Interfaces:
TraceThread, Serializable, Cloneable, Iterable, Collection, List, RandomAccess, SequencedCollection

public final class TraceThread extends Vector implements TraceThread
Vector containing all trace records for a specific thread.
See Also:
  • Field Details

    • threadID

      protected long threadID
    • threadName

      protected String threadName
    • numBufs

      public static int numBufs
  • Constructor Details

    • TraceThread

      protected TraceThread(long ID, String threadName)
      construct a new trace thread vector
      Parameters:
      ID - ( hex value of threadID )
      threadName -
  • Method Details

    • getBuffersProcessed

      public static int getBuffersProcessed()
    • getNextTracePoint

      public TracePoint getNextTracePoint()
    • getIndent

      public int getIndent()
    • indent

      public void indent()
    • outdent

      public void outdent()
    • getTimeOfNextTracePoint

      public BigInteger getTimeOfNextTracePoint()
    • getChronologicalTracePointIterator

      public Iterator getChronologicalTracePointIterator()
      Specified by:
      getChronologicalTracePointIterator in interface TraceThread
      Returns:
      a TracePoint Iterator that can be used to walk each TracePoint on the current TraceThread in chronological order. Note that the Iterator consumes data as it walks, and as such each TraceThread can be Iterated over once only. Subsequent attempts to Iterate will return an empty Iterator, as will an attempt to iterate over an unpopulated TraceThread.
    • getThreadName

      public String getThreadName()
      Specified by:
      getThreadName in interface TraceThread
      Returns:
      The name of the TraceThread, or null if the Thread was unnamed.
    • getThreadID

      public long getThreadID()
      Specified by:
      getThreadID in interface TraceThread
      Returns:
      the ID of the thread that generated the current TraceThread's data.