Interface NativeAccess


public interface NativeAccess
Provides access to native functionality needed by Elastisearch.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Determine whether this JVM is running as the root user.
    Get the one and only instance of NativeAccess which is specific to the running platform and JVM.
  • Method Details

    • instance

      static NativeAccess instance()
      Get the one and only instance of NativeAccess which is specific to the running platform and JVM.
    • definitelyRunningAsRoot

      boolean definitelyRunningAsRoot()
      Determine whether this JVM is running as the root user.
      Returns:
      true if running as root, or false if unsure