com.espertech.esper.core.service
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
 java.lang.String getExpressionNoAnnotations()
          Returns the statements expression without annotations.
 EPStatementListenerSet getListenerSet()
          Returns the current set of listeners for read-only operations.
 StatementContext getStatementContext()
          Returns the statement context.
 java.lang.String getStatementId()
          Returns the statement id.
 StatementMetadata getStatementMetadata()
          Returns additional metadata about a statement.
 boolean isNameProvided()
          True if an explicit statement name has been provided, false if the statement name is system-generated.
 void setCurrentState(EPStatementState currentState, long timeLastStateChange)
          Set statement state.
 void setListeners(EPStatementListenerSet listeners, boolean isRecovery)
          Sets the statement listeners.
 void setParentView(Viewable viewable)
          Sets the parent view.
 void setServiceIsolated(java.lang.String serviceIsolated)
          Set the statement's isolated service name, or null to clear.
 
Methods inherited from interface com.espertech.esper.client.EPStatement
addListenerWithReplay, destroy, getAnnotations, getName, getServiceIsolated, getState, getSubscriber, getText, getTimeLastStateChange, getUserObject, isDestroyed, isPattern, isStarted, isStopped, iterator, safeIterator, setSubscriber, setSubscriber, start, stop
 
Methods inherited from interface com.espertech.esper.client.EPListenable
addListener, addListener, getStatementAwareListeners, getUpdateListeners, removeAllListeners, removeListener, removeListener
 
Methods inherited from interface com.espertech.esper.client.EPIterable
getEventType, iterator, safeIterator
 

Method Detail

getStatementId

java.lang.String getStatementId()
Returns the statement id.

Returns:
statement id

setServiceIsolated

void setServiceIsolated(java.lang.String serviceIsolated)
Set the statement's isolated service name, or null to clear.

Parameters:
serviceIsolated - name of isolated service

getExpressionNoAnnotations

java.lang.String getExpressionNoAnnotations()
Returns the statements expression without annotations.

Returns:
expression

getListenerSet

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

Returns:
listener set

setListeners

void setListeners(EPStatementListenerSet listeners,
                  boolean isRecovery)
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

getStatementMetadata

StatementMetadata getStatementMetadata()
Returns additional metadata about a statement.

Returns:
statement metadata

getStatementContext

StatementContext getStatementContext()
Returns the statement context.

Returns:
statement context

isNameProvided

boolean isNameProvided()
True if an explicit statement name has been provided, false if the statement name is system-generated.

Returns:
indicator if statement name exists

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com