Class CEPEsperProcessor.RegularDelegate
- java.lang.Object
-
- org.marketcetera.modules.cep.esper.CEPEsperProcessor.RegularDelegate
-
- All Implemented Interfaces:
CEPEsperProcessor.ProcessingDelegate
- Direct Known Subclasses:
CEPEsperProcessor.ExternalTimeDelegate
- Enclosing class:
- CEPEsperProcessor
private class CEPEsperProcessor.RegularDelegate extends Object implements CEPEsperProcessor.ProcessingDelegate
Regular "straight-through" delegate - just send all the incoming queries directly to Esper This is for non-external-time (ie for wall-clock time) operation.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateRegularDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelRequest(DataFlowID inFlowID, RequestID inRequestID)Go through and destroy all the existing EPL statementsvoidpreProcessData(DataFlowID inFlowID, Object inData)Invoked to allow every delegate to pre-process data before it is delivered to the esper runtime.voidprocessRequest(String[] inStmts, DataEmitterSupport inSupport)Creates the incoming statements with Esper and creates a subscriber for the last one
-
-
-
Method Detail
-
processRequest
public void processRequest(String[] inStmts, DataEmitterSupport inSupport) throws RequestDataException
Creates the incoming statements with Esper and creates a subscriber for the last one- Specified by:
processRequestin interfaceCEPEsperProcessor.ProcessingDelegate- Parameters:
inStmts- the query statements.inSupport- the emitter support to emit data.- Throws:
RequestDataException- if there were errors processing the request.
-
cancelRequest
public void cancelRequest(DataFlowID inFlowID, RequestID inRequestID)
Go through and destroy all the existing EPL statements- Specified by:
cancelRequestin interfaceCEPEsperProcessor.ProcessingDelegate- Parameters:
inFlowID- the flowID of the data flow to cancel.inRequestID- the requestID of the data flow to cancel.
-
preProcessData
public void preProcessData(DataFlowID inFlowID, Object inData) throws StopDataFlowException
Description copied from interface:CEPEsperProcessor.ProcessingDelegateInvoked to allow every delegate to pre-process data before it is delivered to the esper runtime.- Specified by:
preProcessDatain interfaceCEPEsperProcessor.ProcessingDelegate- Parameters:
inFlowID- the data flowID.inData- the received data.- Throws:
StopDataFlowException- if the data flow should be stopped.
-
-