Class AdapterDefinitionParser
- java.lang.Object
-
- org.opennms.netmgt.telemetry.distributed.common.AdapterDefinitionParser
-
public class AdapterDefinitionParser extends java.lang.Object
Parses properties for multiple Adapter configurations. Each adapter definition must start withadapters.n.
key. Where n is either a number (e.g. 1,2,3, etc.) or a character (e.g. a,b,c, etc.). The parser also supports the legacy configuration, where noadapters.n.
prefix was needed.- Author:
- mvrueden
-
-
Constructor Summary
Constructors Constructor Description AdapterDefinitionParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<AdapterDefinition>
parse(java.lang.String queueName, PropertyTree propertyTree)
Groups properties for the same adapter together and wraps the properties behind aAdapterDefinition
.
-
-
-
Method Detail
-
parse
public java.util.List<AdapterDefinition> parse(java.lang.String queueName, PropertyTree propertyTree)
Groups properties for the same adapter together and wraps the properties behind aAdapterDefinition
. Each key which is starting withadapters.n.
where 1 is any single character.- Parameters:
queueName
- Name of the queue the adapter is attached to.propertyTree
- The properties to parse. May contain queue properties as well.- Returns:
- The Adapter definitions.
-
-