java.lang.Object
org.gcube.smartgears.connector.resourceregistry.resourcemanager.LinuxDistributionInfo

public class LinuxDistributionInfo extends Object
Author:
Luca Frosini (ISTI-CNR)
  • Field Details

    • LSB_RELEASE_COMMAND

      public static final String LSB_RELEASE_COMMAND
      LSB release command for getting distribution information.
      See Also:
    • OS_RELEASE_FILE_PATH

      public static final String OS_RELEASE_FILE_PATH
      See Also:
    • info

      protected Map<String,String> info
      Map containing the distribution information.
  • Constructor Details

    • LinuxDistributionInfo

      public LinuxDistributionInfo()
  • Method Details

    • getInfoViaLsbReleaseCommand

      protected Map<String,String> getInfoViaLsbReleaseCommand() throws IOException
      Throws:
      IOException
    • getInfoViaOsReleaseFile

      protected Map<String,String> getInfoViaOsReleaseFile() throws IOException
      Gets distribution information from the /etc/os-release file.
      Returns:
      a map of distribution properties
      Throws:
      IOException - if an I/O error occurs
    • getInfo

      public Map<String,String> getInfo()
      Gets the distribution information map.
      Returns:
      a map containing distribution information