Package org.opennms.netmgt.events.api
Class EventParameterUtils
- java.lang.Object
-
- org.opennms.netmgt.events.api.EventParameterUtils
-
public abstract class EventParameterUtils extends java.lang.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 java.util.List<Parm>
decode(java.lang.String eventparms)
decodestatic java.lang.String
format(Event event)
Format the list of event parametersstatic java.lang.String
format(Parm parm)
Format each parameterstatic java.util.Map<java.lang.String,Parm>
normalize(java.util.List<Parm> parmList)
static java.util.List<Parm>
normalizePreserveOrder(java.util.List<Parm> parmList)
-
-
-
Method Detail
-
format
public static java.lang.String format(Event event)
Format the list of event parameters- Parameters:
event
- TODO- Returns:
- the formatted event parameters string
-
format
public static java.lang.String format(Parm parm)
Format each parameter- Parameters:
parm
- the parameter- Returns:
- the formatted event parameter string
-
decode
public static java.util.List<Parm> decode(java.lang.String eventparms)
decode
- Parameters:
eventparms
- an event parm string- Returns:
- a list of parameters
-
normalize
public static java.util.Map<java.lang.String,Parm> normalize(java.util.List<Parm> parmList)
-
-