at.ac.tuwien.infosys.sm4all.copal.core.internal
Class UnmatchedEventProcessor

java.lang.Object
  extended by at.ac.tuwien.infosys.sm4all.copal.core.internal.UnmatchedEventProcessor
All Implemented Interfaces:
ContextListener

public class UnmatchedEventProcessor
extends Object
implements ContextListener

Processor of events that were not matched by any query.

Author:
sanjin

Constructor Summary
UnmatchedEventProcessor(PublishingService publishingService)
          Creates an instance using specified PublishingService to republish ContextEvents that were not matched by any other processor for an optional action.
 
Method Summary
 String getName()
           
 void onEvent(Document document)
          This method is called when a context event occurs for which this listener has been register to be notified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnmatchedEventProcessor

public UnmatchedEventProcessor(PublishingService publishingService)
Creates an instance using specified PublishingService to republish ContextEvents that were not matched by any other processor for an optional action.

Parameters:
publishingService - the PublishingService.
Method Detail

getName

public String getName()
Specified by:
getName in interface ContextListener
Returns:
the globally unique name of the listener.

onEvent

public void onEvent(Document document)
Description copied from interface: ContextListener
This method is called when a context event occurs for which this listener has been register to be notified.

Specified by:
onEvent in interface ContextListener
Parameters:
document - occurred XML event.


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