com.eventgnosis.filters
Class ActionList
java.lang.Object
com.eventgnosis.filters.ActionList
- All Implemented Interfaces:
- EmmlParmBuilder
- public class ActionList
- extends java.lang.Object
- implements EmmlParmBuilder
Represents set of actions to perform when a filter processes an Event.
Method Summary |
java.lang.String |
build(Log log,
com.eventgnosis.config.ConfigurationManager configMgr,
org.w3c.dom.Element elem)
After object is instantiated this method is called to parse the EMML DOM element, setting its internal state to the parsed values. |
com.eventgnosis.filters.Action |
get(int i)
|
java.lang.String |
getConfigXml()
|
static ActionList |
getDefault()
|
java.util.ArrayList |
getList()
|
java.lang.String |
perform(Event ev,
java.util.ArrayList routingList,
FilterBase fb)
Perform actions on the event & possible create new events to be routed. |
int |
size()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ActionList
public ActionList()
build
public java.lang.String build(Log log,
com.eventgnosis.config.ConfigurationManager configMgr,
org.w3c.dom.Element elem)
- Description copied from interface:
EmmlParmBuilder
- After object is instantiated this method is called to parse the EMML DOM element, setting its internal state to the parsed values.
- Specified by:
build
in interface EmmlParmBuilder
- Parameters:
log
- logger instance for tracking error, warning and info messages.configMgr
- holds configuration data structure used to properly configure runtime setup based on input ECA(s).elem
- emml(dom) node to be parsed
- Returns:
- precise error statement if there are any errors; null is returned if there are no errors and object is build sucessfully.
get
public com.eventgnosis.filters.Action get(int i)
getConfigXml
public java.lang.String getConfigXml()
getDefault
public static ActionList getDefault()
getList
public java.util.ArrayList getList()
perform
public java.lang.String perform(Event ev,
java.util.ArrayList routingList,
FilterBase fb)
- Perform actions on the event & possible create new events to be routed.
- Parameters:
ev
- event to peform actions onroutingList
- list of destionations for this eventfb
- instance of filter that called this method typecasted to FilterBase
- Returns:
- if no errors
size
public int size()
toString
public java.lang.String toString()