|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.zce.actions.DefaultActionHandler
com.tivoli.zce.actions.libs.SendTecEvent
Prepares an event for sending to TEC
When an event is passed back to EEIF (either gateway or adapter), the string
representation of the event kept in the event.original field is sent to TEC for
better performance. In order for updates made during state correlation to pass
back to TEC, the snapshot kept in the event.original field must be updated as
part of the last action in a rule. The SendEvent action performs the snapshot
update and forwards the event by calling
TecEventUtil.forwardTecEvent()
.
DefaultActionHandler
,
TecEventUtil
Field Summary |
---|
Fields inherited from class com.tivoli.zce.actions.DefaultActionHandler |
---|
aloneEventProcessor, aloneEventProcessorId, eventProcessors |
Fields inherited from interface com.tivoli.zce.IEventProcessor |
---|
IBM_Copyright |
Fields inherited from interface com.tivoli.zce.IEventSender |
---|
IBM_Copyright |
Constructor Summary | |
---|---|
SendTecEvent()
|
Method Summary | |
---|---|
java.lang.Object |
doParse(IRule rule,
java.lang.String paramSz)
Parses any parameters which are part of the action definition |
void |
processEvent(Event event)
Refreshes the snapshot of the event information kept in the event.original field and forwards the event. |
void |
processEvents(EventList eventList)
Processes a list of events |
Methods inherited from class com.tivoli.zce.actions.DefaultActionHandler |
---|
addEventProcessor, banner, forward, forward, getEventProcessor, IBM_Copyright, removeEventProcessor, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SendTecEvent()
Method Detail |
public void processEvents(EventList eventList) throws java.lang.Exception
Takes the provided list of events and processes each event individually by passing it to this actions processEvent() method.
The event list represents the collection of events needed to trigger a rule by the State Correlation Engine. This method is typically called when a state based rule is used and the event list contains the events from the event which triggered the state machine for the rule to the last events processed by the state machine.
eventList
- the list of events to process
java.lang.Exception
processEvent(com.tivoli.zce.engine.Event)
,
DefaultActionHandler
,
EventList
public void processEvent(Event event) throws java.lang.Exception
Updates the event snapshot and handles persistence updates by calling
the TecEventUtil.forwardTecEvent()
utility method. The event is
then forwarded.
event
- the event to process
java.lang.Exception
processEvents(com.tivoli.zce.engine.EventList)
,
DefaultActionHandler
,
Event
,
TecEventUtil
public java.lang.Object doParse(IRule rule, java.lang.String paramSz) throws ParserException
All parameters defined in the rule XML for this action are passed in the string paramSz. For this particular action, no parameters are expected so no parsing is done.
This method is called once for each rule containing this action. If
the action is shared ( singleInstance="true"
) then this
method is only called once.
rule
- the specific instance of the rule containing this actionparamSz
- the parameters defined for this action in this rule instance
ParserException
DefaultActionHandler
,
IRule
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |