net.esper.core
Interface EPStatementSPI

All Superinterfaces:
EPIterable, EPListenable, EPStatement
All Known Implementing Classes:
EPStatementImpl

public interface EPStatementSPI
extends EPStatement

Statement SPI for statements operations for state transitions and internal management.


Method Summary
 EPStatementListenerSet getListenerSet()
          Returns the current set of listeners for read-only operations.
 String getStatementId()
          Returns the statement id.
 void setCurrentState(EPStatementState currentState, long timeLastStateChange)
          Set statement state.
 void setListeners(EPStatementListenerSet listeners)
          Sets the statement listeners.
 void setParentView(Viewable viewable)
          Sets the parent view.
 
Methods inherited from interface net.esper.client.EPStatement
destroy, getName, getState, getText, getTimeLastStateChange, isDestroyed, isStarted, isStopped, start, stop
 
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

getStatementId

String getStatementId()
Returns the statement id.

Returns:
statement id

getListenerSet

EPStatementListenerSet getListenerSet()
Returns the current set of listeners for read-only operations.

Returns:
listener set

setListeners

void setListeners(EPStatementListenerSet listeners)
Sets the statement listeners.

Care must be taken in the use of this method as unsynchronized modification to the listeners of a statement can yield problems.

Parameters:
listeners - set

setCurrentState

void setCurrentState(EPStatementState currentState,
                     long timeLastStateChange)
Set statement state.

Parameters:
currentState - new current state
timeLastStateChange - the timestamp the statement changed state

setParentView

void setParentView(Viewable viewable)
Sets the parent view.

Parameters:
viewable - is the statement viewable