Top Description Fields Constructors Methods
jdk.jfr.internal.consumer

pack-priv final Class EventParser

extends Parser
Class Inheritance
Static Imports
jdk.jfr.internal.util.ImplicitFields.DURATION

Parses an event and returns a RecordedEvent.

Field Summary

Modifier and TypeField and Description
private RecordedEvent[]
private int
private boolean
private final EventType
private long
private long
private final boolean
private final int
private final ObjectContext
private boolean
private final Parser[]
private static final JdkJfrConsumer
private final int
private long
private final TimeConverter
private final RecordedEvent
private final List<ValueDescriptor>

Constructor Summary

AccessConstructor and Description
pack-priv
EventParser(TimeConverter timeConverter, EventType type, Parser[] parsers)

Method Summary

Modifier and TypeMethod and Description
private RecordedEvent
public EventType
private boolean
public boolean
public RecordedEvent
parse(RecordingInput
input to read from
input
)

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

public Object
parseReferences(RecordingInput
input to read from, not null
input
)

Overrides jdk.jfr.internal.consumer.Parser.parseReferences.

Parses data from a RecordingInput to find references to constants.

public void
public void
setEnabled(boolean enabled)

public void
setFilterEnd(long filterEnd)

public void
setFilterStart(long filterStart)

public void
setOrdered(boolean ordered)

public void
setReuse(boolean reuse)

public void
setThresholdNanos(long thresholdNanos)

public void
skip(RecordingInput
input to read from
input
)

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

Skips data that would usually be by parsed the parse(RecordingInput) method.

Field Detail

cachedback to summary
private RecordedEvent[] cached
cacheIndexback to summary
private int cacheIndex
enabledback to summary
private boolean enabled
eventTypeback to summary
private final EventType eventType
filterEndback to summary
private long filterEnd
filterStartback to summary
private long filterStart
hasDurationback to summary
private final boolean hasDuration
lengthback to summary
private final int length
objectContextback to summary
private final ObjectContext objectContext
orderedback to summary
private boolean ordered
parsersback to summary
private final Parser[] parsers
PRIVATE_ACCESSback to summary
private static final JdkJfrConsumer PRIVATE_ACCESS
startIndexback to summary
private final int startIndex
thresholdNanosback to summary
private long thresholdNanos
timeConverterback to summary
private final TimeConverter timeConverter
unorderedEventback to summary
private final RecordedEvent unorderedEvent
valueDescriptorsback to summary
private final List<ValueDescriptor> valueDescriptors

Constructor Detail

EventParserback to summary
pack-priv EventParser(TimeConverter timeConverter, EventType type, Parser[] parsers)

Method Detail

cachedEventback to summary
private RecordedEvent cachedEvent()
getEventTypeback to summary
public EventType getEventType()
hasReuseback to summary
private boolean hasReuse()
isEnabledback to summary
public boolean isEnabled()
parseback to summary
public RecordedEvent parse(RecordingInput input) throws IOException

Implements abstract jdk.jfr.internal.consumer.Parser.parse.

Doc from jdk.jfr.internal.consumer.Parser.parse.

Parses data from a RecordingInput and return an object.

Parameters
input:RecordingInput

input to read from

Returns:RecordedEvent

an Object, an Object[], or null

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
parseReferencesback to summary
public Object parseReferences(RecordingInput input) throws IOException

Overrides jdk.jfr.internal.consumer.Parser.parseReferences.

Doc from jdk.jfr.internal.consumer.Parser.parseReferences.

Parses data from a RecordingInput to find references to constants. If data is not a reference, null is returned.

Parameters
input:RecordingInput

input to read from, not null

Returns:Object

a Reference, a Reference[], or null

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems
resetCacheback to summary
public void resetCache()
setEnabledback to summary
public void setEnabled(boolean enabled)
setFilterEndback to summary
public void setFilterEnd(long filterEnd)
setFilterStartback to summary
public void setFilterStart(long filterStart)
setOrderedback to summary
public void setOrdered(boolean ordered)
setReuseback to summary
public void setReuse(boolean reuse)
setThresholdNanosback to summary
public void setThresholdNanos(long thresholdNanos)
skipback to summary
public void skip(RecordingInput input) throws IOException

Implements abstract jdk.jfr.internal.consumer.Parser.skip.

Doc from jdk.jfr.internal.consumer.Parser.skip.

Skips data that would usually be by parsed the parse(RecordingInput) method.

Parameters
input:RecordingInput

input to read from

Annotations
@Override
Exceptions
IOException:
if operation couldn't be completed due to I/O problems