com.espertech.esper.core.start
Class EPStatementStartMethodBase
java.lang.Object
com.espertech.esper.core.start.EPStatementStartMethodBase
- All Implemented Interfaces:
- EPStatementStartMethod
- Direct Known Subclasses:
- EPStatementStartMethodCreateContext, EPStatementStartMethodCreateExpression, EPStatementStartMethodCreateGraph, EPStatementStartMethodCreateIndex, EPStatementStartMethodCreateSchema, EPStatementStartMethodCreateTable, EPStatementStartMethodCreateVariable, EPStatementStartMethodCreateWindow, EPStatementStartMethodOnTrigger, EPStatementStartMethodSelect, EPStatementStartMethodUpdate
public abstract class EPStatementStartMethodBase
- extends java.lang.Object
- implements EPStatementStartMethod
Starts and provides the stop method for EPL statements.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
statementSpec
protected final StatementSpecCompiled statementSpec
EPStatementStartMethodBase
protected EPStatementStartMethodBase(StatementSpecCompiled statementSpec)
getStatementSpec
public StatementSpecCompiled getStatementSpec()
- Specified by:
getStatementSpec
in interface EPStatementStartMethod
startInternal
public abstract EPStatementStartResult startInternal(EPServicesContext services,
StatementContext statementContext,
boolean isNewStatement,
boolean isRecoveringStatement,
boolean isRecoveringResilient)
throws ExprValidationException,
ViewProcessingException
- Throws:
ExprValidationException
ViewProcessingException
start
public EPStatementStartResult start(EPServicesContext services,
StatementContext statementContext,
boolean isNewStatement,
boolean isRecoveringStatement,
boolean isRecoveringResilient)
throws ExprValidationException,
ViewProcessingException
- Description copied from interface:
EPStatementStartMethod
- Starts the EPL statement.
- Specified by:
start
in interface EPStatementStartMethod
statementContext
- statement level servicesisNewStatement
- indicator whether the statement is new or a stop-restart statementisRecoveringStatement
- true to indicate the statement is in the process of being recoveredisRecoveringResilient
- true to indicate the statement is in the process of being recovered and that statement is resilient @throws com.espertech.esper.epl.expression.ExprValidationException when the expression validation fails
- Returns:
- a viewable to attach to for listening to events, and a stop method to invoke to clean up
- Throws:
ViewProcessingException
- when views cannot be started
ExprValidationException
getDefaultAgentInstanceHandle
protected EPStatementAgentInstanceHandle getDefaultAgentInstanceHandle(StatementContext statementContext)
throws ExprValidationException
- Throws:
ExprValidationException
getDefaultAgentInstanceContext
protected AgentInstanceContext getDefaultAgentInstanceContext(StatementContext statementContext)
throws ExprValidationException
- Throws:
ExprValidationException
isQueryPlanLogging
protected boolean isQueryPlanLogging(EPServicesContext services)