Package com.hivemq.adapter.sdk.api
Interface ProtocolAdapterInformation
public interface ProtocolAdapterInformation
A metadata object that describes the Adapter type into the platform. Will also give an indication
to the features and allows it to be categorized in the UI / API.
-
Method Summary
Modifier and TypeMethodDescription@NotNull Class<? extends ProtocolSpecificAdapterConfig>A bean class that will be reflected upon by the framework to determine the structural requirements of the configuration associated with an adapter instance, in this case for when writing is enabled for this adapter.@NotNull Class<? extends ProtocolSpecificAdapterConfig>A bean class that will be reflected upon by the framework to determine the structural requirements of the configuration associated with an adapter instance, in this case for when writing is disabled for this adapter.The entity (person or company) who is responsible for producing the adapterdefault @NotNull EnumSet<ProtocolAdapterCapability>Get the capabilities associated with the adapter.An adapter can be in a single category.intgetTags()Tag represents the keywords that can be associated with this type of adaptergetUrl()A bean class that will be reflected upon by the framework to determine the structural requirements of the tag configuration associated with an adapter instance.
-
Method Details
-
getProtocolName
- Returns:
- the technically correct protocol name as defined by the standard, for example "Http" or "Mqtt".
-
getProtocolId
- Returns:
- Protocol ID that will be used by the platform to group types, search and categories. NOTE: The format of this ID is important, it must be alpha-numeric without spaces and unique within the system.
-
getLegacyProtocolIds
- Returns:
- the legacy Protocol Ids for older versions of this adapter
-
getDisplayName
- Returns:
- The visual name to display in the protocol adapter catalog for example "HTTP(s) to MQTT Protocol Adapter"
-
getDescription
-
getUrl
-
getVersion
-
getLogoUrl
-
getAuthor
The entity (person or company) who is responsible for producing the adapter- Returns:
- the name of the authoring entity
-
getCategory
An adapter can be in a single category. This helps discovery purposes- Returns:
- the category in which the adapter resides
-
getTags
Tag represents the keywords that can be associated with this type of adapter- Returns:
- a list of associated tags that can be used for search purposes
-
tagConfigurationClass
A bean class that will be reflected upon by the framework to determine the structural requirements of the tag configuration associated with an adapter instance. It is expected that the bean class supplied, be marked up with Jackson annotation.- Returns:
- The class that represents (and will encapsulate) the configuration requirements of the adapter's tags
-
configurationClassNorthbound
A bean class that will be reflected upon by the framework to determine the structural requirements of the configuration associated with an adapter instance, in this case for when writing is disabled for this adapter. It is expected that the bean class supplied, be marked up with Jackson annotation.- Returns:
- The class that represents (and will encapsulate) the configuration requirements of the adapter \\@ModuleConfigField annotations.
-
configurationClassNorthAndSouthbound
@NotNull @NotNull Class<? extends ProtocolSpecificAdapterConfig> configurationClassNorthAndSouthbound()A bean class that will be reflected upon by the framework to determine the structural requirements of the configuration associated with an adapter instance, in this case for when writing is enabled for this adapter. It is expected that the bean class supplied, be marked up with Jackson annotation.- Returns:
- The class that represents (and will encapsulate) the configuration requirements of the adapter \\@ModuleConfigField annotations.
-
getCapabilities
Get the capabilities associated with the adapter. For more information on capabilities, please refer to theProtocolAdapterCapabilitydescriptions.- Returns:
- an
EnumSetcontaining the capabilities of the adapter
-
getUiSchema
- Returns:
- a UI Schema that tells Edge how to render the config in the UI.
-
getCurrentConfigVersion
int getCurrentConfigVersion()- Returns:
- the current version of the configuration
-