<div>
<div><p style="color: #a0a0a0;">On Wednesday, April 20, 2011 at 12:08 PM, mysurf mail wrote:</p>
<blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<span><div><div><div dir="ltr">can I get all the queues for a single channel ?</div></div></div></span></blockquote><div><br></div><div>There is no construct in AMQP to fetch this information from the server, your client library may be able to return this to you. </div><div><br></div><div>You could, if you know your connection data (ip address, connection port, channel number, etc) fetch this from the Management Plugin API. </div><div><br></div><div>Where localhost is your RabbitMQ broker, http://localhost:55672/api/channels/ will list all channels and data about them. </div><div><br></div><div>In addition you can query a specific channel like:</div><div><br></div><div>http://localhost:55672/api/channels/192.168.1.1:32211:1</div><div><br></div><div>Which will return the data in JSON format such as:</div><div><div></div><blockquote type="cite"><div>{</div><div> "connection_details": {</div><div> "name": "192.168.1.1:32211",</div><div> "peer_address": "192.168.1.1",</div><div> "peer_port": 32211</div><div> },</div><div> "deliveries": [{</div><div> "stats": {</div><div> "deliver_get": 70248,</div><div> "deliver_get_details": {</div><div> "rate": 0.994233050613223,</div><div> "last_event": 1303316165124</div><div> },</div><div> "deliver_no_ack": 70248,</div><div> "deliver_no_ack_details": {</div><div> "rate": 0.994233050613223,</div><div> "last_event": 1303316165124</div><div> }</div><div> },</div><div><font class="Apple-style-span" color="#FF230E"> "queue_details": {</font></div><div><font class="Apple-style-span" color="#FF230E"> "name": "foo",</font></div><div><font class="Apple-style-span" color="#FF230E"> "vhost": "/"</font></div><div><font class="Apple-style-span" color="#FF230E"> },</font></div><div> "queue": "<rabbit@rabbit07.3.4431.0>"</div><div> }],</div><div> "message_stats": {</div><div> "deliver_get": 70248,</div><div> "deliver_get_details": {</div><div> "rate": 0.994233050613223,</div><div> "last_event": 1303316165124</div><div> },</div><div> "deliver_no_ack": 70248,</div><div> "deliver_no_ack_details": {</div><div> "rate": 0.994233050613223,</div><div> "last_event": 1303316165124</div><div> }</div><div> },</div><div> "consumer_details": [{</div><div> ...ommitted for message length...</div><div> }],</div><div> "transactional": false,</div><div> "confirm": false,</div><div> "consumer_count": 1,</div><div> "messages_unacknowledged": 0,</div><div> "messages_unconfirmed": 0,</div><div> "acks_uncommitted": 0,</div><div> "prefetch_count": 0,</div><div> "client_flow_blocked": false,</div><div> "name": "10.100.20.44:32211:1",</div><div> "pid": "<rabbit@rabbit07.3.23178.1>",</div><div> "node": "rabbit@rabbit07",</div><div> "connection": "<rabbit@rabbit07.3.23175.1>",</div><div> "number": 1,</div><div> "user": "guest",</div><div> "vhost": "/"</div><div>}</div></blockquote><div></div></div><div>Hope this helps,</div><div><br></div><div>Gavin</div>
</div>
</div>