net.esper.view
Interface ViewService

All Known Implementing Classes:
ViewServiceImpl

public interface ViewService

Service interface for creating views.


Method Summary
 ViewFactoryChain createFactories(EventType parentEventType, List<ViewSpec> viewSpecList, ViewServiceContext context)
           
 Viewable createViews(Viewable eventStreamViewable, List<ViewFactory> viewFactoryChain, ViewServiceContext context)
          Creates the views given a chain of view factories.
 void remove(EventStream eventStream, Viewable view)
          Removes a view discoupling the view and any of it's parent views up the tree to the last shared parent view.
 

Method Detail

createFactories

ViewFactoryChain createFactories(EventType parentEventType,
                                 List<ViewSpec> viewSpecList,
                                 ViewServiceContext context)
                                 throws ViewProcessingException
Throws:
ViewProcessingException

createViews

Viewable createViews(Viewable eventStreamViewable,
                     List<ViewFactory> viewFactoryChain,
                     ViewServiceContext context)
Creates the views given a chain of view factories.

Attempts to reuse compatible views under then parent event stream viewable as indicated by each view factories reuse method.

Parameters:
eventStreamViewable - is the event stream to hook into
viewFactoryChain - defines the list of view factorys to call makeView or canReuse on
context - provides services
Returns:
last viewable in chain, or the eventStreamViewable if no view factories are supplied

remove

void remove(EventStream eventStream,
            Viewable view)
Removes a view discoupling the view and any of it's parent views up the tree to the last shared parent view.

Parameters:
eventStream - - the event stream that originates the raw events
view - - the view (should be the last in a chain) to remove