cgl.narada.samples.nbNative
Class SimpleXPathClient

java.lang.Object
  extended by cgl.narada.samples.nbNative.SimpleXPathClient
All Implemented Interfaces:
NBEventListener

public class SimpleXPathClient
extends Object
implements NBEventListener

A simple native client of NaradaBrokering with XPath based subscription constraints and XML-based content synopisis.


Constructor Summary
SimpleXPathClient(int entityId)
           
 
Method Summary
 void initializeBrokerCommunications(Properties props, String commType)
           
 void initializeProducerAndConsumer()
           
static void main(String[] args)
           
 void onEvent(NBEvent nbEvent)
          Upon the receipt of an event which has satisfied all the constraints, if any were provided, that needed to be satisfied prior to delivery
 void publishEvent(Document document, String stringMsg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleXPathClient

public SimpleXPathClient(int entityId)
Method Detail

initializeBrokerCommunications

public void initializeBrokerCommunications(Properties props,
                                           String commType)
                                    throws ServiceException
Throws:
ServiceException

initializeProducerAndConsumer

public void initializeProducerAndConsumer()
                                   throws ServiceException
Throws:
ServiceException

publishEvent

public void publishEvent(Document document,
                         String stringMsg)
                  throws ServiceException
Throws:
ServiceException

onEvent

public void onEvent(NBEvent nbEvent)
Description copied from interface: NBEventListener
Upon the receipt of an event which has satisfied all the constraints, if any were provided, that needed to be satisfied prior to delivery

Specified by:
onEvent in interface NBEventListener

main

public static void main(String[] args)


For comments and suggestions please send e-mail to The NaradaBrokering Project