Package org.openjdk.jmc.flightrecorder
Class JfrLoaderToolkit
java.lang.Object
org.openjdk.jmc.flightrecorder.JfrLoaderToolkit
A collection of methods used to load binary JFR data into
IItemCollection
implementations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IItemCollection
loadEvents
(File file) Loads a potentially zipped or gzipped file using the parser extensions loaded from the java service loaderstatic IItemCollection
loadEvents
(InputStream stream) Loads a potentially zipped or gzipped input stream using the parser extensions loaded from the java service loaderstatic IItemCollection
loadEvents
(InputStream stream, List<? extends IParserExtension> extensions) Loads a potentially zipped or gzipped input stream using the parser extensions loaded from the java service loaderstatic IItemCollection
loadEvents
(List<File> files) Loads a recording from a sequence of potentially zipped or gzipped files using the parser extensions loaded from the java service loaderstatic IItemCollection
loadEvents
(List<File> files, List<? extends IParserExtension> extensions) Loads a recording from a sequence of potentially zipped or gzipped file using the supplied parser extensions
-
Constructor Details
-
JfrLoaderToolkit
public JfrLoaderToolkit()
-
-
Method Details
-
loadEvents
public static IItemCollection loadEvents(InputStream stream) throws IOException, CouldNotLoadRecordingException Loads a potentially zipped or gzipped input stream using the parser extensions loaded from the java service loader- Parameters:
stream
- the input stream to read the recording from- Returns:
- the events in the recording
- Throws:
IOException
CouldNotLoadRecordingException
-
loadEvents
public static IItemCollection loadEvents(InputStream stream, List<? extends IParserExtension> extensions) throws CouldNotLoadRecordingException, IOException Loads a potentially zipped or gzipped input stream using the parser extensions loaded from the java service loader- Parameters:
stream
- the input stream to read the recording fromextensions
- the extensions to use when parsing the file- Returns:
- the events in the recording
- Throws:
CouldNotLoadRecordingException
IOException
-
loadEvents
public static IItemCollection loadEvents(File file) throws IOException, CouldNotLoadRecordingException Loads a potentially zipped or gzipped file using the parser extensions loaded from the java service loader- Parameters:
file
- the file to read the recording from- Returns:
- the events in the recording
- Throws:
IOException
CouldNotLoadRecordingException
-
loadEvents
public static IItemCollection loadEvents(List<File> files) throws IOException, CouldNotLoadRecordingException Loads a recording from a sequence of potentially zipped or gzipped files using the parser extensions loaded from the java service loader- Parameters:
files
- the files to read the recording from- Returns:
- the events in the recording
- Throws:
IOException
CouldNotLoadRecordingException
-
loadEvents
public static IItemCollection loadEvents(List<File> files, List<? extends IParserExtension> extensions) throws IOException, CouldNotLoadRecordingException Loads a recording from a sequence of potentially zipped or gzipped file using the supplied parser extensions- Parameters:
files
- the files to read the recording fromextensions
- the extensions to use when parsing the file- Returns:
- the events in the recording
- Throws:
IOException
CouldNotLoadRecordingException
-