com.espertech.esper.view
Class ViewFactoryContext

java.lang.Object
  extended by com.espertech.esper.view.ViewFactoryContext

public class ViewFactoryContext
extends Object

Context calss for specific views within a statement. Each view in a statement gets it's own context containing the statement context.


Constructor Summary
ViewFactoryContext(StatementContext statementContext, int streamNum, int viewNum, String namespaceName, String viewName)
          Ctor.
 
Method Summary
 EPStatementHandle getEpStatementHandle()
          Returns the statement's resource locks.
 EventAdapterService getEventAdapterService()
          Returns service for generating events and handling event types.
 StatementExtensionSvcContext getExtensionServicesContext()
          Returns extension svc.
 String getNamespaceName()
          Returns the view namespace name.
 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.
 StatementStopService getStatementStopService()
          Returns statement stop svc.
 int getStreamNum()
          Returns the stream number.
 String getViewName()
          Returns the view name.
 int getViewNum()
          Returns the view number
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ViewFactoryContext

public ViewFactoryContext(StatementContext statementContext,
                          int streamNum,
                          int viewNum,
                          String namespaceName,
                          String viewName)
Ctor.

Parameters:
statementContext - is the statement-level services
streamNum - is the stream number from zero to N
viewNum - is the view number from zero to N
namespaceName - is the view namespace
viewName - is the view name
Method Detail

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

getExtensionServicesContext

public StatementExtensionSvcContext getExtensionServicesContext()
Returns extension svc.

Returns:
svc

getStatementStopService

public StatementStopService getStatementStopService()
Returns statement stop svc.

Returns:
snc

getStatementId

public String getStatementId()
Returns the statement id.

Returns:
statement id

getStreamNum

public int getStreamNum()
Returns the stream number.

Returns:
stream number

getViewNum

public int getViewNum()
Returns the view number

Returns:
view number

getNamespaceName

public String getNamespaceName()
Returns the view namespace name.

Returns:
namespace name

getViewName

public String getViewName()
Returns the view name.

Returns:
view name

toString

public String toString()
Overrides:
toString in class Object

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