- java.lang.Object
-
- com.ibm.jvm.format.TraceRecord50
-
- All Implemented Interfaces:
Comparable
public class TraceRecord50 extends Object implements Comparable
Extends Trace Record. Special processing needed for internal trace records.
-
-
Field Summary
Fields Modifier and Type Field Description static int
EXTERNAL_WRAP_SPLIT_TP
static int
INTERNAL_WRAP_SPLIT_TP
-
Constructor Summary
Constructors Constructor Description TraceRecord50()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addOverspillData(byte[] overspillFromPreviousBuffer, BigInteger upperWord)
byte[]
getExtraData()
String
getFileName()
BigInteger
getLastTimerWrap()
BigInteger
getLastUpperWord()
TracePoint
getNextTracePoint()
long
getOffsetInFile()
long
getThreadIDAsLong()
String
getThreadName()
BigInteger
getTimeStamp()
int
getTraceType()
boolean
isMiddleOfTracePoint()
boolean
primeRecord(TraceFile traceFile)
primeRecord readies this UtTraceRecord to have its tracepoint data read.int
processTraceBufferHeader(TraceFile traceFile, long start, int bufferLength)
void
setTimeStamp(BigInteger newTimeStamp)
void
setTraceType(int traceType)
-
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
-
INTERNAL_WRAP_SPLIT_TP
public static final int INTERNAL_WRAP_SPLIT_TP
- See Also:
- Constant Field Values
-
EXTERNAL_WRAP_SPLIT_TP
public static final int EXTERNAL_WRAP_SPLIT_TP
- See Also:
- Constant Field Values
-
-
Method Detail
-
processTraceBufferHeader
public int processTraceBufferHeader(TraceFile traceFile, long start, int bufferLength) throws IOException
- Throws:
IOException
-
getNextTracePoint
public TracePoint getNextTracePoint()
-
addOverspillData
public boolean addOverspillData(byte[] overspillFromPreviousBuffer, BigInteger upperWord)
-
isMiddleOfTracePoint
public boolean isMiddleOfTracePoint()
-
getExtraData
public byte[] getExtraData()
-
primeRecord
public boolean primeRecord(TraceFile traceFile) throws IOException
primeRecord readies this UtTraceRecord to have its tracepoint data read. Each tracepoint's length field is at the end of the tracepoint, so the tracepoints are formatted backwards out of the record. To enable forward iteration, the whole record must be formatted into a queue, which is then iterated over in reverse order. The record should already have been primed with e.g. it's location in the tracefile through it's constructor.- Parameters:
traceFile
-- Returns:
- true if it works, false if any errors are encountered. Errors are reported internally.
- Throws:
IOException
- if there is an error reading the record's data from the trace file.
-
getThreadName
public String getThreadName()
-
getThreadIDAsLong
public long getThreadIDAsLong()
-
getFileName
public String getFileName()
-
getOffsetInFile
public long getOffsetInFile()
-
getTimeStamp
public BigInteger getTimeStamp()
-
getLastTimerWrap
public BigInteger getLastTimerWrap()
-
setTimeStamp
public void setTimeStamp(BigInteger newTimeStamp)
-
getTraceType
public int getTraceType()
-
setTraceType
public void setTraceType(int traceType)
-
getLastUpperWord
public BigInteger getLastUpperWord()
-
-