Class DeviceRegistryProxy
java.lang.Object
de.iip_ecosphere.platform.deviceMgt.registry.AbstractDeviceRegistry
de.iip_ecosphere.platform.deviceMgt.registry.DeviceRegistryProxy
- All Implemented Interfaces:
DeviceRegistry,DeviceRegistryOperations
THe DeviceRegistryProxy is a DeviceRegistry which can tunnel
the operations to the aas default implementation.
- Author:
- Dennis Pidun, University of Hildesheim
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCalls the aas implementation and tunnels operation (addDevice) to sink.Fully implemented by the sink.Fully implemented by the sink.Collection<? extends DeviceDescriptor> Fully implemented by the sink.getIds()Fully implemented by the sink.Fully implemented by the sink.voidFully implemented by the sink.voidremoveDevice(String id) Calls the aas implementation and tunnels operation (removeDevice) to sink.voidsendTelemetry(String id, String telemetryData) Sends telemetry data to device management.
-
Field Details
-
sink
-
-
Constructor Details
-
DeviceRegistryProxy
Constructor for the proxy.- Parameters:
sink- the sink, to which the proxy should tunnel the operations
-
-
Method Details
-
addDevice
Calls the aas implementation and tunnels operation (addDevice) to sink. See:DeviceRegistry- Specified by:
addDevicein interfaceDeviceRegistryOperations- Overrides:
addDevicein classAbstractDeviceRegistry- Parameters:
id- the id of the deviceip- the ip of the device- Returns:
- information about the results of the registration/on-boarding process
- Throws:
ExecutionException- if the operation fails
-
removeDevice
Calls the aas implementation and tunnels operation (removeDevice) to sink. See:DeviceRegistry- Specified by:
removeDevicein interfaceDeviceRegistryOperations- Overrides:
removeDevicein classAbstractDeviceRegistry- Parameters:
id- the id of the device- Throws:
ExecutionException- if the operation fails
-
imAlive
Fully implemented by the sink. See:DeviceRegistry- Parameters:
id- the id of the new device- Throws:
ExecutionException- if the operation fails
-
sendTelemetry
Description copied from interface:DeviceRegistryOperationsSends telemetry data to device management.- Parameters:
id- the id of the devicetelemetryData- the telemetry data (JSON format?)- Throws:
ExecutionException- if the operation fails
-
getIds
Fully implemented by the sink. See:DeviceRegistry- Returns:
- device ids
-
getManagedIds
Fully implemented by the sink. See:DeviceRegistry- Returns:
- managed device ids
-
getDevices
Fully implemented by the sink. See:DeviceRegistry- Returns:
- devices
-
getDevice
Fully implemented by the sink. See:DeviceRegistry- Parameters:
id- the resource id of the device (might be null or invalid)- Returns:
- a device
-
getDeviceByManagedId
Fully implemented by the sink. See:DeviceRegistry- Parameters:
id- the managed id of the device (might be null or invalid)- Returns:
- device
-