createPollMethodView
public static HistoricalEventViewable createPollMethodView(int streamNumber,
MethodStreamSpec methodStreamSpec,
EventAdapterService eventAdapterService,
EPStatementAgentInstanceHandle epStatementAgentInstanceHandle,
EngineImportService engineImportService,
SchedulingService schedulingService,
ScheduleBucket scheduleBucket,
ExprEvaluatorContext exprEvaluatorContext,
VariableService variableService,
String contextName,
DataCacheFactory dataCacheFactory,
StatementContext statementContext)
throws ExprValidationException
Creates a method-invocation polling view for use as a stream that calls a method, or pulls results from cache.
- Parameters:
streamNumber
- the stream number
methodStreamSpec
- defines the class and method to call
eventAdapterService
- for creating event types and events
epStatementAgentInstanceHandle
- for time-based callbacks
engineImportService
- for resolving configurations
schedulingService
- for scheduling callbacks in expiry-time based caches
scheduleBucket
- for schedules within the statement
exprEvaluatorContext
- expression evaluation context
variableService
- variable service
statementContext
- statement context
contextName
- context name
dataCacheFactory
- factory for cache
- Returns:
- pollable view
- Throws:
ExprValidationException
- if the expressions cannot be validated or the method descriptor
has incorrect class and method names, or parameter number and types don't match