Package io.cryostat.agent
Class FlightRecorderHelper
- java.lang.Object
-
- io.cryostat.agent.FlightRecorderHelper
-
public class FlightRecorderHelper extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFlightRecorderHelper.ConfigurationInfostatic classFlightRecorderHelper.RecordingInfostatic classFlightRecorderHelper.TemplatedRecording
-
Constructor Summary
Constructors Constructor Description FlightRecorderHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecordingcreateRecordingWithCustomTemplate(String template)Optional<FlightRecorderHelper.TemplatedRecording>createRecordingWithPredefinedTemplate(String templateNameOrLabel)Optional<Recording>createSnapshot()Optional<Recording>getRecording(long id)List<Recording>getRecordings()List<Recording>getRecordings(Predicate<Recording> predicate)Optional<Configuration>getTemplate(String nameOrLabel)booleanisValidTemplate(String nameOrLabel)
-
-
-
Method Detail
-
createRecordingWithCustomTemplate
public Recording createRecordingWithCustomTemplate(String template) throws IOException, ParseException
- Throws:
IOExceptionParseException
-
createRecordingWithPredefinedTemplate
public Optional<FlightRecorderHelper.TemplatedRecording> createRecordingWithPredefinedTemplate(String templateNameOrLabel)
-
getTemplate
public Optional<Configuration> getTemplate(String nameOrLabel)
-
isValidTemplate
public boolean isValidTemplate(String nameOrLabel)
-
-