java.lang.Object
org.sentrysoftware.metricshub.engine.common.helpers.LocalOsHandler

public class LocalOsHandler extends Object
Helper class for handling the local operating system.
  • Field Details

  • Constructor Details

    • LocalOsHandler

      public LocalOsHandler()
  • Method Details

    • isWindows

      public static boolean isWindows()
      Check if the Local OS is a Windows.
      Returns:
      true if Windows false otherwise.
    • getSystemOsName

      public static Optional<String> getSystemOsName()
      Get the OS Name from the System.
      Returns:
      An Optional of the OS name. Empty if not defined.
    • getSystemOsVersion

      public static Optional<String> getSystemOsVersion()
      Get the OS Version from the System.
      Returns:
      An Optional of the OS version. Empty if not defined.