public class EventBusSource extends Object implements DataFlowSourceOperator, DataFlowOpLifecycle, FilterHandleCallback
Modifier and Type | Field and Description |
---|---|
protected AgentInstanceContext |
agentInstanceContext |
protected EPStatementHandleCallback |
callbackHandle |
protected EPDataFlowEventBeanCollector |
collector |
protected LinkedBlockingDeque<Object> |
emittables |
protected EventType |
eventType |
protected ExprNode |
filter |
protected FilterServiceEntry |
filterServiceEntry |
protected EPDataFlowEmitter |
graphContext |
protected boolean |
submitEventBean |
Constructor and Description |
---|
EventBusSource() |
Modifier and Type | Method and Description |
---|---|
void |
close(DataFlowOpCloseContext openContext) |
int |
getStatementId()
Returns the statement id.
|
DataFlowOpInitializeResult |
initialize(DataFlowOpInitializateContext context) |
boolean |
isSubSelect()
Returns true if the filter applies to subselects.
|
void |
matchFound(EventBean theEvent,
Collection<FilterHandleCallback> allStmtMatches)
Indicate that an event was evaluated by the
FilterService
which matches the filter specification FilterSpecCompiled associated with this callback. |
void |
next() |
void |
open(DataFlowOpOpenContext openContext) |
protected ExprNode filter
protected EPDataFlowEventBeanCollector collector
protected EPDataFlowEmitter graphContext
protected EventType eventType
protected AgentInstanceContext agentInstanceContext
protected EPStatementHandleCallback callbackHandle
protected FilterServiceEntry filterServiceEntry
protected LinkedBlockingDeque<Object> emittables
protected boolean submitEventBean
public DataFlowOpInitializeResult initialize(DataFlowOpInitializateContext context) throws Exception
initialize
in interface DataFlowOpLifecycle
Exception
public void next() throws InterruptedException
next
in interface DataFlowSourceOperator
InterruptedException
public void matchFound(EventBean theEvent, Collection<FilterHandleCallback> allStmtMatches)
FilterHandleCallback
FilterService
which matches the filter specification FilterSpecCompiled
associated with this callback.matchFound
in interface FilterHandleCallback
theEvent
- - the event received that matches the filter specificationallStmtMatches
- - collection of matches that represent all matches for the same statementpublic boolean isSubSelect()
FilterHandleCallback
isSubSelect
in interface FilterHandleCallback
public int getStatementId()
FilterHandle
getStatementId
in interface FilterHandle
public void open(DataFlowOpOpenContext openContext)
open
in interface DataFlowOpLifecycle
public void close(DataFlowOpCloseContext openContext)
close
in interface DataFlowOpLifecycle