|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.api.act.ACTEngineManager
public class ACTEngineManager
A TDI wrapper for an Active Correlation Technology engine. Can be enabled/disabled (depending on the value of the "act.engine.on" system property).
When enabled, it instantiates an ACT engine and delegates processing of events to that engine. A rule set must be configured for the engine, by specifying a compiled ACT rule set file through the "act.engine.rule.set.file" system property. The specified set of rules is parsed and loaded into the ACT engine on initialization. The rules can use a special TDI object, which allows them to send server notifications. This special object implements the com.ibm.di.api.act.TDIFunctions interface and is registered in the ACT engine at startup. The underlying ACT engine is configured to use JLog as its log manager. The following JLog configuration file is used: etc/act-jlog.properties.
When disabled, this class throws an exception if asked to process an event.
Field Summary | |
---|---|
static String |
TDI_FUNCTIONS_KEY
Under this key is registered a TDI object for the use of the ACT rules. |
Constructor Summary | |
---|---|
ACTEngineManager(Session localServerAPISession)
Creates the ACT engine wrapper. |
Method Summary | |
---|---|
void |
processEvent(Serializable event)
Processes an event by the Active Correlation Technology engine of the TDI server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TDI_FUNCTIONS_KEY
Constructor Detail |
---|
public ACTEngineManager(Session localServerAPISession) throws DIException
localServerAPISession
- A session to the local TDI server API.
It is used to allow the ACT rules to send server notifications.
DIException
- The ACT engine cannot be created,
the rule file cannot be parsed,
or an error occurred while loading the rules into the engine.Method Detail |
---|
public void processEvent(Serializable event) throws DIException
event
- Event to be processed by ACT engine - currently only
org.eclipse.hyades.logging.events.cbe.CommonBaseEvent is supported.
DIException
- An error occurred while processing the event or the event type is not supported.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |