Class ChunkLoaderV0
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.internal.parser.v0.ChunkLoaderV0
-
-
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.IChunkLoadercreate(Chunk input, LoaderContext context)static org.openjdk.jmc.flightrecorder.internal.ChunkInfogetInfo(Chunk input, long position)longgetTimestamp()
-
-
-
Method Detail
-
call
public byte[] call() throws ExceptionDescription copied from interface:org.openjdk.jmc.flightrecorder.internal.IChunkLoaderPerform the chunk loading.- Specified by:
callin interfaceCallable<byte[]>- Specified by:
callin 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:
getTimestampin 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.
-
-