net.esper.view
Class StatementServiceContext

java.lang.Object
  extended by net.esper.view.StatementServiceContext

public final class StatementServiceContext
extends Object

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


Constructor Summary
StatementServiceContext(String statementId, String statementName, SchedulingService schedulingService, ScheduleBucket scheduleBucket, EventAdapterService eventAdapterService, EPStatementHandle epStatementHandle, ViewResolutionService viewResultionService, ExtensionServicesContext extensionServicesContext, StatementStopService statementStopService)
          Constructor.
 
Method Summary
 EPStatementHandle getEpStatementHandle()
          Returns the statement's resource locks.
 EventAdapterService getEventAdapterService()
          Returns service for generating events and handling event types.
 ExtensionServicesContext getExtensionServicesContext()
          Returns extension context.
 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

StatementServiceContext

public StatementServiceContext(String statementId,
                               String statementName,
                               SchedulingService schedulingService,
                               ScheduleBucket scheduleBucket,
                               EventAdapterService eventAdapterService,
                               EPStatementHandle epStatementHandle,
                               ViewResolutionService viewResultionService,
                               ExtensionServicesContext extensionServicesContext,
                               StatementStopService statementStopService)
Constructor.

Parameters:
statementId - is the statement is assigned for the statement for which this context exists
statementName - is the statement name
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
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

toString

public String toString()
Overrides:
toString in class Object