Class SystemInfoUtils


  • public class SystemInfoUtils
    extends Object
    • Constructor Detail

      • SystemInfoUtils

        public SystemInfoUtils()
    • Method Detail

      • getInstanceId

        public static String getInstanceId()
        Retrieves the instance id of the current system. This value is used to identify OpenNMS instances in environments where multiple systems share the same infrastructure. Defaults to "OpenNMS", but can be altered by setting the "org.opennms.instance.id" system property.
        Returns:
        instance id string
      • getVersion

        public String getVersion()
        Retrieves the version of the current system i.e:
        • 17.0.0
        • 2015.1.1
        Returns:
        version string
      • getDisplayVersion

        public String getDisplayVersion()
        Retrieves the displaying version of the current system i.e:
        • 17.0.0
        • 2015.1.1
        This is typically equal to the string returned by getVersion(), but may differ.
        Returns:
        display version string
      • getPackageName

        public String getPackageName()
        Retrieves the package name of the current system i.e:
        • opennms
        • meridian
        Returns:
        package name
      • getPackageDescription

        public String getPackageDescription()
        Retrieves the package description of the current system i.e:
        • OpenNMS
        • OpenNMS Meridian
        Returns:
        package name