public class CEPEngine
extends java.lang.Object
The engine hosts the following components:
DefaultEventModelManager
, dealing with the internal representation of the (partially) matched event
patterns;
DefaultStreamManager
, managing the streams of events;
ExecutionSchema
, serving as the rule engine.
An instance of the engine can be obtained either by using the default event processing context (newEngine()
), or by specifying one explicitly (#newEngine(EventContext)
).
Modifier and Type | Class and Description |
---|---|
static class |
CEPEngine.CEPEngineBuilder
Builder class for the
CEPEngine . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEngineId() |
org.apache.log4j.Logger |
getLogger() |
IStreamManager |
getStreamManager() |
static CEPEngine.CEPEngineBuilder |
newEngine() |
void |
reset()
Clears the event processing state, including the partial event pattern matches and the event stream
|
void |
setCepEngineDebugLevel(org.apache.log4j.Level level)
|
void |
setRuleEngineDebuggingLevel(org.apache.log4j.Level level)
Set the debug
Level of the Logger instance associated with the rule engine (
ExecutionSchema ). |
public static CEPEngine.CEPEngineBuilder newEngine()
public void reset()
public java.lang.String getEngineId()
public IStreamManager getStreamManager()
public void setRuleEngineDebuggingLevel(org.apache.log4j.Level level)
Level
of the Logger
instance associated with the rule engine (
ExecutionSchema
).level
- the Level
to be setpublic void setCepEngineDebugLevel(org.apache.log4j.Level level)
level
- the Level
to be setpublic org.apache.log4j.Logger getLogger()
Logger
instance associated with the current CEPEngine
instance.