java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector
com.ibm.jvm.format.TraceThread
- All Implemented Interfaces:
TraceThread
,Serializable
,Cloneable
,Iterable
,Collection
,List
,RandomAccess
Vector containing all trace records for a specific thread.
- See Also:
-
Field Summary
Fields declared in class java.util.Vector
capacityIncrement, elementCount, elementData
Fields declared in class java.util.AbstractList
modCount
-
Constructor Summary
ModifierConstructorDescriptionprotected
TraceThread
(long ID, String threadName) construct a new trace thread vector -
Method Summary
Methods declared in class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
Methods declared in interface java.util.Collection
parallelStream, stream, toArray
-
Field Details
-
threadID
protected long threadID -
threadName
-
numBufs
public static int numBufs
-
-
Constructor Details
-
TraceThread
construct a new trace thread vector- Parameters:
ID
- ( hex value of threadID )threadName
-
-
-
Method Details
-
getBuffersProcessed
public static int getBuffersProcessed() -
getNextTracePoint
-
getIndent
public int getIndent() -
indent
public void indent() -
outdent
public void outdent() -
getTimeOfNextTracePoint
-
getChronologicalTracePointIterator
- Specified by:
getChronologicalTracePointIterator
in interfaceTraceThread
- 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
- Specified by:
getThreadName
in interfaceTraceThread
- Returns:
- The name of the TraceThread, or null if the Thread was unnamed.
-
getThreadID
public long getThreadID()- Specified by:
getThreadID
in interfaceTraceThread
- Returns:
- the ID of the thread that generated the current TraceThread's data.
-