Class HotspotVMOptions


  • final class HotspotVMOptions
    extends java.lang.Object
    Accessor to get Hotspot VM Options (if available).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.function.Function<java.lang.String,​java.util.Optional<java.lang.String>> ACCESSOR  
      private static java.lang.String HOTSPOT_BEAN_CLASS  
      static boolean IS_HOTSPOT_VM
      True iff the Java VM is based on Hotspot and has the Hotspot MX bean readable by Lucene
      private static java.lang.String MANAGEMENT_FACTORY_CLASS  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private HotspotVMOptions()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Optional<java.lang.String> get​(java.lang.String name)
      Returns an optional with the value of a Hotspot VM option.
      • Methods inherited from class java.lang.Object

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

      • IS_HOTSPOT_VM

        public static final boolean IS_HOTSPOT_VM
        True iff the Java VM is based on Hotspot and has the Hotspot MX bean readable by Lucene
      • MANAGEMENT_FACTORY_CLASS

        private static final java.lang.String MANAGEMENT_FACTORY_CLASS
        See Also:
        Constant Field Values
      • HOTSPOT_BEAN_CLASS

        private static final java.lang.String HOTSPOT_BEAN_CLASS
        See Also:
        Constant Field Values
      • ACCESSOR

        private static final java.util.function.Function<java.lang.String,​java.util.Optional<java.lang.String>> ACCESSOR
    • Constructor Detail

      • HotspotVMOptions

        private HotspotVMOptions()
    • Method Detail

      • get

        public static java.util.Optional<java.lang.String> get​(java.lang.String name)
        Returns an optional with the value of a Hotspot VM option. If the VM option does not exist or is not readable, returns an empty optional.