Package ej.util
Class Device
- java.lang.Object
-
- ej.util.Device
-
public class Device extends java.lang.ObjectThis class provides utility methods related to the device.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetArchitecture()Returns the name of the architecture of the device.static byte[]getId()Returns the ID of the device.static java.lang.StringgetVersion()Returns the Version of the device.static voidreboot()Reboots the device.static voidshutdown()Shutdowns the device.
-
-
-
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.
-
-