Interface AppCenterMetadata.EdgeData
- All Superinterfaces:
AppCenterMetadata
- All Known Implementing Classes:
MetadataOdoo
- Enclosing interface:
AppCenterMetadata
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.openems.backend.common.metadata.AppCenterMetadata
AppCenterMetadata.EdgeData, AppCenterMetadata.UiData
-
Method Summary
Modifier and TypeMethodDescriptionvoid
sendAddDeinstallAppInstanceHistory
(String edgeId, String appId, UUID instanceId, String userId) Sends a request to add a deinstall history entry.void
sendAddInstallAppInstanceHistory
(String key, String edgeId, String appId, UUID instanceId, String userId) Sends a request to add a install app history entry.com.google.gson.JsonObject
sendGetInstalledApps
(String edgeId) Sends a request to get all installed apps on the edge that are logged in the backend these apps may not be actually on the edge.Methods inherited from interface io.openems.backend.common.metadata.AppCenterMetadata
sendGetPossibleApps, sendIsKeyApplicable
-
Method Details
-
sendAddInstallAppInstanceHistory
void sendAddInstallAppInstanceHistory(String key, String edgeId, String appId, UUID instanceId, String userId) throws OpenemsError.OpenemsNamedException Sends a request to add a install app history entry.- Parameters:
key
- the key that the app gets installed withedgeId
- the edge the app gets installed onappId
- the app that gets installedinstanceId
- the instanceId of the installed appuserId
- the user who added the instance- Throws:
OpenemsError.OpenemsNamedException
- on error
-
sendAddDeinstallAppInstanceHistory
void sendAddDeinstallAppInstanceHistory(String edgeId, String appId, UUID instanceId, String userId) throws OpenemsError.OpenemsNamedException Sends a request to add a deinstall history entry.- Parameters:
edgeId
- the edge the instance gets removedappId
- the id of the appinstanceId
- the instanceId of the removed instanceuserId
- the user who removed the instance- Throws:
OpenemsError.OpenemsNamedException
- on error
-
sendGetInstalledApps
com.google.gson.JsonObject sendGetInstalledApps(String edgeId) throws OpenemsError.OpenemsNamedException Sends a request to get all installed apps on the edge that are logged in the backend these apps may not be actually on the edge.- Parameters:
edgeId
- the apps on which edge- Returns:
- the installed apps
- Throws:
OpenemsError.OpenemsNamedException
- on error
-