Class RecordingToolkit
java.lang.Object
org.openjdk.jmc.flightrecorder.test.util.RecordingToolkit
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FilecreateResultFile(String prefix, String suffix, boolean deleteTempOnExit) static IItemCollectiongetFlightRecording(IOResource resource) static IItemCollectiongetFlightRecording(IOResource resource, List<IParserExtension> extensions) static IItemCollectiongetFlightRecording(IOResourceSet resourceSet) static IItemCollectiongetNamedRecording(String recordingName) static InputStreamgetNamedRecordingResource(String recordingName) static FileReturn the directory where the recording files reside.static IOResourceSetgetStats(IOResourceSet resourceSet)
-
Constructor Details
-
RecordingToolkit
public RecordingToolkit()
-
-
Method Details
-
getRecordingDirectory
Return the directory where the recording files reside.- Returns:
- the recording file directory
- Throws:
IOException- if the directory could not be found
-
getRecordings
- Throws:
IOException
-
getNamedRecording
public static IItemCollection getNamedRecording(String recordingName) throws IOException, CouldNotLoadRecordingException -
getNamedRecordingResource
- Throws:
IOException
-
getFlightRecording
public static IItemCollection getFlightRecording(IOResourceSet resourceSet) throws IOException, CouldNotLoadRecordingException -
getFlightRecording
public static IItemCollection getFlightRecording(IOResource resource) throws IOException, CouldNotLoadRecordingException -
getFlightRecording
public static IItemCollection getFlightRecording(IOResource resource, List<IParserExtension> extensions) throws IOException, CouldNotLoadRecordingException -
getStats
- Throws:
IOException
-
createResultFile
public static File createResultFile(String prefix, String suffix, boolean deleteTempOnExit) throws IOException - Throws:
IOException
-