Interface IOperatingSystemInfo
interface IOperatingSystemInfo
Extends com.amazon.apmf.IStandard
Operating System information.
All methods on this interface are thread-safe and may be called from any thread.
Methods
getDisplayName()
string getDisplayName()
Returns the human-readable name of the operating system. The display name
contains one or more properties of the operating system such as the
codename and version separated by a delimiter.
The display name DOES NOT follow a fixed schema and must be considered
unique string for each OS release.
For example, “Kepler/1.1”.
Returns
string
The display name of the operating system.
Throws
com.amazon.apmf.IoError— if the system service is unavailable.com.amazon.apmf.BaseError— for all other errors.
getCodeName()
string getCodeName()
Returns the static codename of the operating system.
For example, “Kepler”.
Returns
string
The code name.
Throws
com.amazon.apmf.IoError— if the system service is unavailable.com.amazon.apmf.BaseError— for all the other Errors.
getVersion()
string getVersion()
Returns the version identifier of the operating system.
For example, “1.1”.
The version string DOES NOT follow a fixed schema and must be considered
unique string for each OS release.
Returns
string
The version string.
Throws
com.amazon.apmf.IoError— if the system service is unavailable.com.amazon.apmf.BaseError— for all the other Errors.
getBuildInfo()
Returns the instance ofIBuildInfo*getBuildInfo()
IBuildInfo for querying operating system build
information.
This method returns a cached instance that remains valid for the lifetime
of the process. Multiple calls return the same instance.
Returns
IBuildInfo*
instance of IBuildInfo for querying build-specific
information.
Throws
com.amazon.apmf.IoError— if the system service is unavailable.com.amazon.apmf.BaseError— for all the other Errors.

