Package io.openems.edge.app.api
Class MqttApi
java.lang.Object
io.openems.edge.core.appmanager.AbstractOpenemsApp<MqttApi.Property>
io.openems.edge.core.appmanager.AbstractEnumOpenemsApp<MqttApi.Property>
io.openems.edge.app.api.MqttApi
- All Implemented Interfaces:
ComponentManagerSupplier
,ComponentUtilSupplier
,OpenemsApp
Describes a App for MQTT Api.
{
"appId":"App.Api.Mqtt",
"alias":"MQTT-Api",
"instanceId": UUID,
"image": base64,
"properties":{
"CONTROLLER_ID": "ctrlControllerApiMqtt0",
"USERNAME": "username",
"PASSWORD": "******",
"CLIENT_ID": "edge0",
"URI": "tcp://localhost:1883"
},
"appDescriptor": {
"websiteUrl": AppDescriptor.getWebsiteUrl()
}
}
-
Nested Class Summary
-
Field Summary
Fields inherited from class io.openems.edge.core.appmanager.AbstractOpenemsApp
cm, componentContext, componentManager, componentUtil
Fields inherited from interface io.openems.edge.core.appmanager.OpenemsApp
FALLBACK_IMAGE
-
Constructor Summary
ConstructorDescriptionMqttApi
(ComponentManager componentManager, org.osgi.service.component.ComponentContext context, org.osgi.service.cm.ConfigurationAdmin cm, ComponentUtil componentUtil) -
Method Summary
Modifier and TypeMethodDescriptionprotected ThrowingTriFunction
<ConfigurationTarget, EnumMap<MqttApi.Property, com.google.gson.JsonElement>, Language, AppConfiguration, OpenemsError.OpenemsNamedException> getAppAssistant
(Language language) Gets theAppDescriptor
of theOpenemsApp
.Gets theOpenemsAppPermissions
of thisOpenemsApp
.Gets theOpenemsAppCardinality
of theOpenemsApp
.Gets theOpenemsAppCategory
of theOpenemsApp
.protected Class
<MqttApi.Property> Methods inherited from class io.openems.edge.core.appmanager.AbstractEnumOpenemsApp
appPropertyConfigurationFactory, getId, getValueOrDefault, propertyValues
Methods inherited from class io.openems.edge.core.appmanager.AbstractOpenemsApp
base64OfImage, createResourceBundle, fillUpProperties, getAppAssistant, getAppConfiguration, getAppId, getComponentManager, getComponentUtil, getComponentWithFactoryId, getId, getImage, getName, getNullableTranslation, getProperties, getPropertyByName, getShortName, getTranslation, getTranslationBundle, getValidateBuilder, getValidatorConfig, getValueOrDefault, hasProperty, installationValidation
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.OpenemsApp
flags, getAppAssistant, getAppConfiguration, getAppId, getImage, getName, getProperties, getShortName, getValidatorConfig
-
Constructor Details
-
MqttApi
public MqttApi(ComponentManager componentManager, org.osgi.service.component.ComponentContext context, org.osgi.service.cm.ConfigurationAdmin cm, ComponentUtil componentUtil)
-
-
Method Details
-
getAppAssistant
- Overrides:
getAppAssistant
in classAbstractOpenemsApp<MqttApi.Property>
-
getAppDescriptor
Description copied from interface:OpenemsApp
Gets theAppDescriptor
of theOpenemsApp
.- Specified by:
getAppDescriptor
in interfaceOpenemsApp
- Parameters:
oem
- theOpenemsEdgeOem
- Returns:
- the
AppDescriptor
-
getCategories
Description copied from interface:OpenemsApp
Gets theOpenemsAppCategory
of theOpenemsApp
.- Specified by:
getCategories
in interfaceOpenemsApp
- Returns:
- the category's
-
getCardinality
Description copied from interface:OpenemsApp
Gets theOpenemsAppCardinality
of theOpenemsApp
.- Specified by:
getCardinality
in interfaceOpenemsApp
- Returns:
- the usage
-
appConfigurationFactory
protected ThrowingTriFunction<ConfigurationTarget,EnumMap<MqttApi.Property, appConfigurationFactory()com.google.gson.JsonElement>, Language, AppConfiguration, OpenemsError.OpenemsNamedException> - Specified by:
appConfigurationFactory
in classAbstractEnumOpenemsApp<MqttApi.Property>
-
getPropertyClass
- Specified by:
getPropertyClass
in classAbstractEnumOpenemsApp<MqttApi.Property>
-
getAppPermissions
Description copied from interface:OpenemsApp
Gets theOpenemsAppPermissions
of thisOpenemsApp
.- Specified by:
getAppPermissions
in interfaceOpenemsApp
- Overrides:
getAppPermissions
in classAbstractOpenemsApp<MqttApi.Property>
- Returns:
- the permissions
-