public interface NativeAccess
Provides access to native functionality needed by Elastisearch.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Determine whether this JVM is running as the root user.static NativeAccess
instance()
Get the one and only instance ofNativeAccess
which is specific to the running platform and JVM.
-
Method Details
-
instance
Get the one and only instance ofNativeAccess
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
-