public class EventBusSource extends java.lang.Object implements DataFlowSourceOperator, DataFlowOpLifecycle, FilterHandleCallback
Modifier and Type | Field and Description |
---|---|
protected AgentInstanceContext |
agentInstanceContext |
protected EPStatementHandleCallback |
callbackHandle |
protected EPDataFlowEventBeanCollector |
collector |
protected java.util.concurrent.LinkedBlockingDeque<java.lang.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,
java.util.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 java.util.concurrent.LinkedBlockingDeque<java.lang.Object> emittables
protected boolean submitEventBean
public DataFlowOpInitializeResult initialize(DataFlowOpInitializateContext context) throws java.lang.Exception
initialize
in interface DataFlowOpLifecycle
java.lang.Exception
public void next() throws java.lang.InterruptedException
next
in interface DataFlowSourceOperator
java.lang.InterruptedException
public void matchFound(EventBean theEvent, java.util.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