|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StatementLifecycleSvc
Handles statement management.
Method Summary | |
---|---|
EPStatement |
createAndStart(StatementSpecRaw statementSpec,
String expression,
boolean isPattern,
String optStatementName)
Create and start the statement. |
void |
destroy(String statementId)
Destroy statement by statement id. |
void |
destroyAllStatements()
Destroys all started statements. |
EPStatement |
getStatementByName(String name)
Returns the statement by the given name, or null if no such statement exists. |
String[] |
getStatementNames()
Returns an array of statement names. |
void |
start(String statementId)
Start statement by statement id. |
void |
startAllStatements()
Starts all stopped statements. |
void |
stop(String statementId)
Stop statement by statement id. |
void |
stopAllStatements()
Stops all started statements. |
void |
updatedListeners(String statementId,
Set<UpdateListener> listeners)
Statements indicate that listeners have been added through this method. |
Method Detail |
---|
EPStatement createAndStart(StatementSpecRaw statementSpec, String expression, boolean isPattern, String optStatementName)
statementSpec
- is the statement definition in bean object form, raw unvalidated and unoptimized.expression
- is the expression textisPattern
- is an indicator on whether this is a pattern statement and thus the iterator must return the last result,
versus for non-pattern statements the iterator returns view content.optStatementName
- is an optional statement name, null if none was supplied
void start(String statementId)
statementId
- of the statement to start.void stop(String statementId)
statementId
- of the statement to stop.void destroy(String statementId)
statementId
- statementId of the statement to destroyEPStatement getStatementByName(String name)
name
- is the statement name
String[] getStatementNames()
Only returns started and stopped statements.
void startAllStatements() throws EPException
EPException
- to indicate a start error.void stopAllStatements() throws EPException
EPException
- to indicate a start error.void destroyAllStatements() throws EPException
EPException
- to indicate a start error.void updatedListeners(String statementId, Set<UpdateListener> listeners)
statementId
- is the statement id for which listeners were addedlisteners
- is the set of listeners after adding the new listener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |