java.lang.Object
com.ibm.jvm.format.TracePoint
- All Implemented Interfaces:
TracePoint
,Comparable
-
Constructor Summary
ConstructorDescriptionTracePoint
(byte[] rawTracePoint, int length, BigInteger upperWord, long threadID, String fileName, long offsetOfStartOfTracePointInFile, long offsetOfEndOfTracePointInFile, boolean wasFragmented) -
Method Summary
Modifier and TypeMethodDescriptionint
Compares this object with the specified object for order.from()
String[]
int
getID()
int
getLevel()
int
long
long
Object[]
byte[]
long
long
int
getTPID()
getType()
int
boolean
boolean
boolean
boolean
boolean
int
void
setIsChangeOfThread
(boolean isChangeOfThread) boolean
setTracePointsUpperWord
(BigInteger upperWord)
-
Constructor Details
-
TracePoint
public TracePoint(byte[] rawTracePoint, int length, BigInteger upperWord, long threadID, String fileName, long offsetOfStartOfTracePointInFile, long offsetOfEndOfTracePointInFile, boolean wasFragmented)
-
-
Method Details
-
isLongTracePoint
public boolean isLongTracePoint() -
longTracePointLength
public int longTracePointLength() -
getFileName
-
getOffsetInTraceFile
public long getOffsetInTraceFile() -
getTPID
public int getTPID() -
getComponentName
-
getContainerComponentName
-
getThreadID
public long getThreadID()- Specified by:
getThreadID
in interfaceTracePoint
- Returns:
- the thread identifier of the thread that produced this TracePoint.
-
getParameterDataFormatted
-
getParmData
public byte[] getParmData() -
getRawTimeStamp
-
isTimerUpperWord
public boolean isTimerUpperWord() -
getNewTimerUpperWord
public long getNewTimerUpperWord() -
setTracePointsUpperWord
-
isNormalTracepoint
public boolean isNormalTracepoint() -
isLostRecord
public boolean isLostRecord() -
compareTo
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 allx
andy
. (This implies thatx.compareTo(y)
must throw an exception if and only ify.compareTo(x)
throws an exception.)The implementor must also ensure that the relation is transitive:
(x.compareTo(y) > 0 && y.compareTo(z) > 0)
impliesx.compareTo(z) > 0
.Finally, the implementor must ensure that
x.compareTo(y)==0
implies thatsignum(x.compareTo(z)) == signum(y.compareTo(z))
, for allz
.- Specified by:
compareTo
in interfaceComparable
- 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.
-
getFormattedParameters
- Specified by:
getFormattedParameters
in interfaceTracePoint
- Returns:
- a String containing the parameters formatted and interpolated into the TracePoint's formatting template.
-
getFormattedTime
- Specified by:
getFormattedTime
in interfaceTracePoint
- Returns:
- the time in the format ????????
-
setIsChangeOfThread
public void setIsChangeOfThread(boolean isChangeOfThread) -
isInvalid
public boolean isInvalid() -
getTypeAsInt
public int getTypeAsInt() -
getID
public int getID()- Specified by:
getID
in interfaceTracePoint
- Returns:
- the numeric sub-identifier of the current tracepoint within the current component. A tracepoint is identified by componentName](containerCompName)].numericID, for example, comp1.14, or comp1(comp2).12.
-
getTimestampMillis
public long getTimestampMillis()- Specified by:
getTimestampMillis
in interfaceTracePoint
- Returns:
- the GMT time in milliseconds at which this TracePoint was produced.
-
getMicrosecondsCount
public int getMicrosecondsCount()- Specified by:
getMicrosecondsCount
in interfaceTracePoint
- Returns:
- the high resolution timer value stored at the time this tracepoint was generated.
-
getComponent
- Specified by:
getComponent
in interfaceTracePoint
- Returns:
- the name of the component that produced this TracePoint. A tracepoint is identified by componentName](containerCompName)].numericID, for example, comp1.14, or comp1(comp2).12.
-
getContainerComponent
- Specified by:
getContainerComponent
in interfaceTracePoint
- Returns:
- the name of the container component that produced the current TracePoint, or null if the TracePoint did not have a container component. A tracepoint is identified by componentName](containerCompName)].numericID, for example, comp1.14, or comp1(comp2).12.
-
getParameterFormattingTemplate
- Specified by:
getParameterFormattingTemplate
in interfaceTracePoint
- Returns:
- a String containing the formatting template for this TracePoint.
-
getParameters
- Specified by:
getParameters
in interfaceTracePoint
- Returns:
- an array of objects, with one object per parameter generated by this TracePoint. Returns null if the TracePoint has no parameters, or if parameters were not recorded for this TracePoint.
-
getGroups
- Specified by:
getGroups
in interfaceTracePoint
- Returns:
- a list of groups to which this TracePoint belongs, or none if it doesn't belong to any.
-
getLevel
public int getLevel()- Specified by:
getLevel
in interfaceTracePoint
- Returns:
- the level of this TracePoint.
-
getType
- Specified by:
getType
in interfaceTracePoint
- Returns:
- the type of this TracePoint, for example, Entry, Exit or Event.
-
from
-