Class HotspotVMOptions

java.lang.Object
org.apache.lucene.util.HotspotVMOptions

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

    • 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 String MANAGEMENT_FACTORY_CLASS
      See Also:
    • HOTSPOT_BEAN_CLASS

      private static final String HOTSPOT_BEAN_CLASS
      See Also:
    • ACCESSOR

      private static final Function<String,Optional<String>> ACCESSOR
  • Constructor Details

    • HotspotVMOptions

      private HotspotVMOptions()
  • Method Details

    • get

      public static Optional<String> get(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.