public interface EPRuntimeSPI extends EPRuntime
Modifier and Type | Method and Description |
---|---|
void |
clearCaches()
Clear short-lived memory that may temporarily retain references to stopped or destroyed statements.
|
void |
destroy() |
void |
dispatch() |
String |
getEngineURI() |
long |
getRoutedExternal()
Number of events routed externally.
|
long |
getRoutedInternal()
Number of events routed internally.
|
Map<String,Long> |
getStatementNearestSchedules() |
Class |
getVariableType(String variableName)
Returns a variable's type.
|
Map<String,Class> |
getVariableTypeAll()
Returns all declared variable names and their types.
|
void |
initialize() |
void |
processThreadWorkQueue() |
void |
processWrappedEvent(EventBean eventBean) |
EventBean |
wrapEvent(Map map,
String eventTypeName)
Send a map containing event property values to the event stream processing runtime.
|
EventBean |
wrapEvent(Node node)
Send an event represented by a DOM node to the event stream processing runtime.
|
EventBean |
wrapEvent(Object object)
Send an event represented by a plain Java object to the event stream processing runtime.
|
executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, executeQuery, getCurrentTime, getDataFlowRuntime, getEventRenderer, getEventSender, getEventSender, getNextScheduledTime, getNumEventsEvaluated, getVariableValue, getVariableValue, getVariableValue, getVariableValueAll, isExternalClockingEnabled, prepareQuery, prepareQuery, prepareQueryWithParameters, resetStats, route, route, route, route, routeAvro, sendEvent, sendEvent, sendEvent, sendEvent, sendEventAvro, setUnmatchedListener, setVariableValue, setVariableValue, setVariableValue
Map<String,Class> getVariableTypeAll()
Class getVariableType(String variableName)
variableName
- type or null if the variable is not declaredlong getRoutedInternal()
long getRoutedExternal()
void destroy()
EventBean wrapEvent(Object object)
Use the route method for sending events into the runtime from within UpdateListener code, to avoid the possibility of a stack overflow due to nested calls to sendEvent.
object
- is the event to sent to the runtimeEPException
- is thrown when the processing of the event lead to an errorEventBean wrapEvent(Map map, String eventTypeName)
Use the route method for sending events into the runtime from within UpdateListener code. to avoid the possibility of a stack overflow due to nested calls to sendEvent.
map
- - map that contains event property values. Keys are expected to be of type String while values
can be of any type. Keys and values should match those declared via Configuration for the given eventTypeName.eventTypeName
- - the name for the Map event type that was previously configuredEPException
- - when the processing of the event leads to an errorEventBean wrapEvent(Node node)
Use the route method for sending events into the runtime from within UpdateListener code. to avoid the possibility of a stack overflow due to nested calls to sendEvent.
node
- is the DOM node as an eventEPException
- is thrown when the processing of the event lead to an errorvoid processThreadWorkQueue()
void dispatch()
void initialize()
void processWrappedEvent(EventBean eventBean)
String getEngineURI()
void clearCaches()
Use this method after stopping and destroying statements for the purpose of clearing thread-local or other short lived storage to statement handles of deleted statements.
NOT safe to use without first acquiring the engine lock.