net.esper.view
Class ViewServiceImpl

java.lang.Object
  extended by net.esper.view.ViewServiceImpl
All Implemented Interfaces:
ViewService

public final class ViewServiceImpl
extends java.lang.Object
implements ViewService

Implementation of the view evaluation service business interface.


Constructor Summary
ViewServiceImpl()
          Ctor.
 
Method Summary
 Viewable createView(EventStream eventStream, java.util.List<ViewSpec> viewSpecDefinitions, ViewServiceContext context)
          Creates a chain of views returning the last view in the chain.
 void remove(EventStream eventStream, Viewable viewToRemove)
          Removes a view discoupling the view and any of it's parent views up the tree to the last shared parent view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewServiceImpl

public ViewServiceImpl()
Ctor.

Method Detail

createView

public Viewable createView(EventStream eventStream,
                           java.util.List<ViewSpec> viewSpecDefinitions,
                           ViewServiceContext context)
                    throws ViewProcessingException
Description copied from interface: ViewService
Creates a chain of views returning the last view in the chain.

Specified by:
createView in interface ViewService
Parameters:
eventStream - - the event stream that originates the raw events
viewSpecDefinitions - - 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

public void remove(EventStream eventStream,
                   Viewable viewToRemove)
Description copied from interface: ViewService
Removes a view discoupling the view and any of it's parent views up the tree to the last shared parent view.

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