Class JmxJfrRecorder

  • All Implemented Interfaces:
    JfrRecorder

    public class JmxJfrRecorder
    extends java.lang.Object
    implements JfrRecorder
    An implementation of JfrRecorder records JFR data from a remote MBean Server over JMX.
    • Constructor Summary

      Constructors 
      Constructor Description
      JmxJfrRecorder​(javax.management.MBeanServerConnection connection, boolean streamFromJmx, long recordingId)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.file.Path recordToFile()
      Record JFR data and return the path its recorded to.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JmxJfrRecorder

        public JmxJfrRecorder​(javax.management.MBeanServerConnection connection,
                              boolean streamFromJmx,
                              long recordingId)
    • Method Detail

      • recordToFile

        public java.nio.file.Path recordToFile()
                                        throws JfrRecorderException
        Description copied from interface: JfrRecorder
        Record JFR data and return the path its recorded to.
        Specified by:
        recordToFile in interface JfrRecorder
        Returns:
        the path JFR data has been recorded
        Throws:
        JfrRecorderException - if a fatal error occur that prevents this recorder from functioning