Class DeviceManagement
java.lang.Object
de.iip_ecosphere.platform.ecsRuntime.DeviceManagement
DeviceManagement lifecycle methods.
This class provides easy access to the device registry
- Author:
- Dennis Pidun, University of Hildesheim
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic de.iip_ecosphere.platform.deviceMgt.registry.DeviceRegistrationResponseaddDevice(boolean onboard) Routine for device registration.static de.iip_ecosphere.platform.deviceMgt.registry.DeviceRegistryClientGet the DeviceRegistryClient.static RemoteAccessServerGet the RemoteAccessServer singleton.static voidremoveDevice(boolean offboard) Method for device removal.
-
Field Details
-
remoteAccessServer
-
-
Constructor Details
-
DeviceManagement
public DeviceManagement()
-
-
Method Details
-
getRegistryClient
public static de.iip_ecosphere.platform.deviceMgt.registry.DeviceRegistryClient getRegistryClient() throws IOExceptionGet the DeviceRegistryClient.- Returns:
- the DeviceRegistryClient
- Throws:
IOException- if the resource submodel is not available.
-
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
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
-