Class TraceRecord50

  • All Implemented Interfaces:
    Comparable

    public class TraceRecord50
    extends Object
    implements Comparable
    Extends Trace Record. Special processing needed for internal trace records.
    • Constructor Detail

      • TraceRecord50

        public TraceRecord50()
    • 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()
      • getLastTimerWrap

        public BigInteger getLastTimerWrap()
      • setTimeStamp

        public void setTimeStamp​(BigInteger newTimeStamp)
      • getTraceType

        public int getTraceType()
      • setTraceType

        public void setTraceType​(int traceType)
      • getLastUpperWord

        public BigInteger getLastUpperWord()