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

java.lang.Object
  extended by at.ac.tuwien.infosys.sm4all.copal.api.osgi.GenericActivator
      extended by at.ac.tuwien.infosys.sm4all.copal.esper.internal.DeadLetterListener
All Implemented Interfaces:
DependencyTrackerCustomizer, com.espertech.esper.client.UnmatchedListener, org.osgi.framework.BundleActivator

public class DeadLetterListener
extends GenericActivator
implements com.espertech.esper.client.UnmatchedListener

Esper's UnmatchedListener which helps transform Esper's events to ContextEvents understood by DeadLetterChannel.

Author:
sanjin

Constructor Summary
DeadLetterListener(com.espertech.esper.client.EPServiceProvider serviceProvider)
          Creates an instance of the UnmatchedListener for the DeadLetterChannel with specified EPServiceProvider.
 
Method Summary
protected  void start()
          Called when all dependencies are met.
protected  void stop()
          Called when GenericActivator.start() was previously called and one of the dependencies has been unregistered.
 void update(com.espertech.esper.client.EventBean eventBean)
           
 
Methods inherited from class at.ac.tuwien.infosys.sm4all.copal.api.osgi.GenericActivator
addingService, getDependency, modifiedService, register, register, removedService, start, stop, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeadLetterListener

public DeadLetterListener(com.espertech.esper.client.EPServiceProvider serviceProvider)
Creates an instance of the UnmatchedListener for the DeadLetterChannel with specified EPServiceProvider.

Parameters:
serviceProvider - the EPServiceProvider.
Method Detail

start

protected void start()
Description copied from class: GenericActivator
Called when all dependencies are met.

Specified by:
start in class GenericActivator

stop

protected void stop()
Description copied from class: GenericActivator
Called when GenericActivator.start() was previously called and one of the dependencies has been unregistered.

Specified by:
stop in class GenericActivator

update

public void update(com.espertech.esper.client.EventBean eventBean)
Specified by:
update in interface com.espertech.esper.client.UnmatchedListener


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