Package io.openems.edge.core.appmanager
Class AppManagerUtilImpl
java.lang.Object
io.openems.edge.core.appmanager.AppManagerUtilImpl
- All Implemented Interfaces:
AppManagerUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindAppById
(String id) Finds theOpenemsApp
with the given id.findInstanceById
(UUID id) Finds theOpenemsAppInstance
with the givenUUID
.getAppConfiguration
(ConfigurationTarget target, OpenemsApp app, String alias, com.google.gson.JsonObject properties, Language language) Gets theAppConfiguration
with the given parameter.getAppsWithDependencyTo
(OpenemsAppInstance instance) Gets aList
of the current installedOpenemsAppInstance
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.openems.edge.core.appmanager.AppManagerUtil
findAppByIdOrError, findInstanceByIdOrError, getAppConfiguration, getAppConfiguration, getAppConfiguration, getInstantiatedAppsOfApp
-
Constructor Details
-
AppManagerUtilImpl
-
-
Method Details
-
getInstantiatedApps
Description copied from interface:AppManagerUtil
Gets aList
of the current installedOpenemsAppInstance
.- Specified by:
getInstantiatedApps
in interfaceAppManagerUtil
- Returns:
- the list of installed apps
-
findAppById
Description copied from interface:AppManagerUtil
Finds theOpenemsApp
with the given id.- Specified by:
findAppById
in interfaceAppManagerUtil
- Parameters:
id
- theOpenemsApp.getAppId()
of the app.- Returns:
- a
Optional
of the app
-
findInstanceById
Description copied from interface:AppManagerUtil
Finds theOpenemsAppInstance
with the givenUUID
.- Specified by:
findInstanceById
in interfaceAppManagerUtil
- Parameters:
id
- the id of the instance- Returns:
- a
Optional
of the instance
-
getAppConfiguration
public AppConfiguration getAppConfiguration(ConfigurationTarget target, OpenemsApp app, String alias, com.google.gson.JsonObject properties, Language language) throws OpenemsError.OpenemsNamedException Description copied from interface:AppManagerUtil
Gets theAppConfiguration
with the given parameter.- Specified by:
getAppConfiguration
in interfaceAppManagerUtil
- Parameters:
target
- theConfigurationTarget
of the configurationapp
- theOpenemsApp
alias
- the alias of the instanceproperties
- theJsonObject
properties of the instancelanguage
- theLanguage
of the configuration- Returns:
- the
AppConfiguration
- Throws:
OpenemsException
- on errorOpenemsError.OpenemsNamedException
-
getAppsWithDependencyTo
Description copied from interface:AppManagerUtil
- Specified by:
getAppsWithDependencyTo
in interfaceAppManagerUtil
- Parameters:
instance
- the instance which is referenced- Returns:
- the referencing instances
-