- java.lang.Object
-
- com.ibm.jvm.trace.format.api.TraceThread
-
- All Implemented Interfaces:
Comparable
public class TraceThread extends Object implements Comparable
-
-
Field Summary
Fields Modifier and Type Field Description protected long
nativeThreadID
protected ByteStream
stream
protected long
threadID
protected String
threadName
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addRecord(TraceRecord record)
Adds a record to the set of records associated with this thread.boolean
equals(Long id)
Iterator
getIterator()
long
getNativeThreadID()
long
getThreadID()
String
getThreadName()
-
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods declared in interface java.lang.Comparable
compareTo
-
-
-
-
Field Detail
-
threadID
protected long threadID
-
nativeThreadID
protected long nativeThreadID
-
threadName
protected String threadName
-
stream
protected ByteStream stream
-
-
Method Detail
-
getIterator
public Iterator getIterator()
-
addRecord
protected void addRecord(TraceRecord record) throws IllegalArgumentException
Adds a record to the set of records associated with this thread. If we have records stored ahead of time when we run out of data in the current record we append another from the store rather than reporting an underflow. This allows the adding of all records from trace files before processing starts. This method maintains ordering in the list- Parameters:
record
-- Throws:
IllegalArgumentException
-
equals
public boolean equals(Long id)
-
getThreadID
public long getThreadID()
-
getNativeThreadID
public long getNativeThreadID()
-
getThreadName
public String getThreadName()
-
-