Package org.opennms.netmgt.events.api
Class EventParameterUtils
- java.lang.Object
-
- org.opennms.netmgt.events.api.EventParameterUtils
-
public abstract class EventParameterUtils extends Object
This is an utility class used to format the event parameters - to be inserted into the 'events' table- Author:
- Brian Weaver
-
-
Constructor Summary
Constructors Constructor Description EventParameterUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<Parm>
decode(String eventparms)
decodestatic String
format(Event event)
Format the list of event parametersstatic String
format(Parm parm)
Format each parameterstatic Map<String,Parm>
normalize(List<Parm> parmList)
static List<Parm>
normalizePreserveOrder(List<Parm> parmList)
-
-
-
Method Detail
-
format
public static String format(Event event)
Format the list of event parameters- Parameters:
event
- TODO- Returns:
- the formatted event parameters string
-
format
public static String format(Parm parm)
Format each parameter- Parameters:
parm
- the parameter- Returns:
- the formatted event parameter string
-
decode
public static List<Parm> decode(String eventparms)
decode
- Parameters:
eventparms
- an event parm string- Returns:
- a list of parameters
-
-