net.esper.core
Class StatementContext

java.lang.Object
  extended by net.esper.core.StatementContext

public final class StatementContext
extends Object

Contains handles to the implementation of the the scheduling service for use in view evaluation.


Constructor Summary
StatementContext(String engineURI, String engineInstanceId, String statementId, String statementName, String expression, SchedulingService schedulingService, ScheduleBucket scheduleBucket, EventAdapterService eventAdapterService, EPStatementHandle epStatementHandle, ViewResolutionService viewResultionService, ExtensionServicesContext extensionServicesContext, StatementStopService statementStopService, MethodResolutionService methodResolutionService, PatternContextFactory patternContextFactory, FilterService filterService)
          Constructor.
 
Method Summary
 String getEngineInstanceId()
          Returns the engine instance id.
 String getEngineURI()
          Returns the engine URI.
 EPStatementHandle getEpStatementHandle()
          Returns the statement's resource locks.
 EventAdapterService getEventAdapterService()
          Returns service for generating events and handling event types.
 String getExpression()
          Returns the statement expression text
 ExtensionServicesContext getExtensionServicesContext()
          Returns extension context.
 FilterService getFilterService()
          Returns the filter service.
 MethodResolutionService getMethodResolutionService()
          Returns service to look up static and aggregation methods or functions.
 PatternContextFactory getPatternContextFactory()
          Returns the pattern context factory for the statement.
 ScheduleBucket getScheduleBucket()
          Returns the schedule bucket for ordering schedule callbacks within this pattern.
 SchedulingService getSchedulingService()
          Returns service to use for schedule evaluation.
 String getStatementId()
          Returns the statement id.
 String getStatementName()
          Returns the statement name
 StatementStopService getStatementStopService()
          Returns statement stop subscription taker.
 ViewResolutionService getViewResultionService()
          Returns view resolution svc.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatementContext

public StatementContext(String engineURI,
                        String engineInstanceId,
                        String statementId,
                        String statementName,
                        String expression,
                        SchedulingService schedulingService,
                        ScheduleBucket scheduleBucket,
                        EventAdapterService eventAdapterService,
                        EPStatementHandle epStatementHandle,
                        ViewResolutionService viewResultionService,
                        ExtensionServicesContext extensionServicesContext,
                        StatementStopService statementStopService,
                        MethodResolutionService methodResolutionService,
                        PatternContextFactory patternContextFactory,
                        FilterService filterService)
Constructor.

Parameters:
engineURI - is the engine URI
engineInstanceId - is the name of the engine instance
statementId - is the statement is assigned for the statement for which this context exists
statementName - is the statement name
expression - is the EQL or pattern expression used
schedulingService - implementation for schedule registration
scheduleBucket - is for ordering scheduled callbacks within the view statements
eventAdapterService - service for generating events and handling event types
epStatementHandle - is the statements-own handle for use in registering callbacks with services
viewResultionService - is a service for resolving view namespace and name to a view factory
extensionServicesContext - provide extension points for custom statement resources
statementStopService - for registering a callback invoked when a statement is stopped
methodResolutionService - is a service for resolving static methods and aggregation functions
patternContextFactory - is the pattern-level services and context information factory
filterService - is the filtering service
Method Detail

getStatementId

public String getStatementId()
Returns the statement id.

Returns:
statement id

getStatementName

public String getStatementName()
Returns the statement name

Returns:
statement name

getSchedulingService

public final SchedulingService getSchedulingService()
Returns service to use for schedule evaluation.

Returns:
schedule evaluation service implemetation

getEventAdapterService

public EventAdapterService getEventAdapterService()
Returns service for generating events and handling event types.

Returns:
event adapter service

getScheduleBucket

public ScheduleBucket getScheduleBucket()
Returns the schedule bucket for ordering schedule callbacks within this pattern.

Returns:
schedule bucket

getEpStatementHandle

public EPStatementHandle getEpStatementHandle()
Returns the statement's resource locks.

Returns:
statement resource lock/handle

getViewResultionService

public ViewResolutionService getViewResultionService()
Returns view resolution svc.

Returns:
view resolution

getExtensionServicesContext

public ExtensionServicesContext getExtensionServicesContext()
Returns extension context.

Returns:
context

getStatementStopService

public StatementStopService getStatementStopService()
Returns statement stop subscription taker.

Returns:
stop service

getMethodResolutionService

public MethodResolutionService getMethodResolutionService()
Returns service to look up static and aggregation methods or functions.

Returns:
method resolution

getPatternContextFactory

public PatternContextFactory getPatternContextFactory()
Returns the pattern context factory for the statement.

Returns:
pattern context factory

getExpression

public String getExpression()
Returns the statement expression text

Returns:
expression text

getEngineURI

public String getEngineURI()
Returns the engine URI.

Returns:
engine URI

getEngineInstanceId

public String getEngineInstanceId()
Returns the engine instance id.

Returns:
instance id

getFilterService

public FilterService getFilterService()
Returns the filter service.

Returns:
filter service

toString

public String toString()
Overrides:
toString in class Object