com.espertech.esper.view
Class ViewFactoryContext

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

public class ViewFactoryContext
extends java.lang.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, java.lang.String namespaceName, java.lang.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.
 java.lang.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.
 StatementContext getStatementContext()
          Returns the statement context.
 java.lang.String getStatementId()
          Returns the statement id.
 byte[] getStatementIdBytes()
           
 int getStreamNum()
          Returns the stream number.
 java.lang.String getViewName()
          Returns the view name.
 int getViewNum()
          Returns the view number
 java.lang.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,
                          java.lang.String namespaceName,
                          java.lang.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

getStatementId

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

Returns:
statement id

getStatementIdBytes

public byte[] getStatementIdBytes()

getStreamNum

public int getStreamNum()
Returns the stream number.

Returns:
stream number

getViewNum

public int getViewNum()
Returns the view number

Returns:
view number

getNamespaceName

public java.lang.String getNamespaceName()
Returns the view namespace name.

Returns:
namespace name

getViewName

public java.lang.String getViewName()
Returns the view name.

Returns:
view name

getStatementContext

public StatementContext getStatementContext()
Returns the statement context.

Returns:
statement context

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

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