Class SystemInfo


  • public class SystemInfo
    extends java.lang.Object
    Convenience class for getting access to the system details and ID.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static SystemInfo get()  
      java.util.Map<java.lang.String,​java.lang.String> getSystemDetails()
      Information attempted (and corresponding map keys):
      java.lang.String getSystemId()  
      static void main​(java.lang.String[] args)
      Use this method for testing the class on boxes with Java installed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Use this method for testing the class on boxes with Java installed. You will need to ensure that there is at least one entry on the PATH environment variable that points to a folder containing the .dll and .so files.
        Throws:
        java.lang.Exception
      • get

        public static SystemInfo get()
        Returns:
        The SystemInfo instance.
      • getSystemId

        public java.lang.String getSystemId()
                                     throws java.lang.Exception
        Returns:
        A (hopefully) unique and static identifier for this system.
        Throws:
        java.lang.Exception - If the native library was not successfully loaded an Exception will be thrown.
      • getSystemDetails

        public java.util.Map<java.lang.String,​java.lang.String> getSystemDetails()
        Information attempted (and corresponding map keys):

        • ignition.version
        • ignition.edition
        • java.vendor
        • java.vm.vendor
        • java.vm.name
        • java.version
        • java.runtime.version
        • os.name
        • os.version
        • os.arch
        • processorCount
        • totalPhysicalMemorySize
        Returns:
        A Map with the above listed keys/values.