Class ChunkLoaderV1
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.internal.parser.v1.ChunkLoaderV1
-
-
Constructor Summary
Constructors Constructor Description ChunkLoaderV1(org.openjdk.jmc.flightrecorder.internal.parser.v1.ChunkStructure header, byte[] data, LoaderContext context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
call()
Perform the chunk loading.static org.openjdk.jmc.flightrecorder.internal.IChunkLoader
create(Chunk input, LoaderContext context)
static org.openjdk.jmc.flightrecorder.internal.ChunkInfo
getInfo(Chunk input, long position)
long
getTimestamp()
-
-
-
Constructor Detail
-
ChunkLoaderV1
public ChunkLoaderV1(org.openjdk.jmc.flightrecorder.internal.parser.v1.ChunkStructure header, byte[] data, LoaderContext context)
-
-
Method Detail
-
call
public byte[] call() throws Exception
Description copied from interface:org.openjdk.jmc.flightrecorder.internal.IChunkLoader
Perform the chunk loading.- Specified by:
call
in interfaceCallable<byte[]>
- Specified by:
call
in interfaceorg.openjdk.jmc.flightrecorder.internal.IChunkLoader
- Returns:
- The byte array that was backing the chunk data. After returning this, the chunk loader is done with the array and it may be reused for a new chunk.
- Throws:
Exception
-
create
public static org.openjdk.jmc.flightrecorder.internal.IChunkLoader create(Chunk input, LoaderContext context) throws IOException, CouldNotLoadRecordingException
-
getInfo
public static org.openjdk.jmc.flightrecorder.internal.ChunkInfo getInfo(Chunk input, long position) throws IOException, CouldNotLoadRecordingException
-
getTimestamp
public long getTimestamp()
- Specified by:
getTimestamp
in interfaceorg.openjdk.jmc.flightrecorder.internal.IChunkLoader
- Returns:
- The chunk timestamp. The unit is not specified, it might be milliseconds or nanoseconds since 1970, but the important thing is that it is unique for every chunk in a recording.
-
-