This is archived documentation for an older version of Nirvana (v2.0). Please refer to documentation for the latest version if required.

Popping events from a Nirvana queue

This example (QSubscriber.Java) pops events from a Nirvana queue. This program is provided in the apps directory of the Nirvana client install. This class performs destructive reads on the queue.

Java -DRNAME=someRNAME -DTIMEOUT=milliseconds -DDEBUG=num -DCOUNT=num -DSELECTOR=evtSelector -DQUEUENAME=Qname com.pcbsys.Nirvana.apps.QSubscriber

where :
RNAME is the realm name of the Nirvana server you wish to connect to (e.g. nsp://localhost:9000 ).
TIMEOUT - The timeout value for the queue pop operation.
DEBUG is how verbose the output should be. 0 = none; 1 = summary, 2 = EIDs only , 3 - eids and data
COUNT is the number of events to wait for before printin out summary information
SELECTOR is the event filter string to use. The default is no filter.
QUEUENAME is the name of the Nirvana queue you wish to pop from