public abstract class EventTrigger extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
EVENT_DISPATCHER_NAME |
| Constructor and Description |
|---|
EventTrigger(DataService dataService,
String language,
String triggerId,
String expression,
String targetTopic,
List<String> endpointUrls) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
evaluate(org.apache.axiom.om.OMElement input)
This class must be implemented by a concrete implementation of the EventTrigger class,
to provide the logic in evaluating the XML input.
|
void |
execute(org.apache.axiom.om.OMElement input,
String queryId)
Executes the event trigger, this uses the "evaluate" method to check
if an event should be fired, if so, it sends out the event notification.
|
DataService |
getDataService() |
List<String> |
getEndpointUrls() |
String |
getExpression() |
String |
getLanguage() |
String |
getTargetTopic() |
String |
getTriggerId() |
void |
processEventTriggerSubscriptions() |
public static final String EVENT_DISPATCHER_NAME
public EventTrigger(DataService dataService, String language, String triggerId, String expression, String targetTopic, List<String> endpointUrls) throws DataServiceFault
DataServiceFaultpublic void processEventTriggerSubscriptions()
public DataService getDataService()
public String getLanguage()
public String getTriggerId()
public String getExpression()
public String getTargetTopic()
protected abstract boolean evaluate(org.apache.axiom.om.OMElement input)
throws DataServiceFault
input - input as an OMElementDataServiceFault - DataServiceFaultpublic void execute(org.apache.axiom.om.OMElement input,
String queryId)
throws DataServiceFault
DataServiceFaultCopyright © 2017 WSO2. All rights reserved.