APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.jfr.internal.dcmd

public final Class QueryRecording

extends Object
implements AutoCloseable
Class Inheritance
All Implemented Interfaces
java.lang.AutoCloseable
Imports
java.io.IOException, java.time.Duration, .Instant, java.util.List, .ListIterator, jdk.jfr.FlightRecorder, jdk.jfr.consumer.EventStream, jdk.jfr.internal.PlatformRecorder, .PrivateAccess, .RepositoryChunk, jdk.jfr.internal.query.Configuration, .Configuration.Truncate, jdk.jfr.internal.util.UserDataException

Helper class that holds recording chunks alive during a query. It also helps out with configuration shared by DCmdView and DCmdQuery

Field Summary

Modifier and TypeField and Description
private final List<RepositoryChunk>
private final long
private final long
private final Instant
private final EventStream
private final PlatformRecorder

Constructor Summary

AccessConstructor and Description
public
QueryRecording(Instant startTime, Instant endTime)

public

Method Summary

Modifier and TypeMethod and Description
private List<RepositoryChunk>
public void
close()

Implements java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources.

private RepositoryChunk
private Instant
determineStreamStart(Long maxSize, Instant startTime)

public EventStream
private EventStream
makeStream(Instant startTime)

private void
private Configuration.Truncate
valueOf(String truncate)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

chunksback to summary
private final List<RepositoryChunk> chunks
DEFAULT_MAX_AGEback to summary
private final long DEFAULT_MAX_AGE
DEFAULT_MAX_SIZEback to summary
private final long DEFAULT_MAX_SIZE
endTimeback to summary
private final Instant endTime
eventStreamback to summary
private final EventStream eventStream
recorderback to summary
private final PlatformRecorder recorder

Constructor Detail

QueryRecordingback to summary
public QueryRecording(Instant startTime, Instant endTime) throws IOException
QueryRecordingback to summary
public QueryRecording(Configuration configuration, ArgumentParser parser) throws IOException, DCmdException, UserDataException

Method Detail

acquireChunksback to summary
private List<RepositoryChunk> acquireChunks(Instant startTime)
closeback to summary
public void close()

Implements java.lang.AutoCloseable.close.

Doc from java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources. This method is invoked automatically on objects managed by the try-with-resources statement.

Annotations
@Override
currentChunkback to summary
private RepositoryChunk currentChunk()
determineStreamStartback to summary
private Instant determineStreamStart(Long maxSize, Instant startTime)
getStreamback to summary
public EventStream getStream()
makeStreamback to summary
private EventStream makeStream(Instant startTime) throws IOException
releaseChunksback to summary
private void releaseChunks()
valueOfback to summary
private Configuration.Truncate valueOf(String truncate) throws DCmdException