cgl.narada.samples.nbNative
Class SimpleTestClient

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

public class SimpleTestClient
extends Object
implements NBEventListener

A simple native client of NaradaBrokering


Constructor Summary
SimpleTestClient(int entityId)
           
 
Method Summary
 void addEventProperty()
           
 void closeBrokerConnection()
          Closes the connection to the broker.
 void initializeBrokerCommunications(Properties props, String commType)
           
 void initializeConsumer()
           
 void initializeProducer()
           
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 printMemoryInformation()
           
 void processEventProperties(NBEvent nbEvent)
           
 void publishEvent(byte[] transferBytes)
           
 void publishEvent(String stringMsg)
           
 void removeEventProperty()
           
 void unsubscribe()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTestClient

public SimpleTestClient(int entityId)
Method Detail

initializeBrokerCommunications

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

closeBrokerConnection

public void closeBrokerConnection()
                           throws ServiceException
Closes the connection to the broker.

Throws:
ServiceException

initializeProducer

public void initializeProducer()
                        throws ServiceException
Throws:
ServiceException

initializeConsumer

public void initializeConsumer()
                        throws ServiceException
Throws:
ServiceException

unsubscribe

public void unsubscribe()
                 throws ServiceException
Throws:
ServiceException

addEventProperty

public void addEventProperty()

removeEventProperty

public void removeEventProperty()

publishEvent

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

publishEvent

public void publishEvent(byte[] transferBytes)
                  throws ServiceException,
                         NBEventException
Throws:
ServiceException
NBEventException

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

printMemoryInformation

public void printMemoryInformation()

processEventProperties

public void processEventProperties(NBEvent nbEvent)
                            throws NBEventException
Throws:
NBEventException

main

public static void main(String[] args)


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