Package io.cryostat.agent.harvest
Class Harvester
- java.lang.Object
-
- io.cryostat.agent.harvest.Harvester
-
- All Implemented Interfaces:
FlightRecorderListener
public class Harvester extends Object implements FlightRecorderListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHarvester.PushTypestatic classHarvester.RecordingSettings
-
Field Summary
Fields Modifier and Type Field Description static StringRECORDING_NAME_ON_EXITstatic StringRECORDING_NAME_PERIODIC
-
Constructor Summary
Constructors Constructor Description Harvester(ScheduledExecutorService executor, ScheduledExecutorService workerPool, long period, String template, int maxFiles, Harvester.RecordingSettings exitSettings, Harvester.RecordingSettings periodicSettings, CryostatClient client, FlightRecorderHelper flightRecorderHelper, Registration registration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Future<Void>exitUpload()voidhandleNewRecording(FlightRecorderHelper.TemplatedRecording tr)voidhandleNewRecording(FlightRecorderHelper.TemplatedRecording tr, Harvester.RecordingSettings settings)voidrecordingStateChanged(Recording recording)voidstart()voidstop()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jdk.jfr.FlightRecorderListener
recorderInitialized
-
-
-
-
Field Detail
-
RECORDING_NAME_ON_EXIT
public static final String RECORDING_NAME_ON_EXIT
- See Also:
- Constant Field Values
-
RECORDING_NAME_PERIODIC
public static final String RECORDING_NAME_PERIODIC
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Harvester
public Harvester(ScheduledExecutorService executor, ScheduledExecutorService workerPool, long period, String template, int maxFiles, Harvester.RecordingSettings exitSettings, Harvester.RecordingSettings periodicSettings, CryostatClient client, FlightRecorderHelper flightRecorderHelper, Registration registration)
-
-
Method Detail
-
start
public void start()
-
stop
public void stop()
-
recordingStateChanged
public void recordingStateChanged(Recording recording)
- Specified by:
recordingStateChangedin interfaceFlightRecorderListener
-
handleNewRecording
public void handleNewRecording(FlightRecorderHelper.TemplatedRecording tr)
-
handleNewRecording
public void handleNewRecording(FlightRecorderHelper.TemplatedRecording tr, Harvester.RecordingSettings settings)
-
-