|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.named.NamedWindowDispatchServiceImpl
public class NamedWindowDispatchServiceImpl
This service hold for each named window a dedicated processor and a lock to the named window. This lock is shrared between the named window and on-delete statements.
Constructor Summary | |
---|---|
NamedWindowDispatchServiceImpl(SchedulingService schedulingService,
VariableService variableService,
TableService tableService,
boolean isPrioritized,
ManagedReadWriteLock eventProcessingRWLock,
ExceptionHandlingService exceptionHandlingService,
MetricReportingService metricReportingService)
Ctor. |
Method Summary | |
---|---|
void |
addDispatch(NamedWindowConsumerLatchFactory latchFactory,
NamedWindowDeltaData delta,
java.util.Map<EPStatementAgentInstanceHandle,java.util.List<NamedWindowConsumerView>> consumers)
For use to add a result of a named window that must be dispatched to consuming views. |
NamedWindowProcessor |
createProcessor(java.lang.String name,
NamedWindowMgmtServiceImpl namedWindowMgmtService,
NamedWindowDispatchService namedWindowDispatchService,
java.lang.String contextName,
EventType eventType,
StatementResultService statementResultService,
ValueAddEventProcessor revisionProcessor,
java.lang.String eplExpression,
java.lang.String statementName,
boolean isPrioritized,
boolean isEnableSubqueryIndexShare,
boolean enableQueryPlanLog,
MetricReportingService metricReportingService,
boolean isBatchingDataWindow,
boolean isVirtualDataWindow,
java.util.Set<java.lang.String> optionalUniqueKeyProps,
java.lang.String eventTypeAsName,
StatementContext statementContextCreateWindow)
|
NamedWindowTailView |
createTailView(EventType eventType,
NamedWindowMgmtService namedWindowMgmtService,
NamedWindowDispatchService namedWindowDispatchService,
StatementResultService statementResultService,
ValueAddEventProcessor revisionProcessor,
boolean prioritized,
boolean parentBatchWindow,
java.lang.String contextName,
TimeSourceService timeSourceService,
ConfigurationEngineDefaults.Threading threadingConfig)
|
void |
destroy()
Destroy service. |
boolean |
dispatch()
Dispatch events of the insert and remove stream of named windows to consumers, as part of the main event processing or dispatch loop. |
java.util.LinkedHashMap<NamedWindowConsumerView,NamedWindowDeltaData> |
getDeltaPerConsumer(java.lang.Object perStmtObj,
EPStatementAgentInstanceHandle handle)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NamedWindowDispatchServiceImpl(SchedulingService schedulingService, VariableService variableService, TableService tableService, boolean isPrioritized, ManagedReadWriteLock eventProcessingRWLock, ExceptionHandlingService exceptionHandlingService, MetricReportingService metricReportingService)
variableService
- is for variable accessisPrioritized
- if the engine is running with prioritized executionMethod Detail |
---|
public NamedWindowProcessor createProcessor(java.lang.String name, NamedWindowMgmtServiceImpl namedWindowMgmtService, NamedWindowDispatchService namedWindowDispatchService, java.lang.String contextName, EventType eventType, StatementResultService statementResultService, ValueAddEventProcessor revisionProcessor, java.lang.String eplExpression, java.lang.String statementName, boolean isPrioritized, boolean isEnableSubqueryIndexShare, boolean enableQueryPlanLog, MetricReportingService metricReportingService, boolean isBatchingDataWindow, boolean isVirtualDataWindow, java.util.Set<java.lang.String> optionalUniqueKeyProps, java.lang.String eventTypeAsName, StatementContext statementContextCreateWindow)
createProcessor
in interface NamedWindowDispatchService
public NamedWindowTailView createTailView(EventType eventType, NamedWindowMgmtService namedWindowMgmtService, NamedWindowDispatchService namedWindowDispatchService, StatementResultService statementResultService, ValueAddEventProcessor revisionProcessor, boolean prioritized, boolean parentBatchWindow, java.lang.String contextName, TimeSourceService timeSourceService, ConfigurationEngineDefaults.Threading threadingConfig)
createTailView
in interface NamedWindowDispatchService
public void destroy()
NamedWindowDispatchService
destroy
in interface NamedWindowDispatchService
public void addDispatch(NamedWindowConsumerLatchFactory latchFactory, NamedWindowDeltaData delta, java.util.Map<EPStatementAgentInstanceHandle,java.util.List<NamedWindowConsumerView>> consumers)
NamedWindowDispatchService
addDispatch
in interface NamedWindowDispatchService
delta
- is the result to dispatchconsumers
- is the destination of the dispatch, a map of statements to one or more consuming viewspublic boolean dispatch()
NamedWindowDispatchService
dispatch
in interface NamedWindowDispatchService
public java.util.LinkedHashMap<NamedWindowConsumerView,NamedWindowDeltaData> getDeltaPerConsumer(java.lang.Object perStmtObj, EPStatementAgentInstanceHandle handle)
|
© 2006-2016 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |