Class TraceRecord50

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 Details

  • Constructor Details

    • TraceRecord50

      public TraceRecord50()
  • Method Details

    • 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)
    • compareTo

      public int compareTo(Object other)
      Description copied from interface: java.lang.Comparable
      Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

      The implementor must ensure signum(x.compareTo(y)) == -signum(y.compareTo(x)) for all x and y. (This implies that x.compareTo(y) must throw an exception if and only if y.compareTo(x) throws an exception.)

      The implementor must also ensure that the relation is transitive: (x.compareTo(y) > 0 && y.compareTo(z) > 0) implies x.compareTo(z) > 0.

      Finally, the implementor must ensure that x.compareTo(y)==0 implies that signum(x.compareTo(z)) == signum(y.compareTo(z)), for all z.

      Specified by:
      compareTo in interface Comparable
      Parameters:
      other - the object to be compared.
      Returns:
      a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
    • getTraceType

      public int getTraceType()
    • setTraceType

      public void setTraceType(int traceType)
    • getLastUpperWord

      public BigInteger getLastUpperWord()