Package com.newrelic.jfr.daemon
Class JfrController
- java.lang.Object
-
- com.newrelic.jfr.daemon.JfrController
-
public class JfrController extends java.lang.ObjectManages the continuous processing of JFR data.loop()repeatedly callsJfrRecorder.recordToFile()and uploads the data viaJFRUploader.handleFile(Path).
-
-
Constructor Summary
Constructors Constructor Description JfrController(JfrRecorderFactory recorderFactory, JFRUploader uploader, java.time.Duration harvestInterval)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidloop()Loop untilshutdown(), recording and handling JFR data each iteration.voidshutdown()Stop theloop().
-
-
-
Constructor Detail
-
JfrController
public JfrController(JfrRecorderFactory recorderFactory, JFRUploader uploader, java.time.Duration harvestInterval)
-
-
Method Detail
-
shutdown
public void shutdown()
Stop theloop().
-
loop
public void loop() throws JfrRecorderExceptionLoop untilshutdown(), recording and handling JFR data each iteration.- Throws:
JfrRecorderException- if a fatal error occurs preventing JFR recording / handling from continuing
-
-