Class DefaultExports


  • public class DefaultExports
    extends java.lang.Object
    Registers the default Hotspot collectors.

    This is intended to avoid users having to add in new registrations every time a new exporter is added.

    Example usage:

     
       DefaultExports.initialize();
     
     
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static boolean initialized  
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultExports()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void initialize()
      Register the default Hotspot collectors with the default registry.
      static void register​(CollectorRegistry registry)
      Register the default Hotspot collectors with the given registry.
      • Methods inherited from class java.lang.Object

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

      • initialized

        private static boolean initialized
    • Constructor Detail

      • DefaultExports

        public DefaultExports()
    • Method Detail

      • initialize

        public static void initialize()
        Register the default Hotspot collectors with the default registry. It is safe to call this method multiple times, as this will only register the collectors once.
      • register

        public static void register​(CollectorRegistry registry)
        Register the default Hotspot collectors with the given registry.