Class ExpandableParameter
- java.lang.Object
-
- org.opennms.netmgt.eventd.processor.expandable.ExpandableParameter
-
- All Implemented Interfaces:
ExpandableToken
public class ExpandableParameter extends Object implements ExpandableToken
AnExpandableParameterrequires the {@link #ExpandableParameter#parameter} to be replaced with an appropriate value. Eachtokenmay be mapped to aExpandableParameterResolverresolving the token to a value. If no resolver is found, null is returned.- See Also:
ExpandableParameterResolverRegistry
-
-
Constructor Summary
Constructors Constructor Description ExpandableParameter(String token, EventUtil eventUtil)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringexpand(Event event, Map<String,Map<String,String>> decode)Expands a token.booleanrequiresTransaction()Defines if thisExpandableTokenrequires a transaction to be expanded.
-
-
-
Method Detail
-
expand
public String expand(Event event, Map<String,Map<String,String>> decode)
Description copied from interface:ExpandableTokenExpands a token.- Specified by:
expandin interfaceExpandableToken- Parameters:
event- An event, to expand the token from. May not be null.decode- A Map, to help expanding the token. May be null.- Returns:
- The expanded token.
-
requiresTransaction
public boolean requiresTransaction()
Description copied from interface:ExpandableTokenDefines if thisExpandableTokenrequires a transaction to be expanded.- Specified by:
requiresTransactionin interfaceExpandableToken- Returns:
- True if a transaction is required, False otherwise.
-
-