Class LinuxDistributionInfo
java.lang.Object
org.gcube.smartgears.connector.resourceregistry.resourcemanager.LinuxDistributionInfo
- Author:
- Luca Frosini (ISTI-CNR)
-
Field Details
-
LSB_RELEASE_COMMAND
LSB release command for getting distribution information.- See Also:
-
OS_RELEASE_FILE_PATH
- See Also:
-
info
Map containing the distribution information.
-
-
Constructor Details
-
LinuxDistributionInfo
public LinuxDistributionInfo()
-
-
Method Details
-
getInfoViaLsbReleaseCommand
- Throws:
IOException
-
getInfoViaOsReleaseFile
Gets distribution information from the /etc/os-release file.- Returns:
- a map of distribution properties
- Throws:
IOException- if an I/O error occurs
-
getInfo
Gets the distribution information map.- Returns:
- a map containing distribution information
-