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, PatternObjectResolutionService patternResolutionService, StatementExtensionSvcContext statementExtensionSvcContext, StatementStopService statementStopService, MethodResolutionService methodResolutionService, PatternContextFactory patternContextFactory, FilterService filterService, JoinSetComposerFactory joinSetComposerFactory, OutputConditionFactory outputConditionFactory, NamedWindowService namedWindowService, VariableService variableService)
          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
 StatementExtensionSvcContext getExtensionServicesContext()
          Returns extension context for statements.
 FilterService getFilterService()
          Returns the filter service.
 JoinSetComposerFactory getJoinSetComposerFactory()
          Returns the statement's factory for join set processors.
 MethodResolutionService getMethodResolutionService()
          Returns service to look up static and aggregation methods or functions.
 NamedWindowService getNamedWindowService()
          Returns the named window management service.
 OutputConditionFactory getOutputConditionFactory()
          Returns the statement's factory for output conditions.
 PatternContextFactory getPatternContextFactory()
          Returns the pattern context factory for the statement.
 PatternObjectResolutionService getPatternResolutionService()
          Returns the statement's resolution service for pattern objects.
 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.
 VariableService getVariableService()
          Returns variable service.
 ViewResolutionService getViewResolutionService()
          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,
                        PatternObjectResolutionService patternResolutionService,
                        StatementExtensionSvcContext statementExtensionSvcContext,
                        StatementStopService statementStopService,
                        MethodResolutionService methodResolutionService,
                        PatternContextFactory patternContextFactory,
                        FilterService filterService,
                        JoinSetComposerFactory joinSetComposerFactory,
                        OutputConditionFactory outputConditionFactory,
                        NamedWindowService namedWindowService,
                        VariableService variableService)
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
statementExtensionSvcContext - 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
patternResolutionService - is the service that resolves pattern objects for the statement
joinSetComposerFactory - is the factory for creating service objects that compose join results
outputConditionFactory - is the factory for output condition objects
namedWindowService - is holding information about the named windows active in the system
variableService - provides access to variable values
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

getViewResolutionService

public ViewResolutionService getViewResolutionService()
Returns view resolution svc.

Returns:
view resolution

getExtensionServicesContext

public StatementExtensionSvcContext getExtensionServicesContext()
Returns extension context for statements.

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

getJoinSetComposerFactory

public JoinSetComposerFactory getJoinSetComposerFactory()
Returns the statement's factory for join set processors.

Returns:
factory for processing join sets

getOutputConditionFactory

public OutputConditionFactory getOutputConditionFactory()
Returns the statement's factory for output conditions.

Returns:
factory for output conditions

getPatternResolutionService

public PatternObjectResolutionService getPatternResolutionService()
Returns the statement's resolution service for pattern objects.

Returns:
service for resolving pattern objects

getNamedWindowService

public NamedWindowService getNamedWindowService()
Returns the named window management service.

Returns:
service for managing named windows

getVariableService

public VariableService getVariableService()
Returns variable service.

Returns:
variable service

toString

public String toString()
Overrides:
toString in class Object

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com