at.ac.tuwien.infosys.sm4all.copal.esper.internal
Class EventNotifier

java.lang.Object
  extended by at.ac.tuwien.infosys.sm4all.copal.esper.internal.EventNotifier
All Implemented Interfaces:
com.espertech.esper.client.UpdateListener

public class EventNotifier
extends Object
implements com.espertech.esper.client.UpdateListener

Esper's UpdateListener which helps transform Esper's event to context events understood by ContextListener.

Author:
fei, sanjin

Constructor Summary
EventNotifier(com.espertech.esper.client.EPAdministrator administrator, ContextQuery query)
          Creates Esper's update listener using specified administrator to create Esper statement from specified context query.
 
Method Summary
 void destroy()
          Destroys the Esper statement used to get the update notifications.
 void update(com.espertech.esper.client.EventBean[] newEvents, com.espertech.esper.client.EventBean[] oldEvents)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventNotifier

public EventNotifier(com.espertech.esper.client.EPAdministrator administrator,
                     ContextQuery query)
Creates Esper's update listener using specified administrator to create Esper statement from specified context query.

Parameters:
administrator - the Esper administrator.
query - the context query.
Method Detail

update

public void update(com.espertech.esper.client.EventBean[] newEvents,
                   com.espertech.esper.client.EventBean[] oldEvents)
Specified by:
update in interface com.espertech.esper.client.UpdateListener

destroy

public void destroy()
Destroys the Esper statement used to get the update notifications.



Copyright © 2010 Distributed Systems Group, Vienna University of Technology. All Rights Reserved.