Interface EcsClient
- All Superinterfaces:
ContainerOperations,DeviceManagementOperations
- All Known Implementing Classes:
EcsAasClient
ECS client operations interface.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields inherited from interface de.iip_ecosphere.platform.ecsRuntime.ContainerOperations
EXC_ALREADY_KNOWN -
Method Summary
Modifier and TypeMethodDescriptionaddContainerAsTask(String taskId, URI location) LikeContainerOperations.addContainer(URI)but tracked by ataskId.de.iip_ecosphere.platform.support.aas.SubmodelElementCollectionReturns the collection with all containers of the resources this client was created for.voidstartContainerAsTask(String taskId, String id) LikeContainerOperations.startContainer(String)but tracked by ataskId.voidstopContainerAsTask(String taskId, String id) LikeContainerOperations.stopContainer(String)but tracked by ataskId.Methods inherited from interface de.iip_ecosphere.platform.ecsRuntime.ContainerOperations
addContainer, getContainerSystemName, getContainerSystemVersion, getId, getState, migrateContainer, startContainer, stopContainer, undeployContainer, updateContainerMethods inherited from interface de.iip_ecosphere.platform.ecsRuntime.DeviceManagementOperations
createRemoteConnectionCredentials, getRuntimeName, getRuntimeVersion
-
Method Details
-
getContainers
de.iip_ecosphere.platform.support.aas.SubmodelElementCollection getContainers()Returns the collection with all containers of the resources this client was created for.- Returns:
- the containers collection, may be null
-
addContainerAsTask
LikeContainerOperations.addContainer(URI)but tracked by ataskId.- Parameters:
taskId- the task id to report onlocation- the location from where to download the container, e.g., an URL- Returns:
- the id of the container
- Throws:
ExecutionException- in case that adding the container fails for some reason
-
startContainerAsTask
LikeContainerOperations.startContainer(String)but tracked by ataskId.- Parameters:
taskId- the task id to report onid- the id of the container- Throws:
ExecutionException- in case that starting the container fails for some reason
-
stopContainerAsTask
LikeContainerOperations.stopContainer(String)but tracked by ataskId.- Parameters:
taskId- the task id to report onid- the id of the container to stop, or as fallback the canonical URI of the container descriptor used for adding- Throws:
ExecutionException- if stopping the container fails
-