public class VirtualDataWindowContext extends Object
VirtualDataWindowFactory
provides
contextual information about the named window and the type of events held,
handle for posting insert and remove streams and factory for event bean instances.Constructor and Description |
---|
VirtualDataWindowContext(VirtualDWViewFactory factory,
AgentInstanceViewFactoryChainContext agentInstanceViewFactoryContext,
EventBeanFactory eventBeanFactory,
VirtualDataWindowOutStreamImpl outputStream)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
AgentInstanceContext |
getAgentInstanceContext()
Returns the agent instance (context partition) context.
|
AgentInstanceViewFactoryChainContext |
getAgentInstanceViewFactoryContext()
Returns the agent instance context
|
EventBeanFactory |
getEventFactory()
Returns the factory for creating instances of EventBean from rows.
|
EventType |
getEventType()
Returns the event type of the events held in the virtual data window as per declaration of the named window.
|
VirtualDWViewFactory |
getFactory()
Returns the factory
|
String |
getNamedWindowName()
Returns the name of the named window used in connection with the virtual data window.
|
VirtualDataWindowOutStream |
getOutputStream()
Returns a handle for use to send insert and remove stream data to consuming statements.
|
ExprEvaluator[] |
getParameterExpressions()
Returns the expressions passed as parameters to the virtual data window.
|
Object[] |
getParameters()
Returns the parameters passed; for example "create window ABC.my:vdw("10.0.0.1")" passes one paramater here.
|
StatementContext |
getStatementContext()
Returns the statement context which holds statement information (name, expression, id) and statement-level services.
|
public VirtualDataWindowContext(VirtualDWViewFactory factory, AgentInstanceViewFactoryChainContext agentInstanceViewFactoryContext, EventBeanFactory eventBeanFactory, VirtualDataWindowOutStreamImpl outputStream)
factory
- factoryagentInstanceViewFactoryContext
- contexteventBeanFactory
- event bean factoryoutputStream
- output streampublic StatementContext getStatementContext()
public EventType getEventType()
public Object[] getParameters()
public EventBeanFactory getEventFactory()
public VirtualDataWindowOutStream getOutputStream()
Typically use "context.getOutputStream().update(newData, oldData);" in the update method of the virtual data window.
public String getNamedWindowName()
public ExprEvaluator[] getParameterExpressions()
public AgentInstanceContext getAgentInstanceContext()
public VirtualDWViewFactory getFactory()
public AgentInstanceViewFactoryChainContext getAgentInstanceViewFactoryContext()
Copyright © 2005–2018. All rights reserved.