net.esper.view
Interface ViewService

All Known Implementing Classes:
ViewServiceImpl

public interface ViewService

Service interface for creating views.


Method Summary
 View createView(EventStream eventStream, java.util.List<ViewSpec> viewSpecList, ViewServiceContext context)
          Creates a chain of views returning the last view in the chain.
 void remove(EventStream eventStream, View 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

createView

View createView(EventStream eventStream,
                java.util.List<ViewSpec> viewSpecList,
                ViewServiceContext context)
                throws ViewProcessingException
Creates a chain of views returning the last view in the chain.

Parameters:
eventStream - - the event stream that originates the raw events
viewSpecList - - the specification for the chain to be created
context - - dependent services
Returns:
last view in chain
Throws:
ViewProcessingException - thrown if a view cannot be created

remove

void remove(EventStream eventStream,
            View 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