| java.lang.Object |
| ↳ |
org.mule.module.esper.EsperModule |
Known Direct Subclasses
|
Known Indirect Subclasses
|
Class Overview
A Mule Module for Esper, a GPL licensed complex event processing
engine.
Summary
| Public Methods |
|
void
|
connect()
|
|
void
|
disconnect()
|
|
synchronized
void
|
filter(Object eventPayload, String statement, String key, SourceCallback afterChain)
Filters messages that match the supplied EPL query.
|
|
String
|
getConfiguration()
|
|
void
|
listen(String statement, SourceCallback callback)
Listens for events matching the specified query statement.
|
|
void
|
send(Object eventPayload, String eventName)
Sends events to an Esper event stream.
|
|
void
|
setConfiguration(String configuration)
|
|
void
|
setMuleContext(MuleContext muleContext)
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
org.mule.api.context.MuleContextAware
|
abstract
void
|
setMuleContext(MuleContext arg0)
|
|
Fields
private
String
configuration
The location of the Esper config file. All event types need to be defined here.
private
EPServiceProvider
esperServiceProvider
private
Map<String, EPStatement>
filterStatements
private
MuleContext
muleContext
Public Constructors
Public Methods
public
void
disconnect
()
public
synchronized
void
filter
(Object eventPayload, String statement, String key, SourceCallback afterChain)
Filters messages that match the supplied EPL query. The EPL query must return a Boolean
value.
Parameters
| eventPayload
| The event to be injected into the event stream. This is useful if your filter statement
relies on the event being injected into the stream beforehand. |
| statement
| The EPL statement |
| key
| The key of the result to evaluate from the query |
| afterChain
| The SourceCallback
|
public
String
getConfiguration
()
public
void
listen
(String statement, SourceCallback callback)
Listens for events matching the specified query statement.
Parameters
| statement
| The Esper statement to select events from a stream. |
| callback
| The callback to be called when a message is received
|
public
void
send
(Object eventPayload, String eventName)
Sends events to an Esper event stream.
Events can be Java objects, Maps or an XML
Node. All event types must be registered in the
Esper configuration.
Parameters
| eventPayload
| The event to be injected into the event stream. |
| eventName
| The name of the event in the case of a Map payload.
|
public
void
setConfiguration
(String configuration)
public
void
setMuleContext
(MuleContext muleContext)