Class JFRUploader


  • public final class JFRUploader
    extends java.lang.Object
    • Method Detail

      • handleFile

        public void handleFile​(java.nio.file.Path dumpFile)
        Handle the JFR dumpFile. Buffer new events, then convert them and them to New Relic via telemetrySender. Finally, delete the file and its parent directory.
        Parameters:
        dumpFile - the JFR file
      • readyToSend

        public void readyToSend​(EventConverter eventConverter)
        Mark the uploader as ready to send events. Until this is called, calls to handleFile(Path) will result in JFR events being buffered, but not converted or sent.
        Parameters:
        eventConverter - the event convert
      • countMatches

        public static int countMatches​(java.lang.String text,
                                       java.lang.String str)
      • fileStart

        public java.time.Instant fileStart()
      • fileEnd

        public java.time.Instant fileEnd()