REQUIREMENT engine.qos.queryspec.QueueQuery |
Type | NEW |
Priority | HIGH |
Status | CLOSED |
Topic | XmlBlaster has a plugin which is used to query message entries on arbitrary queues | ||||||||||||||||||||
Des cription |
As an implementation of the I_Query interface the following plugin is invoked when doing a query to a queue.
The query can be done as a synchronous get or in future via a subscription. More specifically it is done with
an administrative GET so it can be invoked either via an administrative message or via telnet, snmp or jmx.
When an invocation on this plugin is done, it will look for the
When used from such administrative gateways which don't have the possibility to specify a key and a qos, for
example via telnet, the qos is passed at the end of the command with a key Following queue types are supported:
|
||||||||||||||||||||
Example Java |
These is an example key and QoS of a get() invoked from within the
XmlScript demo,
copy the script below into a file <xmlBlaster> <connect /> <get> <key oid='__cmd:client/joe/session/1/?callbackQueueEntries' queryType='EXACT'> </key> <qos> <querySpec type='QueueQuery'><![CDATA[ maxEntries=3&maxSize=-1&consumable=false&waitingDelay=0]]> </querySpec> </qos> </get> <disconnect /> </xmlBlaster>This example is invoked from a ordinary telnet client ( telnet localhost 2702 ):
GET client/subscribe/session/1/?callbackQueueEntries="maxEntries=2&maxSize=-1&consumable=true" <qos> <sender>/node/xmlBlaster_127_0_0_2_3412/client/pubisher/2</sender> <subscribe id='__subId:1142197847757000000'/> <expiration lifeTime='-1' forceDestroy='false'/> <rcvTimestamp nanos='1142197883173000000'/> </qos> <key oid='Hello' contentMime='text/xml' contentMimeExtended='1.0'/> <content type='String'>Hi-16</content> <qos> <sender>/node/xmlBlaster_127_0_0_2_3412/client/pubisher/2</sender> <subscribe id='__subId:1142197847757000000'/> <expiration lifeTime='-1' forceDestroy='false'/> <rcvTimestamp nanos='1142197883209000000'/> </qos> <key oid='Hello' contentMime='text/xml' contentMimeExtended='1.0'/> <content type='String'>Hi-17</content> This example consumes 2 messages from the history queue of the topic Hello, if there are no messages we return immediately:
|
||||||||||||||||||||
Configure |
NOTE: Configuration parameters are specified on command line (-someValue 17) or in the
xmlBlaster.properties file (someValue=17). See requirement "util.property" for details. |
||||||||||||||||||||
See API | org.xmlBlaster.engine.query.I_Query | ||||||||||||||||||||
See API | org.xmlBlaster.engine.query.plugins.QueueQueryPlugin | ||||||||||||||||||||
See API | org.xmlBlaster.util.plugin.I_Plugin | ||||||||||||||||||||
See REQ | mime.plugin.accessfilter | ||||||||||||||||||||
See REQ | admin | ||||||||||||||||||||
See REQ | admin.commands | ||||||||||||||||||||
See REQ | admin.messages | ||||||||||||||||||||
See REQ | engine.qos.queryspec | ||||||||||||||||||||
See REQ | client.script | ||||||||||||||||||||
See | A scripting example | ||||||||||||||||||||
See TEST | org.xmlBlaster.test.admin.TestAdminGet |
This page is generated from the requirement XML file xmlBlaster/doc/requirements/engine.qos.queryspec.QueueQuery.xml