Class WindowsFunctions

java.lang.Object
org.elasticsearch.nativeaccess.WindowsFunctions

public class WindowsFunctions extends Object
Native functions specific to the Windows operating system.
  • Method Details

    • getShortPathName

      public String getShortPathName(String path)
      Retrieves the short path form of the specified path.
      Parameters:
      path - the path
      Returns:
      the short path name, or the original path name if unsupported or unavailable
    • addConsoleCtrlHandler

      public boolean addConsoleCtrlHandler(WindowsFunctions.ConsoleCtrlHandler handler)
      Adds a Console Ctrl Handler for Windows. On non-windows this is a noop.
      Returns:
      true if the handler is correctly set