Class DeviceManagementAasClient
java.lang.Object
de.iip_ecosphere.platform.support.iip_aas.SubmodelClient
de.iip_ecosphere.platform.support.iip_aas.SubmodelElementsCollectionClient
de.iip_ecosphere.platform.deviceMgt.DeviceManagementAasClient
- All Implemented Interfaces:
DeviceFirmwareOperations,DeviceManagementClient,DeviceRemoteManagementOperations,DeviceResourceConfigOperations
public class DeviceManagementAasClient
extends de.iip_ecosphere.platform.support.iip_aas.SubmodelElementsCollectionClient
implements DeviceManagementClient
An AasClient which implements a
SubmodelElementsCollectionClient and provides easy
access to the registry functions through the aas.- Author:
- Dennis Pidun, University of Hildesheim
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.deviceMgt.DeviceRemoteManagementOperations
DeviceRemoteManagementOperations.SSHConnectionDetails -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionestablishSsh(String id) Creates a ssh connection, so one can connect with a device through ssh.voidSets the device configuration.voidupdateRuntime(String id) Update the runtime of the given device with the id.Methods inherited from class de.iip_ecosphere.platform.support.iip_aas.SubmodelElementsCollectionClient
getLogger, getOperation, getProperty, getSubmodelElementCollectionMethods inherited from class de.iip_ecosphere.platform.support.iip_aas.SubmodelClient
checkNotNull, checkString, clear, getOperation, getProperty, getPropertyStringValue, getSubmodel, requestRefresh
-
Constructor Details
-
DeviceManagementAasClient
Default constructor.- Throws:
IOException- if the resource submodel could not be found
-
-
Method Details
-
updateRuntime
Description copied from interface:DeviceFirmwareOperationsUpdate the runtime of the given device with the id.- Specified by:
updateRuntimein interfaceDeviceFirmwareOperations- Parameters:
id- the id of the device- Throws:
ExecutionException- if the execution of this operation fails
-
establishSsh
public DeviceRemoteManagementOperations.SSHConnectionDetails establishSsh(String id) throws ExecutionException Description copied from interface:DeviceRemoteManagementOperationsCreates a ssh connection, so one can connect with a device through ssh.- Specified by:
establishSshin interfaceDeviceRemoteManagementOperations- Parameters:
id- the device id- Returns:
- SSHConnectionDetails
- Throws:
ExecutionException- if some (remote) execution errors occur
-
setConfig
Description copied from interface:DeviceResourceConfigOperationsSets the device configuration.- Specified by:
setConfigin interfaceDeviceResourceConfigOperations- Parameters:
id- the identifierconfigPath- the configuration path- Throws:
ExecutionException- in case that setting the configuration fails
-