Class FlightRecorder
java.lang.Object
de.mirkosertic.flightrecorderstarter.core.FlightRecorder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddeleteRecording(long recordingId) If the total number of recordings is above the threshold defined inflightrecorder.old-recordings-max, returns the oldest recordings that are above the threshold and finished.Return finished recordings with startTime older than (Instant.now() - TTL)booleanisRecordingStopped(long recordingId) longnewRecording(StartRecordingCommand command) sessions()voidsetRecordingOptions(long recordingId, StartRecordingCommand command, File filename) voidstartRecording(long recordingId, Duration delayDuration) longstartRecordingFor(StartRecordingCommand command) stopRecording(long recordingId)
-
Constructor Details
-
FlightRecorder
-
-
Method Details
-
newRecording
-
startRecording
-
stopRecording
-
setRecordingOptions
public void setRecordingOptions(long recordingId, StartRecordingCommand command, File filename) throws IOException - Throws:
IOException
-
startRecordingFor
- Throws:
IOException
-
cleanupOldRecordings
@Scheduled(fixedDelayString="${flightrecorder.recording-cleanup-interval}") public void cleanupOldRecordings() -
getDeletableRecordingsByTTL
Return finished recordings with startTime older than (Instant.now() - TTL)- Returns:
- Set of recording IDs to be deleted
-
getDeletableRecordingsByCount
If the total number of recordings is above the threshold defined inflightrecorder.old-recordings-max, returns the oldest recordings that are above the threshold and finished.- Returns:
- Set of recording IDs to be deleted
-
deleteRecording
public void deleteRecording(long recordingId) -
isRecordingStopped
public boolean isRecordingStopped(long recordingId) -
sessions
-
getById
-