|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ViewFactory
Factory interface for a factory responsible for creating a View
instance and for determining
if an existing view meets requirements.
Method Summary | |
---|---|
void |
attach(EventType parentEventType,
StatementContext statementContext,
ViewFactory optionalParentFactory,
java.util.List<ViewFactory> parentViewFactories)
Attaches the factory to a parent event type such that the factory can validate attach requirements and determine an event type for resulting views. |
boolean |
canReuse(View view)
Determines if the given view could be used instead of creating a new view, requires the view factory to compare view type, parameters and other capabilities provided. |
EventType |
getEventType()
Returns the event type that the view that is created by the view factory would create for events posted by the view. |
java.lang.String |
getViewName()
Returns the name of the view, not namespace+name but readable name. |
View |
makeView(AgentInstanceViewFactoryChainContext agentInstanceViewFactoryContext)
Create a new view. |
void |
setViewParameters(ViewFactoryContext viewFactoryContext,
java.util.List<ExprNode> viewParameters)
Indicates user EPL query view parameters to the view factory. |
Method Detail |
---|
void setViewParameters(ViewFactoryContext viewFactoryContext, java.util.List<ExprNode> viewParameters) throws ViewParameterException
viewFactoryContext
- supplied context information for the view factoryviewParameters
- is the objects representing the view parameters
ViewParameterException
- if the parameters don't match view parameter needsvoid attach(EventType parentEventType, StatementContext statementContext, ViewFactory optionalParentFactory, java.util.List<ViewFactory> parentViewFactories) throws ViewParameterException
parentEventType
- is the parent event stream's or view factory's event typestatementContext
- contains the services needed for creating a new event typeoptionalParentFactory
- is null when there is no parent view factory, or contains the
parent view factoryparentViewFactories
- is a list of all the parent view factories or empty list if there are none
ViewParameterException
- is thrown to indicate that this view factories's view would not play
with the parent view factories viewView makeView(AgentInstanceViewFactoryChainContext agentInstanceViewFactoryContext)
agentInstanceViewFactoryContext
- EventType getEventType()
boolean canReuse(View view)
view
- is the candidate view to compare to
java.lang.String getViewName()
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |