Class Platforms

java.lang.Object
org.elasticsearch.plugins.Platforms

public class Platforms
extends java.lang.Object
Encapsulates platform-dependent methods for handling native components of plugins.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String PLATFORM_NAME  
  • Method Summary

    Modifier and Type Method Description
    static java.nio.file.Path nativeControllerPath​(java.nio.file.Path plugin)
    The path to the native controller for a plugin with native components.
    static java.lang.String platformName​(java.lang.String osName, java.lang.String osArch)
    Return the platform name based on the OS name and architecture, for example: - darwin-x86_64 - linux-x86-64 - windows-x86_64 For *nix platforms this is more-or-less `uname -s`-`uname -m` converted to lower case.

    Methods inherited from class java.lang.Object

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

    • PLATFORM_NAME

      public static final java.lang.String PLATFORM_NAME
  • Method Details

    • nativeControllerPath

      public static java.nio.file.Path nativeControllerPath​(java.nio.file.Path plugin)
      The path to the native controller for a plugin with native components.
    • platformName

      public static java.lang.String platformName​(java.lang.String osName, java.lang.String osArch)
      Return the platform name based on the OS name and architecture, for example: - darwin-x86_64 - linux-x86-64 - windows-x86_64 For *nix platforms this is more-or-less `uname -s`-`uname -m` converted to lower case. However, for consistency between different operating systems on the same architecture "amd64" is replaced with "x86_64" and "i386" with "x86". For Windows it's "windows-" followed by either "x86" or "x86_64".