Class DeviceManagement

java.lang.Object
de.iip_ecosphere.platform.ecsRuntime.DeviceManagement

public class DeviceManagement extends Object
DeviceManagement lifecycle methods. This class provides easy access to the device registry
Author:
Dennis Pidun, University of Hildesheim
  • Field Details

  • Constructor Details

    • DeviceManagement

      public DeviceManagement()
  • Method Details

    • getRegistryClient

      public static de.iip_ecosphere.platform.deviceMgt.registry.DeviceRegistryClient getRegistryClient() throws IOException
      Get the DeviceRegistryClient.
      Returns:
      the DeviceRegistryClient
      Throws:
      IOException - if the resource submodel is not available.
    • getRemoteAccessServer

      public static RemoteAccessServer getRemoteAccessServer()
      Get the RemoteAccessServer singleton.
      Returns:
      the RemoteAccessServer
    • addDevice

      public static de.iip_ecosphere.platform.deviceMgt.registry.DeviceRegistrationResponse addDevice(boolean onboard) throws ExecutionException
      Routine for device registration.
      Parameters:
      onboard - does this operation add the device the first time intentionally to the platform (true) or is this just the startup registration (false)
      Returns:
      null if no operation was needed, an instance if a device registration/onboarding (trial) was performed
      Throws:
      ExecutionException - if the operation cannot be performed
    • removeDevice

      public static void removeDevice(boolean offboard) throws ExecutionException
      Method for device removal.
      Parameters:
      offboard - does this operation remove the device intentionally from the platform (true) or is this just a shutdown unregistration (false)
      Throws:
      ExecutionException - if the operation cannot be performed