|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EPStatement
Statement interface that provides methods to start, stop and destroy a statement as well as get statement information such as statement name, expression text and current state.
Statements have 3 states: STARTED, STOPPED and DESTROYED.
In started state, statements are actively evaluating event streams according to the statement expression. Started statements can be stopped and destroyed.
In stopped state, statements are inactive. Stopped statements can either be started, in which case they begin to actively evaluate event streams, or destroyed.
Destroyed statements have relinguished all statement resources and cannot be started or stopped.
Method Summary | |
---|---|
void |
destroy()
Destroy the statement releasing all statement resources. |
String |
getName()
Returns the statement name. |
EPStatementState |
getState()
Returns the statement's current state. |
String |
getText()
Returns the underlying expression text. |
long |
getTimeLastStateChange()
Returns the system time in milliseconds of when the statement last change state. |
boolean |
isDestroyed()
Returns true if the statement state is destroyed. |
boolean |
isStarted()
Returns true if the statement state is started. |
boolean |
isStopped()
Returns true if the statement state is stopped. |
void |
start()
Start the statement. |
void |
stop()
Stop the statement. |
Methods inherited from interface net.esper.client.EPListenable |
---|
addListener, addListener, getStatementAwareListeners, getUpdateListeners, removeAllListeners, removeListener, removeListener |
Methods inherited from interface net.esper.client.EPIterable |
---|
getEventType, iterator |
Method Detail |
---|
void start()
void stop()
void destroy()
A destroyed statement cannot be started again.
EPStatementState getState()
boolean isStarted()
boolean isStopped()
boolean isDestroyed()
String getText()
String getName()
long getTimeLastStateChange()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |