Package ej.util

Class Device


  • public class Device
    extends java.lang.Object
    This class provides utility methods related to the device.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getArchitecture()
      Returns the name of the architecture of the device.
      static byte[] getId()
      Returns the ID of the device.
      static java.lang.String getVersion()
      Returns the Version of the device.
      static void reboot()
      Reboots the device.
      static void shutdown()
      Shutdowns the device.
      • Methods inherited from class java.lang.Object

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

      • getArchitecture

        public static java.lang.String getArchitecture()
        Returns the name of the architecture of the device.
        Returns:
        the name of the architecture of the device.
      • getId

        public static byte[] getId()
        Returns the ID of the device. This identifier is guaranteed to be unique to all devices with the same architecture.
        Returns:
        the ID of the device.
      • getVersion

        public static java.lang.String getVersion()
        Returns the Version of the device. This can be a combination of hardware version(s) and version(s) of software already installed on the Device.
        Returns:
        the Version of the device.
      • reboot

        public static void reboot()
        Reboots the device.
      • shutdown

        public static void shutdown()
        Shutdowns the device.