Class Platforms

org.elasticsearch.plugins.Platforms

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

    Fields
    Modifier and Type
    Field
    Description
    static
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static
     plugin)
    The path to the native controller for a plugin with native components.
    static
     osName,  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.

    , , , , , , , , , ,
  • Field Details

    • PLATFORM_NAME

      public static final  PLATFORM_NAME
  • Method Details

    • nativeControllerPath

      public static  nativeControllerPath( plugin)
      The path to the native controller for a plugin with native components.
    • platformName

      public static  platformName( osName,  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".