You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by lahiru gunathilake <gl...@gmail.com> on 2008/06/09 15:41:44 UTC

Re: GSoC - Lahiru's CLI for JMX

Hi marnie,

Now I'm in a position of directly implementing list and info commands. First
doing list command. I'm managing to do this as follows.

list -o <object name>
Ex: list -o queue

I'm going to implement all the command using standard way which is like for
any command user can give options with a "minus""option letter" <option
value>

In here for all the queue objects there are number of properties so in your
example you are telling like
queue-1
queue-2
queue-3

but more specifically what do you want to list. When I monitor using
jconsole there were three different queues those three differ only from
ObjectName all the other properties are same like ClassName / Discription.
In OjbectName there are few parts and from them VirtualHost is the only one
which differ.
It's like this
VirtualHost=development
VirtualHost=localhost
VirtualHost=test

So when I list all the queues is it ok if I list those queue names like
this(listing those using VirtualHost attribute)

development
localhost
test

If you can't understand my problem let me know I can explain it with more
details.

Thanks in advance


Regards
Lahiru

On Thu, May 15, 2008 at 9:59 PM, Marnie McCormack <
marnie.mccormack@googlemail.com> wrote:

> Hi Lahiru,
>
> Martin & Aidan & I are just discussing your project and here are some of
> our
> thoughts:
>
> - so we need a command line with options. Aidan suggests it looks like
> this:
>
>
> I was thinking something like
>
> $ qpid-admin --list-queues
> queue-1
> queue-2
> queue-3
>
> $ qpid-admin --queue-info queue-1
> Depth: 1 Count: 1 Subscribers: 0
>
> $ qpid-admin --queue-info --depth queue-1
> 1
>
> for timed reports for alerting you could put that in cron, or use
> watch for top/vmstat-esque action. I think it's probably a more
> natural interface than editing a properties file and would be
> something that we could apply to the C++ broker as well, which would
> be nice. Plus, it's quite UNIXy and lets people leverage things like
> awk.
>
>
> - I'd also like it to be configurable using a properties file, but it's
> probably worth getting list views on this for consensus
>
> - I think you're mainly on the right track, but I'd focus more on the
> useful attributes we expose rather than all variables of the objects
>
> Rgds,
> Marnie
>
> On 5/14/08, lahiru gunathilake <gl...@gmail.com> wrote:
>
> > Hi all,
> > Now I'm writing this output in to a file and this is running like a
> > thread(daemon) and it write different files time to time as Aiden
> discussed
> > with me.When I run the program it monitor the broker time to time (time
> > interval can be configured).
> >
> > Honestly this is not the actual code I'm developing I'm just writing some
> > sample code to test and informing you what I'm doing and expecting a feed
> > from you.
> >
> > Thanks in advance
> >
> > Regards
> > lahiru
> >
> > On Sun, May 11, 2008 at 9:00 AM, lahiru gunathilake <gl...@gmail.com>
> > wrote:
> >
> > > Hi Aiden,
> > >
> > > First thanks a lot for your reply I was waiting for a reply for few
> days
> > > hopefully.
> > > I did some modification to my program and I'm listing all the
> attributes
> > of
> > > all the mbeans which is having org.apache.qpid domain.
> > > Here's the output of my program....(I'm printing the attribute name and
> > > value and type in a single line and for now I haven't done any
> > formattings
> > > with the output.
> > >
> ========================================================================
> > > Press <Enter> to continue...
> > >
> > > TOTAL MBEAN COUNT:   46
> > >
> > > DOMAINS:
> > >     Domain[0] = JMImplementation
> > >     Domain[1] = com.sun.management
> > >     Domain[2] = org.apache.qpid
> > >     Domain[3] = java.lang
> > >     Domain[4] = java.util.logging
> > > ALL THE EXPOSED CLASSES
> > > 29
> > > =======================================================================
> > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.direct,ExchangeType=direct
> > > =======================================================================
> > > Name     amq.direct      java.lang.String
> > > Durable     true      boolean
> > > AutoDelete     false      boolean
> > > ExchangeType     direct      java.lang.String
> > > TicketNo     0      java.lang.Integer
> > > =======================================================================
> > > org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping
> > > =======================================================================
> > > Name     ping      java.lang.String
> > > Owner     null      java.lang.String
> > > Durable     false      boolean
> > > AutoDelete     false      boolean
> > > MessageCount     0      java.lang.Integer
> > > QueueDepth     0      java.lang.Long
> > > MaximumMessageSize     2117632      java.lang.Long
> > > ConsumerCount     0      java.lang.Integer
> > > ActiveConsumerCount     0      java.lang.Integer
> > > ReceivedMessageCount     0      java.lang.Long
> > > MaximumMessageCount     5000      java.lang.Long
> > > MaximumQueueDepth     4136      java.lang.Long
> > > MaximumMessageAge     600000      java.lang.Long
> > > =======================================================================
> > > org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=queue
> > > =======================================================================
> > > Name     queue      java.lang.String
> > > Owner     null      java.lang.String
> > > Durable     false      boolean
> > > AutoDelete     false      boolean
> > > MessageCount     0      java.lang.Integer
> > > QueueDepth     0      java.lang.Long
> > > MaximumMessageSize     2117632      java.lang.Long
> > > ConsumerCount     0      java.lang.Integer
> > > ActiveConsumerCount     0      java.lang.Integer
> > > ReceivedMessageCount     0      java.lang.Long
> > > MaximumMessageCount     5000      java.lang.Long
> > > MaximumQueueDepth     4136      java.lang.Long
> > > MaximumMessageAge     600000      java.lang.Long
> > > =======================================================================
> > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.match,ExchangeType=headers
> > > =======================================================================
> > > Name     amq.match      java.lang.String
> > > Durable     true      boolean
> > > AutoDelete     false      boolean
> > > ExchangeType     headers      java.lang.String
> > > TicketNo     0      java.lang.Integer
> > > =======================================================================
> > >
> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=development,name=queue
> > > =======================================================================
> > > Name     queue      java.lang.String
> > > Owner     null      java.lang.String
> > > Durable     false      boolean
> > > AutoDelete     false      boolean
> > > MessageCount     0      java.lang.Integer
> > > QueueDepth     0      java.lang.Long
> > > MaximumMessageSize     2117632      java.lang.Long
> > > ConsumerCount     0      java.lang.Integer
> > > ActiveConsumerCount     0      java.lang.Integer
> > > ReceivedMessageCount     0      java.lang.Long
> > > MaximumMessageCount     5000      java.lang.Long
> > > MaximumQueueDepth     4136      java.lang.Long
> > > MaximumMessageAge     600000      java.lang.Long
> > > =======================================================================
> > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.fanout,ExchangeType=fanout
> > > =======================================================================
> > > Name     amq.fanout      java.lang.String
> > > Durable     true      boolean
> > > AutoDelete     false      boolean
> > > ExchangeType     fanout      java.lang.String
> > > TicketNo     0      java.lang.Integer
> > > =======================================================================
> > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=<<default>>,ExchangeType=direct
> > > =======================================================================
> > > Name     <<default>>      java.lang.String
> > > Durable     true      boolean
> > > AutoDelete     false      boolean
> > > ExchangeType     direct      java.lang.String
> > > TicketNo     0      java.lang.Integer
> > > =======================================================================
> > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.match,ExchangeType=headers
> > > =======================================================================
> > > Name     amq.match      java.lang.String
> > > Durable     true      boolean
> > > AutoDelete     false      boolean
> > > ExchangeType     headers      java.lang.String
> > > TicketNo     0      java.lang.Integer
> > > =======================================================================
> > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.topic,ExchangeType=topic
> > > =======================================================================
> > > Name     amq.topic      java.lang.String
> > > Durable     true      boolean
> > > AutoDelete     false      boolean
> > > ExchangeType     topic      java.lang.String
> > > TicketNo     0      java.lang.Integer
> > > =======================================================================
> > > org.apache.qpid:type=VirtualHost.VirtualHostManager,VirtualHost=test
> > > =======================================================================
> > > =======================================================================
> > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=test.topic,ExchangeType=direct
> > > =======================================================================
> > > Name     test.topic      java.lang.String
> > > Durable     false      boolean
> > > AutoDelete     false      boolean
> > > ExchangeType     direct      java.lang.String
> > > TicketNo     0      java.lang.Integer
> > > =======================================================================
> > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.direct,ExchangeType=direct
> > > =======================================================================
> > > Name     amq.direct      java.lang.String
> > > Durable     true      boolean
> > > AutoDelete     false      boolean
> > > ExchangeType     direct      java.lang.String
> > > TicketNo     0      java.lang.Integer
> > > =======================================================================
> > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.topic,ExchangeType=topic
> > > =======================================================================
> > > Name     amq.topic      java.lang.String
> > > Durable     true      boolean
> > > AutoDelete     false      boolean
> > > ExchangeType     topic      java.lang.String
> > > TicketNo     0      java.lang.Integer
> > > =======================================================================
> > > org.apache.qpid:type=UserManagement,name=UserManagement
> > > =======================================================================
> > > =======================================================================
> > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.topic,ExchangeType=topic
> > > =======================================================================
> > > Name     amq.topic      java.lang.String
> > > Durable     true      boolean
> > > AutoDelete     false      boolean
> > > ExchangeType     topic      java.lang.String
> > > TicketNo     0      java.lang.Integer
> > > =======================================================================
> > > org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=ping
> > > =======================================================================
> > > Name     ping      java.lang.String
> > > Owner     null      java.lang.String
> > > Durable     false      boolean
> > > AutoDelete     false      boolean
> > > MessageCount     0      java.lang.Integer
> > > QueueDepth     0      java.lang.Long
> > > MaximumMessageSize     2117632      java.lang.Long
> > > ConsumerCount     0      java.lang.Integer
> > > ActiveConsumerCount     0      java.lang.Integer
> > > ReceivedMessageCount     0      java.lang.Long
> > > MaximumMessageCount     0      java.lang.Long
> > > MaximumQueueDepth     4136      java.lang.Long
> > > MaximumMessageAge     600000      java.lang.Long
> > > =======================================================================
> > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=<<default>>,ExchangeType=direct
> > > =======================================================================
> > > Name     <<default>>      java.lang.String
> > > Durable     true      boolean
> > > AutoDelete     false      boolean
> > > ExchangeType     direct      java.lang.String
> > > TicketNo     0      java.lang.Integer
> > > =======================================================================
> > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.fanout,ExchangeType=fanout
> > > =======================================================================
> > > Name     amq.fanout      java.lang.String
> > > Durable     true      boolean
> > > AutoDelete     false      boolean
> > > ExchangeType     fanout      java.lang.String
> > > TicketNo     0      java.lang.Integer
> > > =======================================================================
> > >
> >
> org.apache.qpid:type=VirtualHost.VirtualHostManager,VirtualHost=development
> > > =======================================================================
> > > =======================================================================
> > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=test-queue
> > > =======================================================================
> > > Name     test-queue      java.lang.String
> > > Owner     null      java.lang.String
> > > Durable     true      boolean
> > > AutoDelete     false      boolean
> > > MessageCount     0      java.lang.Integer
> > > QueueDepth     0      java.lang.Long
> > > MaximumMessageSize     2117632      java.lang.Long
> > > ConsumerCount     0      java.lang.Integer
> > > ActiveConsumerCount     0      java.lang.Integer
> > > ReceivedMessageCount     0      java.lang.Long
> > > MaximumMessageCount     0      java.lang.Long
> > > MaximumQueueDepth     4136      java.lang.Long
> > > MaximumMessageAge     600000      java.lang.Long
> > > =======================================================================
> > >
> org.apache.qpid:type=VirtualHost.VirtualHostManager,VirtualHost=localhost
> > > =======================================================================
> > > =======================================================================
> > > org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=queue
> > > =======================================================================
> > > Name     queue      java.lang.String
> > > Owner     null      java.lang.String
> > > Durable     false      boolean
> > > AutoDelete     false      boolean
> > > MessageCount     0      java.lang.Integer
> > > QueueDepth     0      java.lang.Long
> > > MaximumMessageSize     2117632      java.lang.Long
> > > ConsumerCount     0      java.lang.Integer
> > > ActiveConsumerCount     0      java.lang.Integer
> > > ReceivedMessageCount     0      java.lang.Long
> > > MaximumMessageCount     0      java.lang.Long
> > > MaximumQueueDepth     4136      java.lang.Long
> > > MaximumMessageAge     600000      java.lang.Long
> > > =======================================================================
> > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.direct,ExchangeType=direct
> > > =======================================================================
> > > Name     amq.direct      java.lang.String
> > > Durable     true      boolean
> > > AutoDelete     false      boolean
> > > ExchangeType     direct      java.lang.String
> > > TicketNo     0      java.lang.Integer
> > > =======================================================================
> > >
> >
> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=test-ping
> > > =======================================================================
> > > Name     test-ping      java.lang.String
> > > Owner     null      java.lang.String
> > > Durable     false      boolean
> > > AutoDelete     false      boolean
> > > MessageCount     0      java.lang.Integer
> > > QueueDepth     0      java.lang.Long
> > > MaximumMessageSize     2117632      java.lang.Long
> > > ConsumerCount     0      java.lang.Integer
> > > ActiveConsumerCount     0      java.lang.Integer
> > > ReceivedMessageCount     0      java.lang.Long
> > > MaximumMessageCount     0      java.lang.Long
> > > MaximumQueueDepth     4136      java.lang.Long
> > > MaximumMessageAge     600000      java.lang.Long
> > > =======================================================================
> > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=<<default>>,ExchangeType=direct
> > > =======================================================================
> > > Name     <<default>>      java.lang.String
> > > Durable     true      boolean
> > > AutoDelete     false      boolean
> > > ExchangeType     direct      java.lang.String
> > > TicketNo     0      java.lang.Integer
> > > =======================================================================
> > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.fanout,ExchangeType=fanout
> > > =======================================================================
> > > Name     amq.fanout      java.lang.String
> > > Durable     true      boolean
> > > AutoDelete     false      boolean
> > > ExchangeType     fanout      java.lang.String
> > > TicketNo     0      java.lang.Integer
> > > =======================================================================
> > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.match,ExchangeType=headers
> > > =======================================================================
> > > Name     amq.match      java.lang.String
> > > Durable     true      boolean
> > > AutoDelete     false      boolean
> > > ExchangeType     headers      java.lang.String
> > > TicketNo     0      java.lang.Integer
> > > =======================================================================
> > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=test.direct,ExchangeType=direct
> > > =======================================================================
> > > Name     test.direct      java.lang.String
> > > Durable     false      boolean
> > > AutoDelete     false      boolean
> > > ExchangeType     direct      java.lang.String
> > > TicketNo     0      java.lang.Integer
> > > =======================================================================
> > >
> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=development,name=ping
> > > =======================================================================
> > > Name     ping      java.lang.String
> > > Owner     null      java.lang.String
> > > Durable     false      boolean
> > > AutoDelete     false      boolean
> > > MessageCount     0      java.lang.Integer
> > > QueueDepth     0      java.lang.Long
> > > MaximumMessageSize     2117632      java.lang.Long
> > > ConsumerCount     0      java.lang.Integer
> > > ActiveConsumerCount     0      java.lang.Integer
> > > ReceivedMessageCount     0      java.lang.Long
> > > MaximumMessageCount     5000      java.lang.Long
> > > MaximumQueueDepth     4136      java.lang.Long
> > > MaximumMessageAge     600000      java.lang.Long
> > >
> > > Close the connection to the server
> > >
> > > Bye! Bye!
> > > lahiru@lahiru-laptop
> > :~/IdeaProjects/jmxpractice/classes/production/jmxpractice$
> > >
> > >
> > >
> =========================================================================
> > > On Fri, May 9, 2008 at 8:35 PM, Aidan Skinner <ai...@apache.org>
> wrote:
> > >
> > >> Hey Lahiru,
> > >>
> > >> the screenshot you sent was stripped by the mailing list, as it's a
> > >> command line it's probably best just to copy and paste the output into
> > >> an email anyway.
> > >>
> > >> As for a next step, probably something quick like listing all the
> > >> queues or the count on a specified queue.
> > >
> > > I think I have done what you are asking but I'm not sure if I'm wrong
> > > please let me know.
> > > Could you please explain it some more and however I will try to
> > understand
> > > what you meant by that sentence.
> > >
> > > Thanks in advance
> > >
> > >
> > > Regs
> > > lahiru
> > >
> >
> >
> >
> > --
> > East or West
> > Mahindians are the
> > Best... !
> >
>



-- 
East or West
Mahindians are the
Best... !

Re: GSoC - Lahiru's CLI for JMX

Posted by Aidan Skinner <ai...@apache.org>.
On Wed, Jun 11, 2008 at 6:33 AM, lahiru gunathilake <gl...@gmail.com> wrote:

> On Tue, Jun 10, 2008 at 9:29 PM, Marnie McCormack <
> marnie.mccormack@googlemail.com> wrote:

>> So, I think to get a real feel for the kind of data you'll see typically
>> you
>> possibly need to set up a client app to use the queues in a 'real life' way
>> ?
>
> Could you please tell me how to do that, but somehow I will try to do that
> alone but if you can give me some help
> that would be great.

There are some examples that we ship, and the test cases can generate
some data as well, particularly if you point them at a real broker
rather than an inVM one.

> Very basically I'm asking if you want to queue all the queue object what
> should i list and more specifically what should i list names of queues or
> what ...?  if there are queues with the same name what should i give as the
> result for that command.

For the list I would include name, count, depth and number of consumers.

- Aidan
-- 
aim/y!:aidans42 g:aidan.skinner@gmail.com
http://aidan.skinner.me.uk/
"We belong to nobody and nobody belongs to us. We don't even belong to
each other."

Re: GSoC - Lahiru's CLI for JMX

Posted by lahiru gunathilake <gl...@gmail.com>.
Hi Marnie,

On Tue, Jun 10, 2008 at 9:29 PM, Marnie McCormack <
marnie.mccormack@googlemail.com> wrote:

> Hi Lahiru,
>
> I think I understand what you mean - basically the queues you're seeing via
> jConsole are those that are set up by default in the
> virtualhosts.xml/config.xml that come with the broker install.
>
> These queues are examples, and thus don't have many distinguishing
> characteristics like selectors etc (so they look like they're just
> differentiated by virtualhost). They also won't have consumers or messages
> I
> assume ?
>
> So, I think to get a real feel for the kind of data you'll see typically
> you
> possibly need to set up a client app to use the queues in a 'real life' way
> ?

Could you please tell me how to do that, but somehow I will try to do that
alone but if you can give me some help
that would be great.

Very basically I'm asking if you want to queue all the queue object what
should i list and more specifically what should i list names of queues or
what ...?  if there are queues with the same name what should i give as the
result for that command.

This is the information I get with Jconsole for a particular queue.

 =======================================================================
org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=queue
=======================================================================
Name     queue      java.lang.String
Owner     null      java.lang.String
Durable     false      boolean
AutoDelete     false      boolean
MessageCount     0      java.lang.Integer
QueueDepth     0      java.lang.Long
MaximumMessageSize     2117632      java.lang.Long
ConsumerCount     0      java.lang.Integer
ActiveConsumerCount     0      java.lang.Integer
ReceivedMessageCount     0      java.lang.Long
MaximumMessageCount     0      java.lang.Long
MaximumQueueDepth     4136      java.lang.Long
MaximumMessageAge     600000      java.lang.Long


If queue objects are gonna change when it comes to real applications it's
cool and I will look in to that and find some way to get each queue
separately and list all of them.

Thanks in advance

Regards
Lahiru

This would mean publishing to them, consuming from them etc.
>
> What do you think - does thistalk to your question ?
>
> Thanks & Regards,
> Marnie
>
> On 6/9/08, lahiru gunathilake <gl...@gmail.com> wrote:
> >
> > Hi marnie,
> >
> > Now I'm in a position of directly implementing list and info commands.
> > First
> > doing list command. I'm managing to do this as follows.
> >
> > list -o <object name>
> > Ex: list -o queue
> >
> > I'm going to implement all the command using standard way which is like
> for
> > any command user can give options with a "minus""option letter" <option
> > value>
> >
> > In here for all the queue objects there are number of properties so in
> your
> > example you are telling like
> > queue-1
> > queue-2
> > queue-3
> >
> > but more specifically what do you want to list. When I monitor using
> > jconsole there were three different queues those three differ only from
> > ObjectName all the other properties are same like ClassName /
> Discription.
> > In OjbectName there are few parts and from them VirtualHost is the only
> one
> > which differ.
> > It's like this
> > VirtualHost=development
> > VirtualHost=localhost
> > VirtualHost=test
> >
> > So when I list all the queues is it ok if I list those queue names like
> > this(listing those using VirtualHost attribute)
> >
> > development
> > localhost
> > test
> >
> > If you can't understand my problem let me know I can explain it with more
> > details.
> >
> > Thanks in advance
> >
> >
> > Regards
> > Lahiru
> >
> > On Thu, May 15, 2008 at 9:59 PM, Marnie McCormack <
> > marnie.mccormack@googlemail.com> wrote:
> >
> > > Hi Lahiru,
> > >
> > > Martin & Aidan & I are just discussing your project and here are some
> of
> > > our
> > > thoughts:
> > >
> > > - so we need a command line with options. Aidan suggests it looks like
> > > this:
> > >
> > >
> > > I was thinking something like
> > >
> > > $ qpid-admin --list-queues
> > > queue-1
> > > queue-2
> > > queue-3
> > >
> > > $ qpid-admin --queue-info queue-1
> > > Depth: 1 Count: 1 Subscribers: 0
> > >
> > > $ qpid-admin --queue-info --depth queue-1
> > > 1
> > >
> > > for timed reports for alerting you could put that in cron, or use
> > > watch for top/vmstat-esque action. I think it's probably a more
> > > natural interface than editing a properties file and would be
> > > something that we could apply to the C++ broker as well, which would
> > > be nice. Plus, it's quite UNIXy and lets people leverage things like
> > > awk.
> > >
> > >
> > > - I'd also like it to be configurable using a properties file, but it's
> > > probably worth getting list views on this for consensus
> > >
> > > - I think you're mainly on the right track, but I'd focus more on the
> > > useful attributes we expose rather than all variables of the objects
> > >
> > > Rgds,
> > > Marnie
> > >
> > > On 5/14/08, lahiru gunathilake <gl...@gmail.com> wrote:
> > >
> > > > Hi all,
> > > > Now I'm writing this output in to a file and this is running like a
> > > > thread(daemon) and it write different files time to time as Aiden
> > > discussed
> > > > with me.When I run the program it monitor the broker time to time
> (time
> > > > interval can be configured).
> > > >
> > > > Honestly this is not the actual code I'm developing I'm just writing
> > some
> > > > sample code to test and informing you what I'm doing and expecting a
> > feed
> > > > from you.
> > > >
> > > > Thanks in advance
> > > >
> > > > Regards
> > > > lahiru
> > > >
> > > > On Sun, May 11, 2008 at 9:00 AM, lahiru gunathilake <
> glahiru@gmail.com
> > >
> > > > wrote:
> > > >
> > > > > Hi Aiden,
> > > > >
> > > > > First thanks a lot for your reply I was waiting for a reply for few
> > > days
> > > > > hopefully.
> > > > > I did some modification to my program and I'm listing all the
> > > attributes
> > > > of
> > > > > all the mbeans which is having org.apache.qpid domain.
> > > > > Here's the output of my program....(I'm printing the attribute name
> > and
> > > > > value and type in a single line and for now I haven't done any
> > > > formattings
> > > > > with the output.
> > > > >
> > >
> ========================================================================
> > > > > Press <Enter> to continue...
> > > > >
> > > > > TOTAL MBEAN COUNT:   46
> > > > >
> > > > > DOMAINS:
> > > > >     Domain[0] = JMImplementation
> > > > >     Domain[1] = com.sun.management
> > > > >     Domain[2] = org.apache.qpid
> > > > >     Domain[3] = java.lang
> > > > >     Domain[4] = java.util.logging
> > > > > ALL THE EXPOSED CLASSES
> > > > > 29
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.direct,ExchangeType=direct
> > > > >
> > =======================================================================
> > > > > Name     amq.direct      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     direct      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > > org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping
> > > > >
> > =======================================================================
> > > > > Name     ping      java.lang.String
> > > > > Owner     null      java.lang.String
> > > > > Durable     false      boolean
> > > > > AutoDelete     false      boolean
> > > > > MessageCount     0      java.lang.Integer
> > > > > QueueDepth     0      java.lang.Long
> > > > > MaximumMessageSize     2117632      java.lang.Long
> > > > > ConsumerCount     0      java.lang.Integer
> > > > > ActiveConsumerCount     0      java.lang.Integer
> > > > > ReceivedMessageCount     0      java.lang.Long
> > > > > MaximumMessageCount     5000      java.lang.Long
> > > > > MaximumQueueDepth     4136      java.lang.Long
> > > > > MaximumMessageAge     600000      java.lang.Long
> > > > >
> > =======================================================================
> > > > > org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=queue
> > > > >
> > =======================================================================
> > > > > Name     queue      java.lang.String
> > > > > Owner     null      java.lang.String
> > > > > Durable     false      boolean
> > > > > AutoDelete     false      boolean
> > > > > MessageCount     0      java.lang.Integer
> > > > > QueueDepth     0      java.lang.Long
> > > > > MaximumMessageSize     2117632      java.lang.Long
> > > > > ConsumerCount     0      java.lang.Integer
> > > > > ActiveConsumerCount     0      java.lang.Integer
> > > > > ReceivedMessageCount     0      java.lang.Long
> > > > > MaximumMessageCount     5000      java.lang.Long
> > > > > MaximumQueueDepth     4136      java.lang.Long
> > > > > MaximumMessageAge     600000      java.lang.Long
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.match,ExchangeType=headers
> > > > >
> > =======================================================================
> > > > > Name     amq.match      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     headers      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > >
> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=development,name=queue
> > > > >
> > =======================================================================
> > > > > Name     queue      java.lang.String
> > > > > Owner     null      java.lang.String
> > > > > Durable     false      boolean
> > > > > AutoDelete     false      boolean
> > > > > MessageCount     0      java.lang.Integer
> > > > > QueueDepth     0      java.lang.Long
> > > > > MaximumMessageSize     2117632      java.lang.Long
> > > > > ConsumerCount     0      java.lang.Integer
> > > > > ActiveConsumerCount     0      java.lang.Integer
> > > > > ReceivedMessageCount     0      java.lang.Long
> > > > > MaximumMessageCount     5000      java.lang.Long
> > > > > MaximumQueueDepth     4136      java.lang.Long
> > > > > MaximumMessageAge     600000      java.lang.Long
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.fanout,ExchangeType=fanout
> > > > >
> > =======================================================================
> > > > > Name     amq.fanout      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     fanout      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=<<default>>,ExchangeType=direct
> > > > >
> > =======================================================================
> > > > > Name     <<default>>      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     direct      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.match,ExchangeType=headers
> > > > >
> > =======================================================================
> > > > > Name     amq.match      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     headers      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.topic,ExchangeType=topic
> > > > >
> > =======================================================================
> > > > > Name     amq.topic      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     topic      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> org.apache.qpid:type=VirtualHost.VirtualHostManager,VirtualHost=test
> > > > >
> > =======================================================================
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=test.topic,ExchangeType=direct
> > > > >
> > =======================================================================
> > > > > Name     test.topic      java.lang.String
> > > > > Durable     false      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     direct      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.direct,ExchangeType=direct
> > > > >
> > =======================================================================
> > > > > Name     amq.direct      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     direct      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.topic,ExchangeType=topic
> > > > >
> > =======================================================================
> > > > > Name     amq.topic      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     topic      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > > org.apache.qpid:type=UserManagement,name=UserManagement
> > > > >
> > =======================================================================
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.topic,ExchangeType=topic
> > > > >
> > =======================================================================
> > > > > Name     amq.topic      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     topic      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=ping
> > > > >
> > =======================================================================
> > > > > Name     ping      java.lang.String
> > > > > Owner     null      java.lang.String
> > > > > Durable     false      boolean
> > > > > AutoDelete     false      boolean
> > > > > MessageCount     0      java.lang.Integer
> > > > > QueueDepth     0      java.lang.Long
> > > > > MaximumMessageSize     2117632      java.lang.Long
> > > > > ConsumerCount     0      java.lang.Integer
> > > > > ActiveConsumerCount     0      java.lang.Integer
> > > > > ReceivedMessageCount     0      java.lang.Long
> > > > > MaximumMessageCount     0      java.lang.Long
> > > > > MaximumQueueDepth     4136      java.lang.Long
> > > > > MaximumMessageAge     600000      java.lang.Long
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=<<default>>,ExchangeType=direct
> > > > >
> > =======================================================================
> > > > > Name     <<default>>      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     direct      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.fanout,ExchangeType=fanout
> > > > >
> > =======================================================================
> > > > > Name     amq.fanout      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     fanout      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.VirtualHostManager,VirtualHost=development
> > > > >
> > =======================================================================
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=test-queue
> > > > >
> > =======================================================================
> > > > > Name     test-queue      java.lang.String
> > > > > Owner     null      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > MessageCount     0      java.lang.Integer
> > > > > QueueDepth     0      java.lang.Long
> > > > > MaximumMessageSize     2117632      java.lang.Long
> > > > > ConsumerCount     0      java.lang.Integer
> > > > > ActiveConsumerCount     0      java.lang.Integer
> > > > > ReceivedMessageCount     0      java.lang.Long
> > > > > MaximumMessageCount     0      java.lang.Long
> > > > > MaximumQueueDepth     4136      java.lang.Long
> > > > > MaximumMessageAge     600000      java.lang.Long
> > > > >
> > =======================================================================
> > > > >
> > >
> org.apache.qpid:type=VirtualHost.VirtualHostManager,VirtualHost=localhost
> > > > >
> > =======================================================================
> > > > >
> > =======================================================================
> > > > >
> > org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=queue
> > > > >
> > =======================================================================
> > > > > Name     queue      java.lang.String
> > > > > Owner     null      java.lang.String
> > > > > Durable     false      boolean
> > > > > AutoDelete     false      boolean
> > > > > MessageCount     0      java.lang.Integer
> > > > > QueueDepth     0      java.lang.Long
> > > > > MaximumMessageSize     2117632      java.lang.Long
> > > > > ConsumerCount     0      java.lang.Integer
> > > > > ActiveConsumerCount     0      java.lang.Integer
> > > > > ReceivedMessageCount     0      java.lang.Long
> > > > > MaximumMessageCount     0      java.lang.Long
> > > > > MaximumQueueDepth     4136      java.lang.Long
> > > > > MaximumMessageAge     600000      java.lang.Long
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.direct,ExchangeType=direct
> > > > >
> > =======================================================================
> > > > > Name     amq.direct      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     direct      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=test-ping
> > > > >
> > =======================================================================
> > > > > Name     test-ping      java.lang.String
> > > > > Owner     null      java.lang.String
> > > > > Durable     false      boolean
> > > > > AutoDelete     false      boolean
> > > > > MessageCount     0      java.lang.Integer
> > > > > QueueDepth     0      java.lang.Long
> > > > > MaximumMessageSize     2117632      java.lang.Long
> > > > > ConsumerCount     0      java.lang.Integer
> > > > > ActiveConsumerCount     0      java.lang.Integer
> > > > > ReceivedMessageCount     0      java.lang.Long
> > > > > MaximumMessageCount     0      java.lang.Long
> > > > > MaximumQueueDepth     4136      java.lang.Long
> > > > > MaximumMessageAge     600000      java.lang.Long
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=<<default>>,ExchangeType=direct
> > > > >
> > =======================================================================
> > > > > Name     <<default>>      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     direct      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.fanout,ExchangeType=fanout
> > > > >
> > =======================================================================
> > > > > Name     amq.fanout      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     fanout      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.match,ExchangeType=headers
> > > > >
> > =======================================================================
> > > > > Name     amq.match      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     headers      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=test.direct,ExchangeType=direct
> > > > >
> > =======================================================================
> > > > > Name     test.direct      java.lang.String
> > > > > Durable     false      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     direct      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > >
> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=development,name=ping
> > > > >
> > =======================================================================
> > > > > Name     ping      java.lang.String
> > > > > Owner     null      java.lang.String
> > > > > Durable     false      boolean
> > > > > AutoDelete     false      boolean
> > > > > MessageCount     0      java.lang.Integer
> > > > > QueueDepth     0      java.lang.Long
> > > > > MaximumMessageSize     2117632      java.lang.Long
> > > > > ConsumerCount     0      java.lang.Integer
> > > > > ActiveConsumerCount     0      java.lang.Integer
> > > > > ReceivedMessageCount     0      java.lang.Long
> > > > > MaximumMessageCount     5000      java.lang.Long
> > > > > MaximumQueueDepth     4136      java.lang.Long
> > > > > MaximumMessageAge     600000      java.lang.Long
> > > > >
> > > > > Close the connection to the server
> > > > >
> > > > > Bye! Bye!
> > > > > lahiru@lahiru-laptop
> > > > :~/IdeaProjects/jmxpractice/classes/production/jmxpractice$
> > > > >
> > > > >
> > > > >
> > >
> =========================================================================
> > > > > On Fri, May 9, 2008 at 8:35 PM, Aidan Skinner <ai...@apache.org>
> > > wrote:
> > > > >
> > > > >> Hey Lahiru,
> > > > >>
> > > > >> the screenshot you sent was stripped by the mailing list, as it's
> a
> > > > >> command line it's probably best just to copy and paste the output
> > into
> > > > >> an email anyway.
> > > > >>
> > > > >> As for a next step, probably something quick like listing all the
> > > > >> queues or the count on a specified queue.
> > > > >
> > > > > I think I have done what you are asking but I'm not sure if I'm
> wrong
> > > > > please let me know.
> > > > > Could you please explain it some more and however I will try to
> > > > understand
> > > > > what you meant by that sentence.
> > > > >
> > > > > Thanks in advance
> > > > >
> > > > >
> > > > > Regs
> > > > > lahiru
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > East or West
> > > > Mahindians are the
> > > > Best... !
> > > >
> > >
> >
> >
> >
> > --
> > East or West
> > Mahindians are the
> > Best... !
> >
>



-- 
East or West
Mahindians are the
Best... !

Re: GSoC - Lahiru's CLI for JMX

Posted by lahiru gunathilake <gl...@gmail.com>.
Hi Marnie and Aidan,

Now I have complete my implementation for list command with all the objects
which you have instrumented inside the broker.(Now you can use the list
command to monitor the basic information in a way you do using Jconsole). If
you can clearly specify what else you want to monitor with list command then
I can write some code in to Qpid and instrument them and write some more
code to CLI and monitor those information too.

Or I can start working with the report generation mode from now onwards.
What do you think please advice me on this what should I do next.

Regards
Lahiru

On Fri, Jun 20, 2008 at 10:24 AM, lahiru gunathilake <gl...@gmail.com>
wrote:

> hi Aidan,
>
> On Thu, Jun 12, 2008 at 5:15 PM, lahiru gunathilake <gl...@gmail.com>
> wrote:
>
>> Hi Aidan,
>>
>> Yep I can understand what you are saying. I was mostly concentrated on
>> making more simpler thing to add new commands. My approach is good when we
>> go for new commands.
>>
>> On Thu, Jun 12, 2008 at 4:57 PM, Aidan Skinner <ai...@apache.org> wrote:
>>
>>> Hey,
>>>
>>> so, as I was attempting to say just then, I've had a quick look at
>>> your code and it looks pretty good. I would probably be tempted to add
>>> functionality by object type rather than command type, putting methods
>>> into the Command interface for listing, getting info etc and then
>>> subclassing that for Queues, Exchanges and so on. That way you only
>>> have to edit one file when you add a new type
>>
>> Yep but that is only with a single command.
>>
> yes I thought of implementing in this way and now the code is more
> elegant(but not like the same way you are saying slightly different way).
> Could you please have a look at the code in the SVN.
>
> Thanks Aidan for pointing this out.I'm really happy with the new
> implementation :-)
>
> Regards
> Lahiru
>
>> If we are going to add some more methods to the interactive mode it's
>> going to be difficult. But if we are not going to add more and more commands
>> that approach would be useful.
>>
>> What do you thing if you want me to implement in other way around I will
>> go ahead with that.
>>
>>> and it's clearer what
>>> you need to implement when adding support for a new object.
>>>
>>> I haven't had a chance to actually run it yet, I'll do that later today.
>>>
>>> it was good talking to you, I hope next time we'll be able to hear
>>> each other properly! :)
>>
>> yeah sure and you know English is not my mother tongue and your accent is
>> not very much clear for me. I'm very sorry for that next time I will be able
>> to hear you. And if you are feel free to call me on a week end I you can
>> call me to my home land line and I will be able to hear you clearly.
>>
>> Any thoughts
>>
>> Thanks
>> Lahiru
>>
>>>
>>>
>>> - Aidan
>>>
>>> --
>>> aim/y!:aidans42 g:aidan.skinner@gmail.com <g%...@gmail.com>
>>> http://aidan.skinner.me.uk/
>>> "We belong to nobody and nobody belongs to us. We don't even belong to
>>> each other."
>>>
>>
>>
>

Re: GSoC - Lahiru's CLI for JMX

Posted by lahiru gunathilake <gl...@gmail.com>.
hi Aidan,

On Thu, Jun 12, 2008 at 5:15 PM, lahiru gunathilake <gl...@gmail.com>
wrote:

> Hi Aidan,
>
> Yep I can understand what you are saying. I was mostly concentrated on
> making more simpler thing to add new commands. My approach is good when we
> go for new commands.
>
> On Thu, Jun 12, 2008 at 4:57 PM, Aidan Skinner <ai...@apache.org> wrote:
>
>> Hey,
>>
>> so, as I was attempting to say just then, I've had a quick look at
>> your code and it looks pretty good. I would probably be tempted to add
>> functionality by object type rather than command type, putting methods
>> into the Command interface for listing, getting info etc and then
>> subclassing that for Queues, Exchanges and so on. That way you only
>> have to edit one file when you add a new type
>
> Yep but that is only with a single command.
>
yes I thought of implementing in this way and now the code is more
elegant(but not like the same way you are saying slightly different way).
Could you please have a look at the code in the SVN.

Thanks Aidan for pointing this out.I'm really happy with the new
implementation :-)

Regards
Lahiru

> If we are going to add some more methods to the interactive mode it's going
> to be difficult. But if we are not going to add more and more commands that
> approach would be useful.
>
> What do you thing if you want me to implement in other way around I will go
> ahead with that.
>
>> and it's clearer what
>> you need to implement when adding support for a new object.
>>
>> I haven't had a chance to actually run it yet, I'll do that later today.
>>
>> it was good talking to you, I hope next time we'll be able to hear
>> each other properly! :)
>
> yeah sure and you know English is not my mother tongue and your accent is
> not very much clear for me. I'm very sorry for that next time I will be able
> to hear you. And if you are feel free to call me on a week end I you can
> call me to my home land line and I will be able to hear you clearly.
>
> Any thoughts
>
> Thanks
> Lahiru
>
>>
>>
>> - Aidan
>>
>> --
>> aim/y!:aidans42 g:aidan.skinner@gmail.com <g%...@gmail.com>
>> http://aidan.skinner.me.uk/
>> "We belong to nobody and nobody belongs to us. We don't even belong to
>> each other."
>>
>
>

Re: GSoC - Lahiru's CLI for JMX

Posted by lahiru gunathilake <gl...@gmail.com>.
Hi Aidan,

Yep I can understand what you are saying. I was mostly concentrated on
making more simpler thing to add new commands. My approach is good when we
go for new commands.

On Thu, Jun 12, 2008 at 4:57 PM, Aidan Skinner <ai...@apache.org> wrote:

> Hey,
>
> so, as I was attempting to say just then, I've had a quick look at
> your code and it looks pretty good. I would probably be tempted to add
> functionality by object type rather than command type, putting methods
> into the Command interface for listing, getting info etc and then
> subclassing that for Queues, Exchanges and so on. That way you only
> have to edit one file when you add a new type

Yep but that is only with a single command. If we are going to add some more
methods to the interactive mode it's going to be difficult. But if we are
not going to add more and more commands that approach would be useful.

What do you thing if you want me to implement in other way around I will go
ahead with that.

> and it's clearer what
> you need to implement when adding support for a new object.
>
> I haven't had a chance to actually run it yet, I'll do that later today.
>
> it was good talking to you, I hope next time we'll be able to hear
> each other properly! :)

yeah sure and you know English is not my mother tongue and your accent is
not very much clear for me. I'm very sorry for that next time I will be able
to hear you. And if you are feel free to call me on a week end I you can
call me to my home land line and I will be able to hear you clearly.

Any thoughts

Thanks
Lahiru

>
>
> - Aidan
>
> --
> aim/y!:aidans42 g:aidan.skinner@gmail.com <g%...@gmail.com>
> http://aidan.skinner.me.uk/
> "We belong to nobody and nobody belongs to us. We don't even belong to
> each other."
>

Re: GSoC - Lahiru's CLI for JMX

Posted by Aidan Skinner <ai...@apache.org>.
Hey,

so, as I was attempting to say just then, I've had a quick look at
your code and it looks pretty good. I would probably be tempted to add
functionality by object type rather than command type, putting methods
into the Command interface for listing, getting info etc and then
subclassing that for Queues, Exchanges and so on. That way you only
have to edit one file when you add a new type and it's clearer what
you need to implement when adding support for a new object.

I haven't had a chance to actually run it yet, I'll do that later today.

it was good talking to you, I hope next time we'll be able to hear
each other properly! :)

- Aidan

-- 
aim/y!:aidans42 g:aidan.skinner@gmail.com
http://aidan.skinner.me.uk/
"We belong to nobody and nobody belongs to us. We don't even belong to
each other."

Re: GSoC - Lahiru's CLI for JMX

Posted by Aidan Skinner <ai...@apache.org>.
On Thu, Jun 12, 2008 at 11:12 AM, lahiru gunathilake <gl...@gmail.com> wrote:

> now check it.
> sorry for the inconvenience. Now the qpid_cli script automatically set the
> classpaths.

Got it, thanks! I'm having a little trouble with the script, and with
international dialling, I'll call you shortly!

- Aidan
-- 
aim/y!:aidans42 g:aidan.skinner@gmail.com
http://aidan.skinner.me.uk/
"We belong to nobody and nobody belongs to us. We don't even belong to
each other."

Re: GSoC - Lahiru's CLI for JMX

Posted by lahiru gunathilake <gl...@gmail.com>.
hi Aidan,

Sorry i forgot it.

On Thu, Jun 12, 2008 at 3:32 PM, Aidan Skinner <ai...@apache.org> wrote:

> On Thu, Jun 12, 2008 at 10:53 AM, lahiru gunathilake <gl...@gmail.com>
> wrote:
>
> > On Thu, Jun 12, 2008 at 3:11 PM, Aidan Skinner <ai...@apache.org> wrote:
>
> > Which means it's not working in your machine.
>
> I got past the classpath issue easily enough, but I can't build it due
> to the lack of JMXInfo.java, did you forget to check it in?
>
now check it.
sorry for the inconvenience. Now the qpid_cli script automatically set the
classpaths.

Regs
lahiru

>
> - Aidan
> --
> aim/y!:aidans42 g:aidan.skinner@gmail.com <g%...@gmail.com>
> http://aidan.skinner.me.uk/
> "We belong to nobody and nobody belongs to us. We don't even belong to
> each other."
>

Re: GSoC - Lahiru's CLI for JMX

Posted by Aidan Skinner <ai...@apache.org>.
On Thu, Jun 12, 2008 at 10:53 AM, lahiru gunathilake <gl...@gmail.com> wrote:

> On Thu, Jun 12, 2008 at 3:11 PM, Aidan Skinner <ai...@apache.org> wrote:

> Which means it's not working in your machine.

I got past the classpath issue easily enough, but I can't build it due
to the lack of JMXInfo.java, did you forget to check it in?

- Aidan
-- 
aim/y!:aidans42 g:aidan.skinner@gmail.com
http://aidan.skinner.me.uk/
"We belong to nobody and nobody belongs to us. We don't even belong to
each other."

Re: GSoC - Lahiru's CLI for JMX

Posted by lahiru gunathilake <gl...@gmail.com>.
hi Aidan,

On Thu, Jun 12, 2008 at 3:11 PM, Aidan Skinner <ai...@apache.org> wrote:

> On Thu, Jun 12, 2008 at 4:29 AM, lahiru gunathilake <gl...@gmail.com>
> wrote:
>
> > I was able to implement list command for some extend for now it print all
> > it's attributes and as Aidan ask me I can give only those important
> > attributes rather giving all the attributes. If you can check this
> > implementation that would be a great help to me.(I have committed the
> code
> > in to SVN).
>
> Hey, that's awesome! I updated but I'm having problems building it,
> it's complaining that it can't find org.apache.qpid.utils.JMXinfo.

Also, i had to set CLASSPATH to include the jline and junit jars in
> lib/ directly, you should probably modify build.xml to pick them up
> automatically.

yes sure I will fix the build system.

Which means it's not working in your machine.

Thanks
Lahiru

>
>
> - Aidan
>
> --
> aim/y!:aidans42 g:aidan.skinner@gmail.com <g%...@gmail.com>
> http://aidan.skinner.me.uk/
> "We belong to nobody and nobody belongs to us. We don't even belong to
> each other."
>

Re: GSoC - Lahiru's CLI for JMX

Posted by Aidan Skinner <ai...@apache.org>.
On Thu, Jun 12, 2008 at 4:29 AM, lahiru gunathilake <gl...@gmail.com> wrote:

> I was able to implement list command for some extend for now it print all
> it's attributes and as Aidan ask me I can give only those important
> attributes rather giving all the attributes. If you can check this
> implementation that would be a great help to me.(I have committed the code
> in to SVN).

Hey, that's awesome! I updated but I'm having problems building it,
it's complaining that it can't find org.apache.qpid.utils.JMXinfo.
Also, i had to set CLASSPATH to include the jline and junit jars in
lib/ directly, you should probably modify build.xml to pick them up
automatically.

- Aidan

-- 
aim/y!:aidans42 g:aidan.skinner@gmail.com
http://aidan.skinner.me.uk/
"We belong to nobody and nobody belongs to us. We don't even belong to
each other."

Re: GSoC - Lahiru's CLI for JMX

Posted by lahiru gunathilake <gl...@gmail.com>.
Hi Marnie,

On Thu, Jun 12, 2008 at 2:34 PM, Marnie McCormack <
marnie.mccormack@googlemail.com> wrote:

> Hi Lahiru,
>
> Great - it seems you're making some real progress, which is very good to
> see
> ! The attibutes you're listing now look good.

Thanks  Marnie :-)

>
>
> I think the samples stuff might give you more of a headache than you'd
> enjoy
> getting started. Martin & Aidan & I have been discussing and we'll guide
> you
> towards how to get a simple client set up to make your queue active, and
> thus see some more useful example data in the queue attributes.

Sure I like to know how to write a client and even more I like to know
what's going inside the broker. These days I'm trying to understand the AMQP
spec while doing coding(I'm sorry ! Have lot of work to do with my final
year academics so it takes sometime to understand the spec).

>
>
> I'll try to take a look at your code in svn shortly. Our 12pm DST call
> today
> will go ahead, Martin & Aidan will call you on your contact number (which
> is
> best - landline or mobile ?).

I don't have a land line since I'm staying in the hostel. The number I sent
was my home land line and better to call for my
mobile.

>
>
> I can't make it along today as I have a set of meetings which I cannot
> elude. When you have a moment, send us a list of any issues that you have
> so
> we're all clear about what you need most help with !

sure I will.

Thanks in advance
Regards
Lahiru

>
>
> Hth,
> Marnie
>
> On 6/12/08, lahiru gunathilake <gl...@gmail.com> wrote:
> >
> > hi Aidan and Marnie,
> >
> >
> > I was able to implement list command for some extend for now it print all
> > it's attributes and as Aidan ask me I can give only those important
> > attributes rather giving all the attributes. If you can check this
> > implementation that would be a great help to me.(I have committed the
> code
> > in to SVN).
> >
> > Thanks
> > Lahiru
> > On Wed, Jun 11, 2008 at 5:39 PM, lahiru gunathilake <gl...@gmail.com>
> > wrote:
> >
> > >
> > >
> > > On Tue, Jun 10, 2008 at 9:29 PM, Marnie McCormack <
> > > marnie.mccormack@googlemail.com> wrote:
> > >
> > >> Hi Lahiru,
> > >>
> > >> I think I understand what you mean - basically the queues you're
> seeing
> > >> via
> > >> jConsole are those that are set up by default in the
> > >> virtualhosts.xml/config.xml that come with the broker install.
> > >>
> > >> These queues are examples, and thus don't have many distinguishing
> > >> characteristics like selectors etc (so they look like they're just
> > >> differentiated by virtualhost). They also won't have consumers or
> > messages
> > >> I
> > >> assume ?
> > >>
> > > Hopefully I was able to run samples in the directory
> > > qpid-1.0-incubating-M2-src/java/client/example/src/main/java using
> > > runSample.sh file. Is this the correct location..?
> > >  Is that what you want me to do. If it is the thing could you please
> tell
> > > me how should I monitor those queues. Do I have to use jconsole or any
> > other
> > > way to monitor those information.
> > >
> > > Regards
> > > Lahiru
> > >
> > >>
> > >> So, I think to get a real feel for the kind of data you'll see
> typically
> > >> you
> > >> possibly need to set up a client app to use the queues in a 'real
> life'
> > >> way
> > >> ? This would mean publishing to them, consuming from them etc.
> > >>
> > >> What do you think - does thistalk to your question ?
> > >>
> > >> Thanks & Regards,
> > >> Marnie
> > >>
> > >> On 6/9/08, lahiru gunathilake <gl...@gmail.com> wrote:
> > >> >
> > >> > Hi marnie,
> > >> >
> > >> > Now I'm in a position of directly implementing list and info
> commands.
> > >> > First
> > >> > doing list command. I'm managing to do this as follows.
> > >> >
> > >> > list -o <object name>
> > >> > Ex: list -o queue
> > >> >
> > >> > I'm going to implement all the command using standard way which is
> > like
> > >> for
> > >> > any command user can give options with a "minus""option letter"
> > <option
> > >> > value>
> > >> >
> > >> > In here for all the queue objects there are number of properties so
> in
> > >> your
> > >> > example you are telling like
> > >> > queue-1
> > >> > queue-2
> > >> > queue-3
> > >> >
> > >> > but more specifically what do you want to list. When I monitor using
> > >> > jconsole there were three different queues those three differ only
> > from
> > >> > ObjectName all the other properties are same like ClassName /
> > >> Discription.
> > >> > In OjbectName there are few parts and from them VirtualHost is the
> > only
> > >> one
> > >> > which differ.
> > >> > It's like this
> > >> > VirtualHost=development
> > >> > VirtualHost=localhost
> > >> > VirtualHost=test
> > >> >
> > >> > So when I list all the queues is it ok if I list those queue names
> > like
> > >> > this(listing those using VirtualHost attribute)
> > >> >
> > >> > development
> > >> > localhost
> > >> > test
> > >> >
> > >> > If you can't understand my problem let me know I can explain it with
> > >> more
> > >> > details.
> > >> >
> > >> > Thanks in advance
> > >> >
> > >> >
> > >> > Regards
> > >> > Lahiru
> > >> >
> > >> > On Thu, May 15, 2008 at 9:59 PM, Marnie McCormack <
> > >> > marnie.mccormack@googlemail.com> wrote:
> > >> >
> > >> > > Hi Lahiru,
> > >> > >
> > >> > > Martin & Aidan & I are just discussing your project and here are
> > some
> > >> of
> > >> > > our
> > >> > > thoughts:
> > >> > >
> > >> > > - so we need a command line with options. Aidan suggests it looks
> > like
> > >> > > this:
> > >> > >
> > >> > >
> > >> > > I was thinking something like
> > >> > >
> > >> > > $ qpid-admin --list-queues
> > >> > > queue-1
> > >> > > queue-2
> > >> > > queue-3
> > >> > >
> > >> > > $ qpid-admin --queue-info queue-1
> > >> > > Depth: 1 Count: 1 Subscribers: 0
> > >> > >
> > >> > > $ qpid-admin --queue-info --depth queue-1
> > >> > > 1
> > >> > >
> > >> > > for timed reports for alerting you could put that in cron, or use
> > >> > > watch for top/vmstat-esque action. I think it's probably a more
> > >> > > natural interface than editing a properties file and would be
> > >> > > something that we could apply to the C++ broker as well, which
> would
> > >> > > be nice. Plus, it's quite UNIXy and lets people leverage things
> like
> > >> > > awk.
> > >> > >
> > >> > >
> > >> > > - I'd also like it to be configurable using a properties file, but
> > >> it's
> > >> > > probably worth getting list views on this for consensus
> > >> > >
> > >> > > - I think you're mainly on the right track, but I'd focus more on
> > the
> > >> > > useful attributes we expose rather than all variables of the
> objects
> > >> > >
> > >> > > Rgds,
> > >> > > Marnie
> > >> > >
> > >> > > On 5/14/08, lahiru gunathilake <gl...@gmail.com> wrote:
> > >> > >
> > >> > > > Hi all,
> > >> > > > Now I'm writing this output in to a file and this is running
> like
> > a
> > >> > > > thread(daemon) and it write different files time to time as
> Aiden
> > >> > > discussed
> > >> > > > with me.When I run the program it monitor the broker time to
> time
> > >> (time
> > >> > > > interval can be configured).
> > >> > > >
> > >> > > > Honestly this is not the actual code I'm developing I'm just
> > writing
> > >> > some
> > >> > > > sample code to test and informing you what I'm doing and
> expecting
> > a
> > >> > feed
> > >> > > > from you.
> > >> > > >
> > >> > > > Thanks in advance
> > >> > > >
> > >> > > > Regards
> > >> > > > lahiru
> > >> > > >
> > >> > > > On Sun, May 11, 2008 at 9:00 AM, lahiru gunathilake <
> > >> glahiru@gmail.com
> > >> > >
> > >> > > > wrote:
> > >> > > >
> > >> > > > > Hi Aiden,
> > >> > > > >
> > >> > > > > First thanks a lot for your reply I was waiting for a reply
> for
> > >> few
> > >> > > days
> > >> > > > > hopefully.
> > >> > > > > I did some modification to my program and I'm listing all the
> > >> > > attributes
> > >> > > > of
> > >> > > > > all the mbeans which is having org.apache.qpid domain.
> > >> > > > > Here's the output of my program....(I'm printing the attribute
> > >> name
> > >> > and
> > >> > > > > value and type in a single line and for now I haven't done any
> > >> > > > formattings
> > >> > > > > with the output.
> > >> > > > >
> > >> > >
> > >>
> ========================================================================
> > >> > > > > Press <Enter> to continue...
> > >> > > > >
> > >> > > > > TOTAL MBEAN COUNT:   46
> > >> > > > >
> > >> > > > > DOMAINS:
> > >> > > > >     Domain[0] = JMImplementation
> > >> > > > >     Domain[1] = com.sun.management
> > >> > > > >     Domain[2] = org.apache.qpid
> > >> > > > >     Domain[3] = java.lang
> > >> > > > >     Domain[4] = java.util.logging
> > >> > > > > ALL THE EXPOSED CLASSES
> > >> > > > > 29
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.direct,ExchangeType=direct
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > > Name     amq.direct      java.lang.String
> > >> > > > > Durable     true      boolean
> > >> > > > > AutoDelete     false      boolean
> > >> > > > > ExchangeType     direct      java.lang.String
> > >> > > > > TicketNo     0      java.lang.Integer
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > > Name     ping      java.lang.String
> > >> > > > > Owner     null      java.lang.String
> > >> > > > > Durable     false      boolean
> > >> > > > > AutoDelete     false      boolean
> > >> > > > > MessageCount     0      java.lang.Integer
> > >> > > > > QueueDepth     0      java.lang.Long
> > >> > > > > MaximumMessageSize     2117632      java.lang.Long
> > >> > > > > ConsumerCount     0      java.lang.Integer
> > >> > > > > ActiveConsumerCount     0      java.lang.Integer
> > >> > > > > ReceivedMessageCount     0      java.lang.Long
> > >> > > > > MaximumMessageCount     5000      java.lang.Long
> > >> > > > > MaximumQueueDepth     4136      java.lang.Long
> > >> > > > > MaximumMessageAge     600000      java.lang.Long
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=queue
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > > Name     queue      java.lang.String
> > >> > > > > Owner     null      java.lang.String
> > >> > > > > Durable     false      boolean
> > >> > > > > AutoDelete     false      boolean
> > >> > > > > MessageCount     0      java.lang.Integer
> > >> > > > > QueueDepth     0      java.lang.Long
> > >> > > > > MaximumMessageSize     2117632      java.lang.Long
> > >> > > > > ConsumerCount     0      java.lang.Integer
> > >> > > > > ActiveConsumerCount     0      java.lang.Integer
> > >> > > > > ReceivedMessageCount     0      java.lang.Long
> > >> > > > > MaximumMessageCount     5000      java.lang.Long
> > >> > > > > MaximumQueueDepth     4136      java.lang.Long
> > >> > > > > MaximumMessageAge     600000      java.lang.Long
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.match,ExchangeType=headers
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > > Name     amq.match      java.lang.String
> > >> > > > > Durable     true      boolean
> > >> > > > > AutoDelete     false      boolean
> > >> > > > > ExchangeType     headers      java.lang.String
> > >> > > > > TicketNo     0      java.lang.Integer
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> > >
> > >>
> > org.apache.qpid:type=VirtualHost.Queue,VirtualHost=development,name=queue
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > > Name     queue      java.lang.String
> > >> > > > > Owner     null      java.lang.String
> > >> > > > > Durable     false      boolean
> > >> > > > > AutoDelete     false      boolean
> > >> > > > > MessageCount     0      java.lang.Integer
> > >> > > > > QueueDepth     0      java.lang.Long
> > >> > > > > MaximumMessageSize     2117632      java.lang.Long
> > >> > > > > ConsumerCount     0      java.lang.Integer
> > >> > > > > ActiveConsumerCount     0      java.lang.Integer
> > >> > > > > ReceivedMessageCount     0      java.lang.Long
> > >> > > > > MaximumMessageCount     5000      java.lang.Long
> > >> > > > > MaximumQueueDepth     4136      java.lang.Long
> > >> > > > > MaximumMessageAge     600000      java.lang.Long
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.fanout,ExchangeType=fanout
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > > Name     amq.fanout      java.lang.String
> > >> > > > > Durable     true      boolean
> > >> > > > > AutoDelete     false      boolean
> > >> > > > > ExchangeType     fanout      java.lang.String
> > >> > > > > TicketNo     0      java.lang.Integer
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=<<default>>,ExchangeType=direct
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > > Name     <<default>>      java.lang.String
> > >> > > > > Durable     true      boolean
> > >> > > > > AutoDelete     false      boolean
> > >> > > > > ExchangeType     direct      java.lang.String
> > >> > > > > TicketNo     0      java.lang.Integer
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.match,ExchangeType=headers
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > > Name     amq.match      java.lang.String
> > >> > > > > Durable     true      boolean
> > >> > > > > AutoDelete     false      boolean
> > >> > > > > ExchangeType     headers      java.lang.String
> > >> > > > > TicketNo     0      java.lang.Integer
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.topic,ExchangeType=topic
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > > Name     amq.topic      java.lang.String
> > >> > > > > Durable     true      boolean
> > >> > > > > AutoDelete     false      boolean
> > >> > > > > ExchangeType     topic      java.lang.String
> > >> > > > > TicketNo     0      java.lang.Integer
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> org.apache.qpid:type=VirtualHost.VirtualHostManager,VirtualHost=test
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=test.topic,ExchangeType=direct
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > > Name     test.topic      java.lang.String
> > >> > > > > Durable     false      boolean
> > >> > > > > AutoDelete     false      boolean
> > >> > > > > ExchangeType     direct      java.lang.String
> > >> > > > > TicketNo     0      java.lang.Integer
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.direct,ExchangeType=direct
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > > Name     amq.direct      java.lang.String
> > >> > > > > Durable     true      boolean
> > >> > > > > AutoDelete     false      boolean
> > >> > > > > ExchangeType     direct      java.lang.String
> > >> > > > > TicketNo     0      java.lang.Integer
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.topic,ExchangeType=topic
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > > Name     amq.topic      java.lang.String
> > >> > > > > Durable     true      boolean
> > >> > > > > AutoDelete     false      boolean
> > >> > > > > ExchangeType     topic      java.lang.String
> > >> > > > > TicketNo     0      java.lang.Integer
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > > org.apache.qpid:type=UserManagement,name=UserManagement
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.topic,ExchangeType=topic
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > > Name     amq.topic      java.lang.String
> > >> > > > > Durable     true      boolean
> > >> > > > > AutoDelete     false      boolean
> > >> > > > > ExchangeType     topic      java.lang.String
> > >> > > > > TicketNo     0      java.lang.Integer
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> >
> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=ping
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > > Name     ping      java.lang.String
> > >> > > > > Owner     null      java.lang.String
> > >> > > > > Durable     false      boolean
> > >> > > > > AutoDelete     false      boolean
> > >> > > > > MessageCount     0      java.lang.Integer
> > >> > > > > QueueDepth     0      java.lang.Long
> > >> > > > > MaximumMessageSize     2117632      java.lang.Long
> > >> > > > > ConsumerCount     0      java.lang.Integer
> > >> > > > > ActiveConsumerCount     0      java.lang.Integer
> > >> > > > > ReceivedMessageCount     0      java.lang.Long
> > >> > > > > MaximumMessageCount     0      java.lang.Long
> > >> > > > > MaximumQueueDepth     4136      java.lang.Long
> > >> > > > > MaximumMessageAge     600000      java.lang.Long
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=<<default>>,ExchangeType=direct
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > > Name     <<default>>      java.lang.String
> > >> > > > > Durable     true      boolean
> > >> > > > > AutoDelete     false      boolean
> > >> > > > > ExchangeType     direct      java.lang.String
> > >> > > > > TicketNo     0      java.lang.Integer
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.fanout,ExchangeType=fanout
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > > Name     amq.fanout      java.lang.String
> > >> > > > > Durable     true      boolean
> > >> > > > > AutoDelete     false      boolean
> > >> > > > > ExchangeType     fanout      java.lang.String
> > >> > > > > TicketNo     0      java.lang.Integer
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.qpid:type=VirtualHost.VirtualHostManager,VirtualHost=development
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=test-queue
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > > Name     test-queue      java.lang.String
> > >> > > > > Owner     null      java.lang.String
> > >> > > > > Durable     true      boolean
> > >> > > > > AutoDelete     false      boolean
> > >> > > > > MessageCount     0      java.lang.Integer
> > >> > > > > QueueDepth     0      java.lang.Long
> > >> > > > > MaximumMessageSize     2117632      java.lang.Long
> > >> > > > > ConsumerCount     0      java.lang.Integer
> > >> > > > > ActiveConsumerCount     0      java.lang.Integer
> > >> > > > > ReceivedMessageCount     0      java.lang.Long
> > >> > > > > MaximumMessageCount     0      java.lang.Long
> > >> > > > > MaximumQueueDepth     4136      java.lang.Long
> > >> > > > > MaximumMessageAge     600000      java.lang.Long
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> > >
> > >>
> > org.apache.qpid:type=VirtualHost.VirtualHostManager,VirtualHost=localhost
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> >
> > org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=queue
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > > Name     queue      java.lang.String
> > >> > > > > Owner     null      java.lang.String
> > >> > > > > Durable     false      boolean
> > >> > > > > AutoDelete     false      boolean
> > >> > > > > MessageCount     0      java.lang.Integer
> > >> > > > > QueueDepth     0      java.lang.Long
> > >> > > > > MaximumMessageSize     2117632      java.lang.Long
> > >> > > > > ConsumerCount     0      java.lang.Integer
> > >> > > > > ActiveConsumerCount     0      java.lang.Integer
> > >> > > > > ReceivedMessageCount     0      java.lang.Long
> > >> > > > > MaximumMessageCount     0      java.lang.Long
> > >> > > > > MaximumQueueDepth     4136      java.lang.Long
> > >> > > > > MaximumMessageAge     600000      java.lang.Long
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.direct,ExchangeType=direct
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > > Name     amq.direct      java.lang.String
> > >> > > > > Durable     true      boolean
> > >> > > > > AutoDelete     false      boolean
> > >> > > > > ExchangeType     direct      java.lang.String
> > >> > > > > TicketNo     0      java.lang.Integer
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=test-ping
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > > Name     test-ping      java.lang.String
> > >> > > > > Owner     null      java.lang.String
> > >> > > > > Durable     false      boolean
> > >> > > > > AutoDelete     false      boolean
> > >> > > > > MessageCount     0      java.lang.Integer
> > >> > > > > QueueDepth     0      java.lang.Long
> > >> > > > > MaximumMessageSize     2117632      java.lang.Long
> > >> > > > > ConsumerCount     0      java.lang.Integer
> > >> > > > > ActiveConsumerCount     0      java.lang.Integer
> > >> > > > > ReceivedMessageCount     0      java.lang.Long
> > >> > > > > MaximumMessageCount     0      java.lang.Long
> > >> > > > > MaximumQueueDepth     4136      java.lang.Long
> > >> > > > > MaximumMessageAge     600000      java.lang.Long
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=<<default>>,ExchangeType=direct
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > > Name     <<default>>      java.lang.String
> > >> > > > > Durable     true      boolean
> > >> > > > > AutoDelete     false      boolean
> > >> > > > > ExchangeType     direct      java.lang.String
> > >> > > > > TicketNo     0      java.lang.Integer
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.fanout,ExchangeType=fanout
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > > Name     amq.fanout      java.lang.String
> > >> > > > > Durable     true      boolean
> > >> > > > > AutoDelete     false      boolean
> > >> > > > > ExchangeType     fanout      java.lang.String
> > >> > > > > TicketNo     0      java.lang.Integer
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.match,ExchangeType=headers
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > > Name     amq.match      java.lang.String
> > >> > > > > Durable     true      boolean
> > >> > > > > AutoDelete     false      boolean
> > >> > > > > ExchangeType     headers      java.lang.String
> > >> > > > > TicketNo     0      java.lang.Integer
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=test.direct,ExchangeType=direct
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > > Name     test.direct      java.lang.String
> > >> > > > > Durable     false      boolean
> > >> > > > > AutoDelete     false      boolean
> > >> > > > > ExchangeType     direct      java.lang.String
> > >> > > > > TicketNo     0      java.lang.Integer
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > >
> > >> > >
> > >>
> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=development,name=ping
> > >> > > > >
> > >> >
> > =======================================================================
> > >> > > > > Name     ping      java.lang.String
> > >> > > > > Owner     null      java.lang.String
> > >> > > > > Durable     false      boolean
> > >> > > > > AutoDelete     false      boolean
> > >> > > > > MessageCount     0      java.lang.Integer
> > >> > > > > QueueDepth     0      java.lang.Long
> > >> > > > > MaximumMessageSize     2117632      java.lang.Long
> > >> > > > > ConsumerCount     0      java.lang.Integer
> > >> > > > > ActiveConsumerCount     0      java.lang.Integer
> > >> > > > > ReceivedMessageCount     0      java.lang.Long
> > >> > > > > MaximumMessageCount     5000      java.lang.Long
> > >> > > > > MaximumQueueDepth     4136      java.lang.Long
> > >> > > > > MaximumMessageAge     600000      java.lang.Long
> > >> > > > >
> > >> > > > > Close the connection to the server
> > >> > > > >
> > >> > > > > Bye! Bye!
> > >> > > > > lahiru@lahiru-laptop
> > >> > > > :~/IdeaProjects/jmxpractice/classes/production/jmxpractice$
> > >> > > > >
> > >> > > > >
> > >> > > > >
> > >> > >
> > >>
> > =========================================================================
> > >> > > > > On Fri, May 9, 2008 at 8:35 PM, Aidan Skinner <
> aidan@apache.org
> > >
> > >> > > wrote:
> > >> > > > >
> > >> > > > >> Hey Lahiru,
> > >> > > > >>
> > >> > > > >> the screenshot you sent was stripped by the mailing list, as
> > it's
> > >> a
> > >> > > > >> command line it's probably best just to copy and paste the
> > output
> > >> > into
> > >> > > > >> an email anyway.
> > >> > > > >>
> > >> > > > >> As for a next step, probably something quick like listing all
> > the
> > >> > > > >> queues or the count on a specified queue.
> > >> > > > >
> > >> > > > > I think I have done what you are asking but I'm not sure if
> I'm
> > >> wrong
> > >> > > > > please let me know.
> > >> > > > > Could you please explain it some more and however I will try
> to
> > >> > > > understand
> > >> > > > > what you meant by that sentence.
> > >> > > > >
> > >> > > > > Thanks in advance
> > >> > > > >
> > >> > > > >
> > >> > > > > Regs
> > >> > > > > lahiru
> > >> > > > >
> > >> > > >
> > >> > > >
> > >> > > >
> > >> > > > --
> > >> > > > East or West
> > >> > > > Mahindians are the
> > >> > > > Best... !
> > >> > > >
> > >> > >
> > >> >
> > >> >
> > >> >
> > >> > --
> > >> > East or West
> > >> > Mahindians are the
> > >> > Best... !
> > >> >
> > >>
> > >
> > >
> > >
> > > --
> > > East or West
> > > Mahindians are the
> > > Best... !
> > >
> >
> >
> >
> > --
> > East or West
> > Mahindians are the
> > Best... !
> >
>

Re: GSoC - Lahiru's CLI for JMX

Posted by Marnie McCormack <ma...@googlemail.com>.
Hi Lahiru,

Great - it seems you're making some real progress, which is very good to see
! The attibutes you're listing now look good.

I think the samples stuff might give you more of a headache than you'd enjoy
getting started. Martin & Aidan & I have been discussing and we'll guide you
towards how to get a simple client set up to make your queue active, and
thus see some more useful example data in the queue attributes.

I'll try to take a look at your code in svn shortly. Our 12pm DST call today
will go ahead, Martin & Aidan will call you on your contact number (which is
best - landline or mobile ?).

I can't make it along today as I have a set of meetings which I cannot
elude. When you have a moment, send us a list of any issues that you have so
we're all clear about what you need most help with !

Hth,
Marnie

On 6/12/08, lahiru gunathilake <gl...@gmail.com> wrote:
>
> hi Aidan and Marnie,
>
>
> I was able to implement list command for some extend for now it print all
> it's attributes and as Aidan ask me I can give only those important
> attributes rather giving all the attributes. If you can check this
> implementation that would be a great help to me.(I have committed the code
> in to SVN).
>
> Thanks
> Lahiru
> On Wed, Jun 11, 2008 at 5:39 PM, lahiru gunathilake <gl...@gmail.com>
> wrote:
>
> >
> >
> > On Tue, Jun 10, 2008 at 9:29 PM, Marnie McCormack <
> > marnie.mccormack@googlemail.com> wrote:
> >
> >> Hi Lahiru,
> >>
> >> I think I understand what you mean - basically the queues you're seeing
> >> via
> >> jConsole are those that are set up by default in the
> >> virtualhosts.xml/config.xml that come with the broker install.
> >>
> >> These queues are examples, and thus don't have many distinguishing
> >> characteristics like selectors etc (so they look like they're just
> >> differentiated by virtualhost). They also won't have consumers or
> messages
> >> I
> >> assume ?
> >>
> > Hopefully I was able to run samples in the directory
> > qpid-1.0-incubating-M2-src/java/client/example/src/main/java using
> > runSample.sh file. Is this the correct location..?
> >  Is that what you want me to do. If it is the thing could you please tell
> > me how should I monitor those queues. Do I have to use jconsole or any
> other
> > way to monitor those information.
> >
> > Regards
> > Lahiru
> >
> >>
> >> So, I think to get a real feel for the kind of data you'll see typically
> >> you
> >> possibly need to set up a client app to use the queues in a 'real life'
> >> way
> >> ? This would mean publishing to them, consuming from them etc.
> >>
> >> What do you think - does thistalk to your question ?
> >>
> >> Thanks & Regards,
> >> Marnie
> >>
> >> On 6/9/08, lahiru gunathilake <gl...@gmail.com> wrote:
> >> >
> >> > Hi marnie,
> >> >
> >> > Now I'm in a position of directly implementing list and info commands.
> >> > First
> >> > doing list command. I'm managing to do this as follows.
> >> >
> >> > list -o <object name>
> >> > Ex: list -o queue
> >> >
> >> > I'm going to implement all the command using standard way which is
> like
> >> for
> >> > any command user can give options with a "minus""option letter"
> <option
> >> > value>
> >> >
> >> > In here for all the queue objects there are number of properties so in
> >> your
> >> > example you are telling like
> >> > queue-1
> >> > queue-2
> >> > queue-3
> >> >
> >> > but more specifically what do you want to list. When I monitor using
> >> > jconsole there were three different queues those three differ only
> from
> >> > ObjectName all the other properties are same like ClassName /
> >> Discription.
> >> > In OjbectName there are few parts and from them VirtualHost is the
> only
> >> one
> >> > which differ.
> >> > It's like this
> >> > VirtualHost=development
> >> > VirtualHost=localhost
> >> > VirtualHost=test
> >> >
> >> > So when I list all the queues is it ok if I list those queue names
> like
> >> > this(listing those using VirtualHost attribute)
> >> >
> >> > development
> >> > localhost
> >> > test
> >> >
> >> > If you can't understand my problem let me know I can explain it with
> >> more
> >> > details.
> >> >
> >> > Thanks in advance
> >> >
> >> >
> >> > Regards
> >> > Lahiru
> >> >
> >> > On Thu, May 15, 2008 at 9:59 PM, Marnie McCormack <
> >> > marnie.mccormack@googlemail.com> wrote:
> >> >
> >> > > Hi Lahiru,
> >> > >
> >> > > Martin & Aidan & I are just discussing your project and here are
> some
> >> of
> >> > > our
> >> > > thoughts:
> >> > >
> >> > > - so we need a command line with options. Aidan suggests it looks
> like
> >> > > this:
> >> > >
> >> > >
> >> > > I was thinking something like
> >> > >
> >> > > $ qpid-admin --list-queues
> >> > > queue-1
> >> > > queue-2
> >> > > queue-3
> >> > >
> >> > > $ qpid-admin --queue-info queue-1
> >> > > Depth: 1 Count: 1 Subscribers: 0
> >> > >
> >> > > $ qpid-admin --queue-info --depth queue-1
> >> > > 1
> >> > >
> >> > > for timed reports for alerting you could put that in cron, or use
> >> > > watch for top/vmstat-esque action. I think it's probably a more
> >> > > natural interface than editing a properties file and would be
> >> > > something that we could apply to the C++ broker as well, which would
> >> > > be nice. Plus, it's quite UNIXy and lets people leverage things like
> >> > > awk.
> >> > >
> >> > >
> >> > > - I'd also like it to be configurable using a properties file, but
> >> it's
> >> > > probably worth getting list views on this for consensus
> >> > >
> >> > > - I think you're mainly on the right track, but I'd focus more on
> the
> >> > > useful attributes we expose rather than all variables of the objects
> >> > >
> >> > > Rgds,
> >> > > Marnie
> >> > >
> >> > > On 5/14/08, lahiru gunathilake <gl...@gmail.com> wrote:
> >> > >
> >> > > > Hi all,
> >> > > > Now I'm writing this output in to a file and this is running like
> a
> >> > > > thread(daemon) and it write different files time to time as Aiden
> >> > > discussed
> >> > > > with me.When I run the program it monitor the broker time to time
> >> (time
> >> > > > interval can be configured).
> >> > > >
> >> > > > Honestly this is not the actual code I'm developing I'm just
> writing
> >> > some
> >> > > > sample code to test and informing you what I'm doing and expecting
> a
> >> > feed
> >> > > > from you.
> >> > > >
> >> > > > Thanks in advance
> >> > > >
> >> > > > Regards
> >> > > > lahiru
> >> > > >
> >> > > > On Sun, May 11, 2008 at 9:00 AM, lahiru gunathilake <
> >> glahiru@gmail.com
> >> > >
> >> > > > wrote:
> >> > > >
> >> > > > > Hi Aiden,
> >> > > > >
> >> > > > > First thanks a lot for your reply I was waiting for a reply for
> >> few
> >> > > days
> >> > > > > hopefully.
> >> > > > > I did some modification to my program and I'm listing all the
> >> > > attributes
> >> > > > of
> >> > > > > all the mbeans which is having org.apache.qpid domain.
> >> > > > > Here's the output of my program....(I'm printing the attribute
> >> name
> >> > and
> >> > > > > value and type in a single line and for now I haven't done any
> >> > > > formattings
> >> > > > > with the output.
> >> > > > >
> >> > >
> >> ========================================================================
> >> > > > > Press <Enter> to continue...
> >> > > > >
> >> > > > > TOTAL MBEAN COUNT:   46
> >> > > > >
> >> > > > > DOMAINS:
> >> > > > >     Domain[0] = JMImplementation
> >> > > > >     Domain[1] = com.sun.management
> >> > > > >     Domain[2] = org.apache.qpid
> >> > > > >     Domain[3] = java.lang
> >> > > > >     Domain[4] = java.util.logging
> >> > > > > ALL THE EXPOSED CLASSES
> >> > > > > 29
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.direct,ExchangeType=direct
> >> > > > >
> >> >
> =======================================================================
> >> > > > > Name     amq.direct      java.lang.String
> >> > > > > Durable     true      boolean
> >> > > > > AutoDelete     false      boolean
> >> > > > > ExchangeType     direct      java.lang.String
> >> > > > > TicketNo     0      java.lang.Integer
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping
> >> > > > >
> >> >
> =======================================================================
> >> > > > > Name     ping      java.lang.String
> >> > > > > Owner     null      java.lang.String
> >> > > > > Durable     false      boolean
> >> > > > > AutoDelete     false      boolean
> >> > > > > MessageCount     0      java.lang.Integer
> >> > > > > QueueDepth     0      java.lang.Long
> >> > > > > MaximumMessageSize     2117632      java.lang.Long
> >> > > > > ConsumerCount     0      java.lang.Integer
> >> > > > > ActiveConsumerCount     0      java.lang.Integer
> >> > > > > ReceivedMessageCount     0      java.lang.Long
> >> > > > > MaximumMessageCount     5000      java.lang.Long
> >> > > > > MaximumQueueDepth     4136      java.lang.Long
> >> > > > > MaximumMessageAge     600000      java.lang.Long
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=queue
> >> > > > >
> >> >
> =======================================================================
> >> > > > > Name     queue      java.lang.String
> >> > > > > Owner     null      java.lang.String
> >> > > > > Durable     false      boolean
> >> > > > > AutoDelete     false      boolean
> >> > > > > MessageCount     0      java.lang.Integer
> >> > > > > QueueDepth     0      java.lang.Long
> >> > > > > MaximumMessageSize     2117632      java.lang.Long
> >> > > > > ConsumerCount     0      java.lang.Integer
> >> > > > > ActiveConsumerCount     0      java.lang.Integer
> >> > > > > ReceivedMessageCount     0      java.lang.Long
> >> > > > > MaximumMessageCount     5000      java.lang.Long
> >> > > > > MaximumQueueDepth     4136      java.lang.Long
> >> > > > > MaximumMessageAge     600000      java.lang.Long
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.match,ExchangeType=headers
> >> > > > >
> >> >
> =======================================================================
> >> > > > > Name     amq.match      java.lang.String
> >> > > > > Durable     true      boolean
> >> > > > > AutoDelete     false      boolean
> >> > > > > ExchangeType     headers      java.lang.String
> >> > > > > TicketNo     0      java.lang.Integer
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> > >
> >>
> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=development,name=queue
> >> > > > >
> >> >
> =======================================================================
> >> > > > > Name     queue      java.lang.String
> >> > > > > Owner     null      java.lang.String
> >> > > > > Durable     false      boolean
> >> > > > > AutoDelete     false      boolean
> >> > > > > MessageCount     0      java.lang.Integer
> >> > > > > QueueDepth     0      java.lang.Long
> >> > > > > MaximumMessageSize     2117632      java.lang.Long
> >> > > > > ConsumerCount     0      java.lang.Integer
> >> > > > > ActiveConsumerCount     0      java.lang.Integer
> >> > > > > ReceivedMessageCount     0      java.lang.Long
> >> > > > > MaximumMessageCount     5000      java.lang.Long
> >> > > > > MaximumQueueDepth     4136      java.lang.Long
> >> > > > > MaximumMessageAge     600000      java.lang.Long
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.fanout,ExchangeType=fanout
> >> > > > >
> >> >
> =======================================================================
> >> > > > > Name     amq.fanout      java.lang.String
> >> > > > > Durable     true      boolean
> >> > > > > AutoDelete     false      boolean
> >> > > > > ExchangeType     fanout      java.lang.String
> >> > > > > TicketNo     0      java.lang.Integer
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=<<default>>,ExchangeType=direct
> >> > > > >
> >> >
> =======================================================================
> >> > > > > Name     <<default>>      java.lang.String
> >> > > > > Durable     true      boolean
> >> > > > > AutoDelete     false      boolean
> >> > > > > ExchangeType     direct      java.lang.String
> >> > > > > TicketNo     0      java.lang.Integer
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.match,ExchangeType=headers
> >> > > > >
> >> >
> =======================================================================
> >> > > > > Name     amq.match      java.lang.String
> >> > > > > Durable     true      boolean
> >> > > > > AutoDelete     false      boolean
> >> > > > > ExchangeType     headers      java.lang.String
> >> > > > > TicketNo     0      java.lang.Integer
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.topic,ExchangeType=topic
> >> > > > >
> >> >
> =======================================================================
> >> > > > > Name     amq.topic      java.lang.String
> >> > > > > Durable     true      boolean
> >> > > > > AutoDelete     false      boolean
> >> > > > > ExchangeType     topic      java.lang.String
> >> > > > > TicketNo     0      java.lang.Integer
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> org.apache.qpid:type=VirtualHost.VirtualHostManager,VirtualHost=test
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=test.topic,ExchangeType=direct
> >> > > > >
> >> >
> =======================================================================
> >> > > > > Name     test.topic      java.lang.String
> >> > > > > Durable     false      boolean
> >> > > > > AutoDelete     false      boolean
> >> > > > > ExchangeType     direct      java.lang.String
> >> > > > > TicketNo     0      java.lang.Integer
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.direct,ExchangeType=direct
> >> > > > >
> >> >
> =======================================================================
> >> > > > > Name     amq.direct      java.lang.String
> >> > > > > Durable     true      boolean
> >> > > > > AutoDelete     false      boolean
> >> > > > > ExchangeType     direct      java.lang.String
> >> > > > > TicketNo     0      java.lang.Integer
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.topic,ExchangeType=topic
> >> > > > >
> >> >
> =======================================================================
> >> > > > > Name     amq.topic      java.lang.String
> >> > > > > Durable     true      boolean
> >> > > > > AutoDelete     false      boolean
> >> > > > > ExchangeType     topic      java.lang.String
> >> > > > > TicketNo     0      java.lang.Integer
> >> > > > >
> >> >
> =======================================================================
> >> > > > > org.apache.qpid:type=UserManagement,name=UserManagement
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.topic,ExchangeType=topic
> >> > > > >
> >> >
> =======================================================================
> >> > > > > Name     amq.topic      java.lang.String
> >> > > > > Durable     true      boolean
> >> > > > > AutoDelete     false      boolean
> >> > > > > ExchangeType     topic      java.lang.String
> >> > > > > TicketNo     0      java.lang.Integer
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> > org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=ping
> >> > > > >
> >> >
> =======================================================================
> >> > > > > Name     ping      java.lang.String
> >> > > > > Owner     null      java.lang.String
> >> > > > > Durable     false      boolean
> >> > > > > AutoDelete     false      boolean
> >> > > > > MessageCount     0      java.lang.Integer
> >> > > > > QueueDepth     0      java.lang.Long
> >> > > > > MaximumMessageSize     2117632      java.lang.Long
> >> > > > > ConsumerCount     0      java.lang.Integer
> >> > > > > ActiveConsumerCount     0      java.lang.Integer
> >> > > > > ReceivedMessageCount     0      java.lang.Long
> >> > > > > MaximumMessageCount     0      java.lang.Long
> >> > > > > MaximumQueueDepth     4136      java.lang.Long
> >> > > > > MaximumMessageAge     600000      java.lang.Long
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=<<default>>,ExchangeType=direct
> >> > > > >
> >> >
> =======================================================================
> >> > > > > Name     <<default>>      java.lang.String
> >> > > > > Durable     true      boolean
> >> > > > > AutoDelete     false      boolean
> >> > > > > ExchangeType     direct      java.lang.String
> >> > > > > TicketNo     0      java.lang.Integer
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.fanout,ExchangeType=fanout
> >> > > > >
> >> >
> =======================================================================
> >> > > > > Name     amq.fanout      java.lang.String
> >> > > > > Durable     true      boolean
> >> > > > > AutoDelete     false      boolean
> >> > > > > ExchangeType     fanout      java.lang.String
> >> > > > > TicketNo     0      java.lang.Integer
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.qpid:type=VirtualHost.VirtualHostManager,VirtualHost=development
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=test-queue
> >> > > > >
> >> >
> =======================================================================
> >> > > > > Name     test-queue      java.lang.String
> >> > > > > Owner     null      java.lang.String
> >> > > > > Durable     true      boolean
> >> > > > > AutoDelete     false      boolean
> >> > > > > MessageCount     0      java.lang.Integer
> >> > > > > QueueDepth     0      java.lang.Long
> >> > > > > MaximumMessageSize     2117632      java.lang.Long
> >> > > > > ConsumerCount     0      java.lang.Integer
> >> > > > > ActiveConsumerCount     0      java.lang.Integer
> >> > > > > ReceivedMessageCount     0      java.lang.Long
> >> > > > > MaximumMessageCount     0      java.lang.Long
> >> > > > > MaximumQueueDepth     4136      java.lang.Long
> >> > > > > MaximumMessageAge     600000      java.lang.Long
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> > >
> >>
> org.apache.qpid:type=VirtualHost.VirtualHostManager,VirtualHost=localhost
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> >
> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=queue
> >> > > > >
> >> >
> =======================================================================
> >> > > > > Name     queue      java.lang.String
> >> > > > > Owner     null      java.lang.String
> >> > > > > Durable     false      boolean
> >> > > > > AutoDelete     false      boolean
> >> > > > > MessageCount     0      java.lang.Integer
> >> > > > > QueueDepth     0      java.lang.Long
> >> > > > > MaximumMessageSize     2117632      java.lang.Long
> >> > > > > ConsumerCount     0      java.lang.Integer
> >> > > > > ActiveConsumerCount     0      java.lang.Integer
> >> > > > > ReceivedMessageCount     0      java.lang.Long
> >> > > > > MaximumMessageCount     0      java.lang.Long
> >> > > > > MaximumQueueDepth     4136      java.lang.Long
> >> > > > > MaximumMessageAge     600000      java.lang.Long
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.direct,ExchangeType=direct
> >> > > > >
> >> >
> =======================================================================
> >> > > > > Name     amq.direct      java.lang.String
> >> > > > > Durable     true      boolean
> >> > > > > AutoDelete     false      boolean
> >> > > > > ExchangeType     direct      java.lang.String
> >> > > > > TicketNo     0      java.lang.Integer
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=test-ping
> >> > > > >
> >> >
> =======================================================================
> >> > > > > Name     test-ping      java.lang.String
> >> > > > > Owner     null      java.lang.String
> >> > > > > Durable     false      boolean
> >> > > > > AutoDelete     false      boolean
> >> > > > > MessageCount     0      java.lang.Integer
> >> > > > > QueueDepth     0      java.lang.Long
> >> > > > > MaximumMessageSize     2117632      java.lang.Long
> >> > > > > ConsumerCount     0      java.lang.Integer
> >> > > > > ActiveConsumerCount     0      java.lang.Integer
> >> > > > > ReceivedMessageCount     0      java.lang.Long
> >> > > > > MaximumMessageCount     0      java.lang.Long
> >> > > > > MaximumQueueDepth     4136      java.lang.Long
> >> > > > > MaximumMessageAge     600000      java.lang.Long
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=<<default>>,ExchangeType=direct
> >> > > > >
> >> >
> =======================================================================
> >> > > > > Name     <<default>>      java.lang.String
> >> > > > > Durable     true      boolean
> >> > > > > AutoDelete     false      boolean
> >> > > > > ExchangeType     direct      java.lang.String
> >> > > > > TicketNo     0      java.lang.Integer
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.fanout,ExchangeType=fanout
> >> > > > >
> >> >
> =======================================================================
> >> > > > > Name     amq.fanout      java.lang.String
> >> > > > > Durable     true      boolean
> >> > > > > AutoDelete     false      boolean
> >> > > > > ExchangeType     fanout      java.lang.String
> >> > > > > TicketNo     0      java.lang.Integer
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.match,ExchangeType=headers
> >> > > > >
> >> >
> =======================================================================
> >> > > > > Name     amq.match      java.lang.String
> >> > > > > Durable     true      boolean
> >> > > > > AutoDelete     false      boolean
> >> > > > > ExchangeType     headers      java.lang.String
> >> > > > > TicketNo     0      java.lang.Integer
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=test.direct,ExchangeType=direct
> >> > > > >
> >> >
> =======================================================================
> >> > > > > Name     test.direct      java.lang.String
> >> > > > > Durable     false      boolean
> >> > > > > AutoDelete     false      boolean
> >> > > > > ExchangeType     direct      java.lang.String
> >> > > > > TicketNo     0      java.lang.Integer
> >> > > > >
> >> >
> =======================================================================
> >> > > > >
> >> > >
> >> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=development,name=ping
> >> > > > >
> >> >
> =======================================================================
> >> > > > > Name     ping      java.lang.String
> >> > > > > Owner     null      java.lang.String
> >> > > > > Durable     false      boolean
> >> > > > > AutoDelete     false      boolean
> >> > > > > MessageCount     0      java.lang.Integer
> >> > > > > QueueDepth     0      java.lang.Long
> >> > > > > MaximumMessageSize     2117632      java.lang.Long
> >> > > > > ConsumerCount     0      java.lang.Integer
> >> > > > > ActiveConsumerCount     0      java.lang.Integer
> >> > > > > ReceivedMessageCount     0      java.lang.Long
> >> > > > > MaximumMessageCount     5000      java.lang.Long
> >> > > > > MaximumQueueDepth     4136      java.lang.Long
> >> > > > > MaximumMessageAge     600000      java.lang.Long
> >> > > > >
> >> > > > > Close the connection to the server
> >> > > > >
> >> > > > > Bye! Bye!
> >> > > > > lahiru@lahiru-laptop
> >> > > > :~/IdeaProjects/jmxpractice/classes/production/jmxpractice$
> >> > > > >
> >> > > > >
> >> > > > >
> >> > >
> >>
> =========================================================================
> >> > > > > On Fri, May 9, 2008 at 8:35 PM, Aidan Skinner <aidan@apache.org
> >
> >> > > wrote:
> >> > > > >
> >> > > > >> Hey Lahiru,
> >> > > > >>
> >> > > > >> the screenshot you sent was stripped by the mailing list, as
> it's
> >> a
> >> > > > >> command line it's probably best just to copy and paste the
> output
> >> > into
> >> > > > >> an email anyway.
> >> > > > >>
> >> > > > >> As for a next step, probably something quick like listing all
> the
> >> > > > >> queues or the count on a specified queue.
> >> > > > >
> >> > > > > I think I have done what you are asking but I'm not sure if I'm
> >> wrong
> >> > > > > please let me know.
> >> > > > > Could you please explain it some more and however I will try to
> >> > > > understand
> >> > > > > what you meant by that sentence.
> >> > > > >
> >> > > > > Thanks in advance
> >> > > > >
> >> > > > >
> >> > > > > Regs
> >> > > > > lahiru
> >> > > > >
> >> > > >
> >> > > >
> >> > > >
> >> > > > --
> >> > > > East or West
> >> > > > Mahindians are the
> >> > > > Best... !
> >> > > >
> >> > >
> >> >
> >> >
> >> >
> >> > --
> >> > East or West
> >> > Mahindians are the
> >> > Best... !
> >> >
> >>
> >
> >
> >
> > --
> > East or West
> > Mahindians are the
> > Best... !
> >
>
>
>
> --
> East or West
> Mahindians are the
> Best... !
>

Re: GSoC - Lahiru's CLI for JMX

Posted by lahiru gunathilake <gl...@gmail.com>.
hi Aidan and Marnie,


I was able to implement list command for some extend for now it print all
it's attributes and as Aidan ask me I can give only those important
attributes rather giving all the attributes. If you can check this
implementation that would be a great help to me.(I have committed the code
in to SVN).

Thanks
Lahiru
On Wed, Jun 11, 2008 at 5:39 PM, lahiru gunathilake <gl...@gmail.com>
wrote:

>
>
> On Tue, Jun 10, 2008 at 9:29 PM, Marnie McCormack <
> marnie.mccormack@googlemail.com> wrote:
>
>> Hi Lahiru,
>>
>> I think I understand what you mean - basically the queues you're seeing
>> via
>> jConsole are those that are set up by default in the
>> virtualhosts.xml/config.xml that come with the broker install.
>>
>> These queues are examples, and thus don't have many distinguishing
>> characteristics like selectors etc (so they look like they're just
>> differentiated by virtualhost). They also won't have consumers or messages
>> I
>> assume ?
>>
> Hopefully I was able to run samples in the directory
> qpid-1.0-incubating-M2-src/java/client/example/src/main/java using
> runSample.sh file. Is this the correct location..?
>  Is that what you want me to do. If it is the thing could you please tell
> me how should I monitor those queues. Do I have to use jconsole or any other
> way to monitor those information.
>
> Regards
> Lahiru
>
>>
>> So, I think to get a real feel for the kind of data you'll see typically
>> you
>> possibly need to set up a client app to use the queues in a 'real life'
>> way
>> ? This would mean publishing to them, consuming from them etc.
>>
>> What do you think - does thistalk to your question ?
>>
>> Thanks & Regards,
>> Marnie
>>
>> On 6/9/08, lahiru gunathilake <gl...@gmail.com> wrote:
>> >
>> > Hi marnie,
>> >
>> > Now I'm in a position of directly implementing list and info commands.
>> > First
>> > doing list command. I'm managing to do this as follows.
>> >
>> > list -o <object name>
>> > Ex: list -o queue
>> >
>> > I'm going to implement all the command using standard way which is like
>> for
>> > any command user can give options with a "minus""option letter" <option
>> > value>
>> >
>> > In here for all the queue objects there are number of properties so in
>> your
>> > example you are telling like
>> > queue-1
>> > queue-2
>> > queue-3
>> >
>> > but more specifically what do you want to list. When I monitor using
>> > jconsole there were three different queues those three differ only from
>> > ObjectName all the other properties are same like ClassName /
>> Discription.
>> > In OjbectName there are few parts and from them VirtualHost is the only
>> one
>> > which differ.
>> > It's like this
>> > VirtualHost=development
>> > VirtualHost=localhost
>> > VirtualHost=test
>> >
>> > So when I list all the queues is it ok if I list those queue names like
>> > this(listing those using VirtualHost attribute)
>> >
>> > development
>> > localhost
>> > test
>> >
>> > If you can't understand my problem let me know I can explain it with
>> more
>> > details.
>> >
>> > Thanks in advance
>> >
>> >
>> > Regards
>> > Lahiru
>> >
>> > On Thu, May 15, 2008 at 9:59 PM, Marnie McCormack <
>> > marnie.mccormack@googlemail.com> wrote:
>> >
>> > > Hi Lahiru,
>> > >
>> > > Martin & Aidan & I are just discussing your project and here are some
>> of
>> > > our
>> > > thoughts:
>> > >
>> > > - so we need a command line with options. Aidan suggests it looks like
>> > > this:
>> > >
>> > >
>> > > I was thinking something like
>> > >
>> > > $ qpid-admin --list-queues
>> > > queue-1
>> > > queue-2
>> > > queue-3
>> > >
>> > > $ qpid-admin --queue-info queue-1
>> > > Depth: 1 Count: 1 Subscribers: 0
>> > >
>> > > $ qpid-admin --queue-info --depth queue-1
>> > > 1
>> > >
>> > > for timed reports for alerting you could put that in cron, or use
>> > > watch for top/vmstat-esque action. I think it's probably a more
>> > > natural interface than editing a properties file and would be
>> > > something that we could apply to the C++ broker as well, which would
>> > > be nice. Plus, it's quite UNIXy and lets people leverage things like
>> > > awk.
>> > >
>> > >
>> > > - I'd also like it to be configurable using a properties file, but
>> it's
>> > > probably worth getting list views on this for consensus
>> > >
>> > > - I think you're mainly on the right track, but I'd focus more on the
>> > > useful attributes we expose rather than all variables of the objects
>> > >
>> > > Rgds,
>> > > Marnie
>> > >
>> > > On 5/14/08, lahiru gunathilake <gl...@gmail.com> wrote:
>> > >
>> > > > Hi all,
>> > > > Now I'm writing this output in to a file and this is running like a
>> > > > thread(daemon) and it write different files time to time as Aiden
>> > > discussed
>> > > > with me.When I run the program it monitor the broker time to time
>> (time
>> > > > interval can be configured).
>> > > >
>> > > > Honestly this is not the actual code I'm developing I'm just writing
>> > some
>> > > > sample code to test and informing you what I'm doing and expecting a
>> > feed
>> > > > from you.
>> > > >
>> > > > Thanks in advance
>> > > >
>> > > > Regards
>> > > > lahiru
>> > > >
>> > > > On Sun, May 11, 2008 at 9:00 AM, lahiru gunathilake <
>> glahiru@gmail.com
>> > >
>> > > > wrote:
>> > > >
>> > > > > Hi Aiden,
>> > > > >
>> > > > > First thanks a lot for your reply I was waiting for a reply for
>> few
>> > > days
>> > > > > hopefully.
>> > > > > I did some modification to my program and I'm listing all the
>> > > attributes
>> > > > of
>> > > > > all the mbeans which is having org.apache.qpid domain.
>> > > > > Here's the output of my program....(I'm printing the attribute
>> name
>> > and
>> > > > > value and type in a single line and for now I haven't done any
>> > > > formattings
>> > > > > with the output.
>> > > > >
>> > >
>> ========================================================================
>> > > > > Press <Enter> to continue...
>> > > > >
>> > > > > TOTAL MBEAN COUNT:   46
>> > > > >
>> > > > > DOMAINS:
>> > > > >     Domain[0] = JMImplementation
>> > > > >     Domain[1] = com.sun.management
>> > > > >     Domain[2] = org.apache.qpid
>> > > > >     Domain[3] = java.lang
>> > > > >     Domain[4] = java.util.logging
>> > > > > ALL THE EXPOSED CLASSES
>> > > > > 29
>> > > > >
>> > =======================================================================
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.direct,ExchangeType=direct
>> > > > >
>> > =======================================================================
>> > > > > Name     amq.direct      java.lang.String
>> > > > > Durable     true      boolean
>> > > > > AutoDelete     false      boolean
>> > > > > ExchangeType     direct      java.lang.String
>> > > > > TicketNo     0      java.lang.Integer
>> > > > >
>> > =======================================================================
>> > > > > org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping
>> > > > >
>> > =======================================================================
>> > > > > Name     ping      java.lang.String
>> > > > > Owner     null      java.lang.String
>> > > > > Durable     false      boolean
>> > > > > AutoDelete     false      boolean
>> > > > > MessageCount     0      java.lang.Integer
>> > > > > QueueDepth     0      java.lang.Long
>> > > > > MaximumMessageSize     2117632      java.lang.Long
>> > > > > ConsumerCount     0      java.lang.Integer
>> > > > > ActiveConsumerCount     0      java.lang.Integer
>> > > > > ReceivedMessageCount     0      java.lang.Long
>> > > > > MaximumMessageCount     5000      java.lang.Long
>> > > > > MaximumQueueDepth     4136      java.lang.Long
>> > > > > MaximumMessageAge     600000      java.lang.Long
>> > > > >
>> > =======================================================================
>> > > > > org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=queue
>> > > > >
>> > =======================================================================
>> > > > > Name     queue      java.lang.String
>> > > > > Owner     null      java.lang.String
>> > > > > Durable     false      boolean
>> > > > > AutoDelete     false      boolean
>> > > > > MessageCount     0      java.lang.Integer
>> > > > > QueueDepth     0      java.lang.Long
>> > > > > MaximumMessageSize     2117632      java.lang.Long
>> > > > > ConsumerCount     0      java.lang.Integer
>> > > > > ActiveConsumerCount     0      java.lang.Integer
>> > > > > ReceivedMessageCount     0      java.lang.Long
>> > > > > MaximumMessageCount     5000      java.lang.Long
>> > > > > MaximumQueueDepth     4136      java.lang.Long
>> > > > > MaximumMessageAge     600000      java.lang.Long
>> > > > >
>> > =======================================================================
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.match,ExchangeType=headers
>> > > > >
>> > =======================================================================
>> > > > > Name     amq.match      java.lang.String
>> > > > > Durable     true      boolean
>> > > > > AutoDelete     false      boolean
>> > > > > ExchangeType     headers      java.lang.String
>> > > > > TicketNo     0      java.lang.Integer
>> > > > >
>> > =======================================================================
>> > > > >
>> > >
>> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=development,name=queue
>> > > > >
>> > =======================================================================
>> > > > > Name     queue      java.lang.String
>> > > > > Owner     null      java.lang.String
>> > > > > Durable     false      boolean
>> > > > > AutoDelete     false      boolean
>> > > > > MessageCount     0      java.lang.Integer
>> > > > > QueueDepth     0      java.lang.Long
>> > > > > MaximumMessageSize     2117632      java.lang.Long
>> > > > > ConsumerCount     0      java.lang.Integer
>> > > > > ActiveConsumerCount     0      java.lang.Integer
>> > > > > ReceivedMessageCount     0      java.lang.Long
>> > > > > MaximumMessageCount     5000      java.lang.Long
>> > > > > MaximumQueueDepth     4136      java.lang.Long
>> > > > > MaximumMessageAge     600000      java.lang.Long
>> > > > >
>> > =======================================================================
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.fanout,ExchangeType=fanout
>> > > > >
>> > =======================================================================
>> > > > > Name     amq.fanout      java.lang.String
>> > > > > Durable     true      boolean
>> > > > > AutoDelete     false      boolean
>> > > > > ExchangeType     fanout      java.lang.String
>> > > > > TicketNo     0      java.lang.Integer
>> > > > >
>> > =======================================================================
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=<<default>>,ExchangeType=direct
>> > > > >
>> > =======================================================================
>> > > > > Name     <<default>>      java.lang.String
>> > > > > Durable     true      boolean
>> > > > > AutoDelete     false      boolean
>> > > > > ExchangeType     direct      java.lang.String
>> > > > > TicketNo     0      java.lang.Integer
>> > > > >
>> > =======================================================================
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.match,ExchangeType=headers
>> > > > >
>> > =======================================================================
>> > > > > Name     amq.match      java.lang.String
>> > > > > Durable     true      boolean
>> > > > > AutoDelete     false      boolean
>> > > > > ExchangeType     headers      java.lang.String
>> > > > > TicketNo     0      java.lang.Integer
>> > > > >
>> > =======================================================================
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.topic,ExchangeType=topic
>> > > > >
>> > =======================================================================
>> > > > > Name     amq.topic      java.lang.String
>> > > > > Durable     true      boolean
>> > > > > AutoDelete     false      boolean
>> > > > > ExchangeType     topic      java.lang.String
>> > > > > TicketNo     0      java.lang.Integer
>> > > > >
>> > =======================================================================
>> > > > >
>> org.apache.qpid:type=VirtualHost.VirtualHostManager,VirtualHost=test
>> > > > >
>> > =======================================================================
>> > > > >
>> > =======================================================================
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=test.topic,ExchangeType=direct
>> > > > >
>> > =======================================================================
>> > > > > Name     test.topic      java.lang.String
>> > > > > Durable     false      boolean
>> > > > > AutoDelete     false      boolean
>> > > > > ExchangeType     direct      java.lang.String
>> > > > > TicketNo     0      java.lang.Integer
>> > > > >
>> > =======================================================================
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.direct,ExchangeType=direct
>> > > > >
>> > =======================================================================
>> > > > > Name     amq.direct      java.lang.String
>> > > > > Durable     true      boolean
>> > > > > AutoDelete     false      boolean
>> > > > > ExchangeType     direct      java.lang.String
>> > > > > TicketNo     0      java.lang.Integer
>> > > > >
>> > =======================================================================
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.topic,ExchangeType=topic
>> > > > >
>> > =======================================================================
>> > > > > Name     amq.topic      java.lang.String
>> > > > > Durable     true      boolean
>> > > > > AutoDelete     false      boolean
>> > > > > ExchangeType     topic      java.lang.String
>> > > > > TicketNo     0      java.lang.Integer
>> > > > >
>> > =======================================================================
>> > > > > org.apache.qpid:type=UserManagement,name=UserManagement
>> > > > >
>> > =======================================================================
>> > > > >
>> > =======================================================================
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.topic,ExchangeType=topic
>> > > > >
>> > =======================================================================
>> > > > > Name     amq.topic      java.lang.String
>> > > > > Durable     true      boolean
>> > > > > AutoDelete     false      boolean
>> > > > > ExchangeType     topic      java.lang.String
>> > > > > TicketNo     0      java.lang.Integer
>> > > > >
>> > =======================================================================
>> > > > >
>> > org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=ping
>> > > > >
>> > =======================================================================
>> > > > > Name     ping      java.lang.String
>> > > > > Owner     null      java.lang.String
>> > > > > Durable     false      boolean
>> > > > > AutoDelete     false      boolean
>> > > > > MessageCount     0      java.lang.Integer
>> > > > > QueueDepth     0      java.lang.Long
>> > > > > MaximumMessageSize     2117632      java.lang.Long
>> > > > > ConsumerCount     0      java.lang.Integer
>> > > > > ActiveConsumerCount     0      java.lang.Integer
>> > > > > ReceivedMessageCount     0      java.lang.Long
>> > > > > MaximumMessageCount     0      java.lang.Long
>> > > > > MaximumQueueDepth     4136      java.lang.Long
>> > > > > MaximumMessageAge     600000      java.lang.Long
>> > > > >
>> > =======================================================================
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=<<default>>,ExchangeType=direct
>> > > > >
>> > =======================================================================
>> > > > > Name     <<default>>      java.lang.String
>> > > > > Durable     true      boolean
>> > > > > AutoDelete     false      boolean
>> > > > > ExchangeType     direct      java.lang.String
>> > > > > TicketNo     0      java.lang.Integer
>> > > > >
>> > =======================================================================
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.fanout,ExchangeType=fanout
>> > > > >
>> > =======================================================================
>> > > > > Name     amq.fanout      java.lang.String
>> > > > > Durable     true      boolean
>> > > > > AutoDelete     false      boolean
>> > > > > ExchangeType     fanout      java.lang.String
>> > > > > TicketNo     0      java.lang.Integer
>> > > > >
>> > =======================================================================
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.qpid:type=VirtualHost.VirtualHostManager,VirtualHost=development
>> > > > >
>> > =======================================================================
>> > > > >
>> > =======================================================================
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=test-queue
>> > > > >
>> > =======================================================================
>> > > > > Name     test-queue      java.lang.String
>> > > > > Owner     null      java.lang.String
>> > > > > Durable     true      boolean
>> > > > > AutoDelete     false      boolean
>> > > > > MessageCount     0      java.lang.Integer
>> > > > > QueueDepth     0      java.lang.Long
>> > > > > MaximumMessageSize     2117632      java.lang.Long
>> > > > > ConsumerCount     0      java.lang.Integer
>> > > > > ActiveConsumerCount     0      java.lang.Integer
>> > > > > ReceivedMessageCount     0      java.lang.Long
>> > > > > MaximumMessageCount     0      java.lang.Long
>> > > > > MaximumQueueDepth     4136      java.lang.Long
>> > > > > MaximumMessageAge     600000      java.lang.Long
>> > > > >
>> > =======================================================================
>> > > > >
>> > >
>> org.apache.qpid:type=VirtualHost.VirtualHostManager,VirtualHost=localhost
>> > > > >
>> > =======================================================================
>> > > > >
>> > =======================================================================
>> > > > >
>> > org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=queue
>> > > > >
>> > =======================================================================
>> > > > > Name     queue      java.lang.String
>> > > > > Owner     null      java.lang.String
>> > > > > Durable     false      boolean
>> > > > > AutoDelete     false      boolean
>> > > > > MessageCount     0      java.lang.Integer
>> > > > > QueueDepth     0      java.lang.Long
>> > > > > MaximumMessageSize     2117632      java.lang.Long
>> > > > > ConsumerCount     0      java.lang.Integer
>> > > > > ActiveConsumerCount     0      java.lang.Integer
>> > > > > ReceivedMessageCount     0      java.lang.Long
>> > > > > MaximumMessageCount     0      java.lang.Long
>> > > > > MaximumQueueDepth     4136      java.lang.Long
>> > > > > MaximumMessageAge     600000      java.lang.Long
>> > > > >
>> > =======================================================================
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.direct,ExchangeType=direct
>> > > > >
>> > =======================================================================
>> > > > > Name     amq.direct      java.lang.String
>> > > > > Durable     true      boolean
>> > > > > AutoDelete     false      boolean
>> > > > > ExchangeType     direct      java.lang.String
>> > > > > TicketNo     0      java.lang.Integer
>> > > > >
>> > =======================================================================
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=test-ping
>> > > > >
>> > =======================================================================
>> > > > > Name     test-ping      java.lang.String
>> > > > > Owner     null      java.lang.String
>> > > > > Durable     false      boolean
>> > > > > AutoDelete     false      boolean
>> > > > > MessageCount     0      java.lang.Integer
>> > > > > QueueDepth     0      java.lang.Long
>> > > > > MaximumMessageSize     2117632      java.lang.Long
>> > > > > ConsumerCount     0      java.lang.Integer
>> > > > > ActiveConsumerCount     0      java.lang.Integer
>> > > > > ReceivedMessageCount     0      java.lang.Long
>> > > > > MaximumMessageCount     0      java.lang.Long
>> > > > > MaximumQueueDepth     4136      java.lang.Long
>> > > > > MaximumMessageAge     600000      java.lang.Long
>> > > > >
>> > =======================================================================
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=<<default>>,ExchangeType=direct
>> > > > >
>> > =======================================================================
>> > > > > Name     <<default>>      java.lang.String
>> > > > > Durable     true      boolean
>> > > > > AutoDelete     false      boolean
>> > > > > ExchangeType     direct      java.lang.String
>> > > > > TicketNo     0      java.lang.Integer
>> > > > >
>> > =======================================================================
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.fanout,ExchangeType=fanout
>> > > > >
>> > =======================================================================
>> > > > > Name     amq.fanout      java.lang.String
>> > > > > Durable     true      boolean
>> > > > > AutoDelete     false      boolean
>> > > > > ExchangeType     fanout      java.lang.String
>> > > > > TicketNo     0      java.lang.Integer
>> > > > >
>> > =======================================================================
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.match,ExchangeType=headers
>> > > > >
>> > =======================================================================
>> > > > > Name     amq.match      java.lang.String
>> > > > > Durable     true      boolean
>> > > > > AutoDelete     false      boolean
>> > > > > ExchangeType     headers      java.lang.String
>> > > > > TicketNo     0      java.lang.Integer
>> > > > >
>> > =======================================================================
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=test.direct,ExchangeType=direct
>> > > > >
>> > =======================================================================
>> > > > > Name     test.direct      java.lang.String
>> > > > > Durable     false      boolean
>> > > > > AutoDelete     false      boolean
>> > > > > ExchangeType     direct      java.lang.String
>> > > > > TicketNo     0      java.lang.Integer
>> > > > >
>> > =======================================================================
>> > > > >
>> > >
>> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=development,name=ping
>> > > > >
>> > =======================================================================
>> > > > > Name     ping      java.lang.String
>> > > > > Owner     null      java.lang.String
>> > > > > Durable     false      boolean
>> > > > > AutoDelete     false      boolean
>> > > > > MessageCount     0      java.lang.Integer
>> > > > > QueueDepth     0      java.lang.Long
>> > > > > MaximumMessageSize     2117632      java.lang.Long
>> > > > > ConsumerCount     0      java.lang.Integer
>> > > > > ActiveConsumerCount     0      java.lang.Integer
>> > > > > ReceivedMessageCount     0      java.lang.Long
>> > > > > MaximumMessageCount     5000      java.lang.Long
>> > > > > MaximumQueueDepth     4136      java.lang.Long
>> > > > > MaximumMessageAge     600000      java.lang.Long
>> > > > >
>> > > > > Close the connection to the server
>> > > > >
>> > > > > Bye! Bye!
>> > > > > lahiru@lahiru-laptop
>> > > > :~/IdeaProjects/jmxpractice/classes/production/jmxpractice$
>> > > > >
>> > > > >
>> > > > >
>> > >
>> =========================================================================
>> > > > > On Fri, May 9, 2008 at 8:35 PM, Aidan Skinner <ai...@apache.org>
>> > > wrote:
>> > > > >
>> > > > >> Hey Lahiru,
>> > > > >>
>> > > > >> the screenshot you sent was stripped by the mailing list, as it's
>> a
>> > > > >> command line it's probably best just to copy and paste the output
>> > into
>> > > > >> an email anyway.
>> > > > >>
>> > > > >> As for a next step, probably something quick like listing all the
>> > > > >> queues or the count on a specified queue.
>> > > > >
>> > > > > I think I have done what you are asking but I'm not sure if I'm
>> wrong
>> > > > > please let me know.
>> > > > > Could you please explain it some more and however I will try to
>> > > > understand
>> > > > > what you meant by that sentence.
>> > > > >
>> > > > > Thanks in advance
>> > > > >
>> > > > >
>> > > > > Regs
>> > > > > lahiru
>> > > > >
>> > > >
>> > > >
>> > > >
>> > > > --
>> > > > East or West
>> > > > Mahindians are the
>> > > > Best... !
>> > > >
>> > >
>> >
>> >
>> >
>> > --
>> > East or West
>> > Mahindians are the
>> > Best... !
>> >
>>
>
>
>
> --
> East or West
> Mahindians are the
> Best... !
>



-- 
East or West
Mahindians are the
Best... !

Re: GSoC - Lahiru's CLI for JMX

Posted by lahiru gunathilake <gl...@gmail.com>.
On Tue, Jun 10, 2008 at 9:29 PM, Marnie McCormack <
marnie.mccormack@googlemail.com> wrote:

> Hi Lahiru,
>
> I think I understand what you mean - basically the queues you're seeing via
> jConsole are those that are set up by default in the
> virtualhosts.xml/config.xml that come with the broker install.
>
> These queues are examples, and thus don't have many distinguishing
> characteristics like selectors etc (so they look like they're just
> differentiated by virtualhost). They also won't have consumers or messages
> I
> assume ?
>
Hopefully I was able to run samples in the directory
qpid-1.0-incubating-M2-src/java/client/example/src/main/java using
runSample.sh file. Is this the correct location..?
 Is that what you want me to do. If it is the thing could you please tell me
how should I monitor those queues. Do I have to use jconsole or any other
way to monitor those information.

Regards
Lahiru

>
> So, I think to get a real feel for the kind of data you'll see typically
> you
> possibly need to set up a client app to use the queues in a 'real life' way
> ? This would mean publishing to them, consuming from them etc.
>
> What do you think - does thistalk to your question ?
>
> Thanks & Regards,
> Marnie
>
> On 6/9/08, lahiru gunathilake <gl...@gmail.com> wrote:
> >
> > Hi marnie,
> >
> > Now I'm in a position of directly implementing list and info commands.
> > First
> > doing list command. I'm managing to do this as follows.
> >
> > list -o <object name>
> > Ex: list -o queue
> >
> > I'm going to implement all the command using standard way which is like
> for
> > any command user can give options with a "minus""option letter" <option
> > value>
> >
> > In here for all the queue objects there are number of properties so in
> your
> > example you are telling like
> > queue-1
> > queue-2
> > queue-3
> >
> > but more specifically what do you want to list. When I monitor using
> > jconsole there were three different queues those three differ only from
> > ObjectName all the other properties are same like ClassName /
> Discription.
> > In OjbectName there are few parts and from them VirtualHost is the only
> one
> > which differ.
> > It's like this
> > VirtualHost=development
> > VirtualHost=localhost
> > VirtualHost=test
> >
> > So when I list all the queues is it ok if I list those queue names like
> > this(listing those using VirtualHost attribute)
> >
> > development
> > localhost
> > test
> >
> > If you can't understand my problem let me know I can explain it with more
> > details.
> >
> > Thanks in advance
> >
> >
> > Regards
> > Lahiru
> >
> > On Thu, May 15, 2008 at 9:59 PM, Marnie McCormack <
> > marnie.mccormack@googlemail.com> wrote:
> >
> > > Hi Lahiru,
> > >
> > > Martin & Aidan & I are just discussing your project and here are some
> of
> > > our
> > > thoughts:
> > >
> > > - so we need a command line with options. Aidan suggests it looks like
> > > this:
> > >
> > >
> > > I was thinking something like
> > >
> > > $ qpid-admin --list-queues
> > > queue-1
> > > queue-2
> > > queue-3
> > >
> > > $ qpid-admin --queue-info queue-1
> > > Depth: 1 Count: 1 Subscribers: 0
> > >
> > > $ qpid-admin --queue-info --depth queue-1
> > > 1
> > >
> > > for timed reports for alerting you could put that in cron, or use
> > > watch for top/vmstat-esque action. I think it's probably a more
> > > natural interface than editing a properties file and would be
> > > something that we could apply to the C++ broker as well, which would
> > > be nice. Plus, it's quite UNIXy and lets people leverage things like
> > > awk.
> > >
> > >
> > > - I'd also like it to be configurable using a properties file, but it's
> > > probably worth getting list views on this for consensus
> > >
> > > - I think you're mainly on the right track, but I'd focus more on the
> > > useful attributes we expose rather than all variables of the objects
> > >
> > > Rgds,
> > > Marnie
> > >
> > > On 5/14/08, lahiru gunathilake <gl...@gmail.com> wrote:
> > >
> > > > Hi all,
> > > > Now I'm writing this output in to a file and this is running like a
> > > > thread(daemon) and it write different files time to time as Aiden
> > > discussed
> > > > with me.When I run the program it monitor the broker time to time
> (time
> > > > interval can be configured).
> > > >
> > > > Honestly this is not the actual code I'm developing I'm just writing
> > some
> > > > sample code to test and informing you what I'm doing and expecting a
> > feed
> > > > from you.
> > > >
> > > > Thanks in advance
> > > >
> > > > Regards
> > > > lahiru
> > > >
> > > > On Sun, May 11, 2008 at 9:00 AM, lahiru gunathilake <
> glahiru@gmail.com
> > >
> > > > wrote:
> > > >
> > > > > Hi Aiden,
> > > > >
> > > > > First thanks a lot for your reply I was waiting for a reply for few
> > > days
> > > > > hopefully.
> > > > > I did some modification to my program and I'm listing all the
> > > attributes
> > > > of
> > > > > all the mbeans which is having org.apache.qpid domain.
> > > > > Here's the output of my program....(I'm printing the attribute name
> > and
> > > > > value and type in a single line and for now I haven't done any
> > > > formattings
> > > > > with the output.
> > > > >
> > >
> ========================================================================
> > > > > Press <Enter> to continue...
> > > > >
> > > > > TOTAL MBEAN COUNT:   46
> > > > >
> > > > > DOMAINS:
> > > > >     Domain[0] = JMImplementation
> > > > >     Domain[1] = com.sun.management
> > > > >     Domain[2] = org.apache.qpid
> > > > >     Domain[3] = java.lang
> > > > >     Domain[4] = java.util.logging
> > > > > ALL THE EXPOSED CLASSES
> > > > > 29
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.direct,ExchangeType=direct
> > > > >
> > =======================================================================
> > > > > Name     amq.direct      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     direct      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > > org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping
> > > > >
> > =======================================================================
> > > > > Name     ping      java.lang.String
> > > > > Owner     null      java.lang.String
> > > > > Durable     false      boolean
> > > > > AutoDelete     false      boolean
> > > > > MessageCount     0      java.lang.Integer
> > > > > QueueDepth     0      java.lang.Long
> > > > > MaximumMessageSize     2117632      java.lang.Long
> > > > > ConsumerCount     0      java.lang.Integer
> > > > > ActiveConsumerCount     0      java.lang.Integer
> > > > > ReceivedMessageCount     0      java.lang.Long
> > > > > MaximumMessageCount     5000      java.lang.Long
> > > > > MaximumQueueDepth     4136      java.lang.Long
> > > > > MaximumMessageAge     600000      java.lang.Long
> > > > >
> > =======================================================================
> > > > > org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=queue
> > > > >
> > =======================================================================
> > > > > Name     queue      java.lang.String
> > > > > Owner     null      java.lang.String
> > > > > Durable     false      boolean
> > > > > AutoDelete     false      boolean
> > > > > MessageCount     0      java.lang.Integer
> > > > > QueueDepth     0      java.lang.Long
> > > > > MaximumMessageSize     2117632      java.lang.Long
> > > > > ConsumerCount     0      java.lang.Integer
> > > > > ActiveConsumerCount     0      java.lang.Integer
> > > > > ReceivedMessageCount     0      java.lang.Long
> > > > > MaximumMessageCount     5000      java.lang.Long
> > > > > MaximumQueueDepth     4136      java.lang.Long
> > > > > MaximumMessageAge     600000      java.lang.Long
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.match,ExchangeType=headers
> > > > >
> > =======================================================================
> > > > > Name     amq.match      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     headers      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > >
> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=development,name=queue
> > > > >
> > =======================================================================
> > > > > Name     queue      java.lang.String
> > > > > Owner     null      java.lang.String
> > > > > Durable     false      boolean
> > > > > AutoDelete     false      boolean
> > > > > MessageCount     0      java.lang.Integer
> > > > > QueueDepth     0      java.lang.Long
> > > > > MaximumMessageSize     2117632      java.lang.Long
> > > > > ConsumerCount     0      java.lang.Integer
> > > > > ActiveConsumerCount     0      java.lang.Integer
> > > > > ReceivedMessageCount     0      java.lang.Long
> > > > > MaximumMessageCount     5000      java.lang.Long
> > > > > MaximumQueueDepth     4136      java.lang.Long
> > > > > MaximumMessageAge     600000      java.lang.Long
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.fanout,ExchangeType=fanout
> > > > >
> > =======================================================================
> > > > > Name     amq.fanout      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     fanout      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=<<default>>,ExchangeType=direct
> > > > >
> > =======================================================================
> > > > > Name     <<default>>      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     direct      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.match,ExchangeType=headers
> > > > >
> > =======================================================================
> > > > > Name     amq.match      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     headers      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.topic,ExchangeType=topic
> > > > >
> > =======================================================================
> > > > > Name     amq.topic      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     topic      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> org.apache.qpid:type=VirtualHost.VirtualHostManager,VirtualHost=test
> > > > >
> > =======================================================================
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=test.topic,ExchangeType=direct
> > > > >
> > =======================================================================
> > > > > Name     test.topic      java.lang.String
> > > > > Durable     false      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     direct      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.direct,ExchangeType=direct
> > > > >
> > =======================================================================
> > > > > Name     amq.direct      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     direct      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.topic,ExchangeType=topic
> > > > >
> > =======================================================================
> > > > > Name     amq.topic      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     topic      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > > org.apache.qpid:type=UserManagement,name=UserManagement
> > > > >
> > =======================================================================
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.topic,ExchangeType=topic
> > > > >
> > =======================================================================
> > > > > Name     amq.topic      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     topic      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=ping
> > > > >
> > =======================================================================
> > > > > Name     ping      java.lang.String
> > > > > Owner     null      java.lang.String
> > > > > Durable     false      boolean
> > > > > AutoDelete     false      boolean
> > > > > MessageCount     0      java.lang.Integer
> > > > > QueueDepth     0      java.lang.Long
> > > > > MaximumMessageSize     2117632      java.lang.Long
> > > > > ConsumerCount     0      java.lang.Integer
> > > > > ActiveConsumerCount     0      java.lang.Integer
> > > > > ReceivedMessageCount     0      java.lang.Long
> > > > > MaximumMessageCount     0      java.lang.Long
> > > > > MaximumQueueDepth     4136      java.lang.Long
> > > > > MaximumMessageAge     600000      java.lang.Long
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=<<default>>,ExchangeType=direct
> > > > >
> > =======================================================================
> > > > > Name     <<default>>      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     direct      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.fanout,ExchangeType=fanout
> > > > >
> > =======================================================================
> > > > > Name     amq.fanout      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     fanout      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.VirtualHostManager,VirtualHost=development
> > > > >
> > =======================================================================
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=test-queue
> > > > >
> > =======================================================================
> > > > > Name     test-queue      java.lang.String
> > > > > Owner     null      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > MessageCount     0      java.lang.Integer
> > > > > QueueDepth     0      java.lang.Long
> > > > > MaximumMessageSize     2117632      java.lang.Long
> > > > > ConsumerCount     0      java.lang.Integer
> > > > > ActiveConsumerCount     0      java.lang.Integer
> > > > > ReceivedMessageCount     0      java.lang.Long
> > > > > MaximumMessageCount     0      java.lang.Long
> > > > > MaximumQueueDepth     4136      java.lang.Long
> > > > > MaximumMessageAge     600000      java.lang.Long
> > > > >
> > =======================================================================
> > > > >
> > >
> org.apache.qpid:type=VirtualHost.VirtualHostManager,VirtualHost=localhost
> > > > >
> > =======================================================================
> > > > >
> > =======================================================================
> > > > >
> > org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=queue
> > > > >
> > =======================================================================
> > > > > Name     queue      java.lang.String
> > > > > Owner     null      java.lang.String
> > > > > Durable     false      boolean
> > > > > AutoDelete     false      boolean
> > > > > MessageCount     0      java.lang.Integer
> > > > > QueueDepth     0      java.lang.Long
> > > > > MaximumMessageSize     2117632      java.lang.Long
> > > > > ConsumerCount     0      java.lang.Integer
> > > > > ActiveConsumerCount     0      java.lang.Integer
> > > > > ReceivedMessageCount     0      java.lang.Long
> > > > > MaximumMessageCount     0      java.lang.Long
> > > > > MaximumQueueDepth     4136      java.lang.Long
> > > > > MaximumMessageAge     600000      java.lang.Long
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.direct,ExchangeType=direct
> > > > >
> > =======================================================================
> > > > > Name     amq.direct      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     direct      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=test-ping
> > > > >
> > =======================================================================
> > > > > Name     test-ping      java.lang.String
> > > > > Owner     null      java.lang.String
> > > > > Durable     false      boolean
> > > > > AutoDelete     false      boolean
> > > > > MessageCount     0      java.lang.Integer
> > > > > QueueDepth     0      java.lang.Long
> > > > > MaximumMessageSize     2117632      java.lang.Long
> > > > > ConsumerCount     0      java.lang.Integer
> > > > > ActiveConsumerCount     0      java.lang.Integer
> > > > > ReceivedMessageCount     0      java.lang.Long
> > > > > MaximumMessageCount     0      java.lang.Long
> > > > > MaximumQueueDepth     4136      java.lang.Long
> > > > > MaximumMessageAge     600000      java.lang.Long
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=<<default>>,ExchangeType=direct
> > > > >
> > =======================================================================
> > > > > Name     <<default>>      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     direct      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.fanout,ExchangeType=fanout
> > > > >
> > =======================================================================
> > > > > Name     amq.fanout      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     fanout      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.match,ExchangeType=headers
> > > > >
> > =======================================================================
> > > > > Name     amq.match      java.lang.String
> > > > > Durable     true      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     headers      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=test.direct,ExchangeType=direct
> > > > >
> > =======================================================================
> > > > > Name     test.direct      java.lang.String
> > > > > Durable     false      boolean
> > > > > AutoDelete     false      boolean
> > > > > ExchangeType     direct      java.lang.String
> > > > > TicketNo     0      java.lang.Integer
> > > > >
> > =======================================================================
> > > > >
> > >
> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=development,name=ping
> > > > >
> > =======================================================================
> > > > > Name     ping      java.lang.String
> > > > > Owner     null      java.lang.String
> > > > > Durable     false      boolean
> > > > > AutoDelete     false      boolean
> > > > > MessageCount     0      java.lang.Integer
> > > > > QueueDepth     0      java.lang.Long
> > > > > MaximumMessageSize     2117632      java.lang.Long
> > > > > ConsumerCount     0      java.lang.Integer
> > > > > ActiveConsumerCount     0      java.lang.Integer
> > > > > ReceivedMessageCount     0      java.lang.Long
> > > > > MaximumMessageCount     5000      java.lang.Long
> > > > > MaximumQueueDepth     4136      java.lang.Long
> > > > > MaximumMessageAge     600000      java.lang.Long
> > > > >
> > > > > Close the connection to the server
> > > > >
> > > > > Bye! Bye!
> > > > > lahiru@lahiru-laptop
> > > > :~/IdeaProjects/jmxpractice/classes/production/jmxpractice$
> > > > >
> > > > >
> > > > >
> > >
> =========================================================================
> > > > > On Fri, May 9, 2008 at 8:35 PM, Aidan Skinner <ai...@apache.org>
> > > wrote:
> > > > >
> > > > >> Hey Lahiru,
> > > > >>
> > > > >> the screenshot you sent was stripped by the mailing list, as it's
> a
> > > > >> command line it's probably best just to copy and paste the output
> > into
> > > > >> an email anyway.
> > > > >>
> > > > >> As for a next step, probably something quick like listing all the
> > > > >> queues or the count on a specified queue.
> > > > >
> > > > > I think I have done what you are asking but I'm not sure if I'm
> wrong
> > > > > please let me know.
> > > > > Could you please explain it some more and however I will try to
> > > > understand
> > > > > what you meant by that sentence.
> > > > >
> > > > > Thanks in advance
> > > > >
> > > > >
> > > > > Regs
> > > > > lahiru
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > East or West
> > > > Mahindians are the
> > > > Best... !
> > > >
> > >
> >
> >
> >
> > --
> > East or West
> > Mahindians are the
> > Best... !
> >
>



-- 
East or West
Mahindians are the
Best... !

Re: GSoC - Lahiru's CLI for JMX

Posted by Marnie McCormack <ma...@googlemail.com>.
Hi Lahiru,

I think I understand what you mean - basically the queues you're seeing via
jConsole are those that are set up by default in the
virtualhosts.xml/config.xml that come with the broker install.

These queues are examples, and thus don't have many distinguishing
characteristics like selectors etc (so they look like they're just
differentiated by virtualhost). They also won't have consumers or messages I
assume ?

So, I think to get a real feel for the kind of data you'll see typically you
possibly need to set up a client app to use the queues in a 'real life' way
? This would mean publishing to them, consuming from them etc.

What do you think - does thistalk to your question ?

Thanks & Regards,
Marnie

On 6/9/08, lahiru gunathilake <gl...@gmail.com> wrote:
>
> Hi marnie,
>
> Now I'm in a position of directly implementing list and info commands.
> First
> doing list command. I'm managing to do this as follows.
>
> list -o <object name>
> Ex: list -o queue
>
> I'm going to implement all the command using standard way which is like for
> any command user can give options with a "minus""option letter" <option
> value>
>
> In here for all the queue objects there are number of properties so in your
> example you are telling like
> queue-1
> queue-2
> queue-3
>
> but more specifically what do you want to list. When I monitor using
> jconsole there were three different queues those three differ only from
> ObjectName all the other properties are same like ClassName / Discription.
> In OjbectName there are few parts and from them VirtualHost is the only one
> which differ.
> It's like this
> VirtualHost=development
> VirtualHost=localhost
> VirtualHost=test
>
> So when I list all the queues is it ok if I list those queue names like
> this(listing those using VirtualHost attribute)
>
> development
> localhost
> test
>
> If you can't understand my problem let me know I can explain it with more
> details.
>
> Thanks in advance
>
>
> Regards
> Lahiru
>
> On Thu, May 15, 2008 at 9:59 PM, Marnie McCormack <
> marnie.mccormack@googlemail.com> wrote:
>
> > Hi Lahiru,
> >
> > Martin & Aidan & I are just discussing your project and here are some of
> > our
> > thoughts:
> >
> > - so we need a command line with options. Aidan suggests it looks like
> > this:
> >
> >
> > I was thinking something like
> >
> > $ qpid-admin --list-queues
> > queue-1
> > queue-2
> > queue-3
> >
> > $ qpid-admin --queue-info queue-1
> > Depth: 1 Count: 1 Subscribers: 0
> >
> > $ qpid-admin --queue-info --depth queue-1
> > 1
> >
> > for timed reports for alerting you could put that in cron, or use
> > watch for top/vmstat-esque action. I think it's probably a more
> > natural interface than editing a properties file and would be
> > something that we could apply to the C++ broker as well, which would
> > be nice. Plus, it's quite UNIXy and lets people leverage things like
> > awk.
> >
> >
> > - I'd also like it to be configurable using a properties file, but it's
> > probably worth getting list views on this for consensus
> >
> > - I think you're mainly on the right track, but I'd focus more on the
> > useful attributes we expose rather than all variables of the objects
> >
> > Rgds,
> > Marnie
> >
> > On 5/14/08, lahiru gunathilake <gl...@gmail.com> wrote:
> >
> > > Hi all,
> > > Now I'm writing this output in to a file and this is running like a
> > > thread(daemon) and it write different files time to time as Aiden
> > discussed
> > > with me.When I run the program it monitor the broker time to time (time
> > > interval can be configured).
> > >
> > > Honestly this is not the actual code I'm developing I'm just writing
> some
> > > sample code to test and informing you what I'm doing and expecting a
> feed
> > > from you.
> > >
> > > Thanks in advance
> > >
> > > Regards
> > > lahiru
> > >
> > > On Sun, May 11, 2008 at 9:00 AM, lahiru gunathilake <glahiru@gmail.com
> >
> > > wrote:
> > >
> > > > Hi Aiden,
> > > >
> > > > First thanks a lot for your reply I was waiting for a reply for few
> > days
> > > > hopefully.
> > > > I did some modification to my program and I'm listing all the
> > attributes
> > > of
> > > > all the mbeans which is having org.apache.qpid domain.
> > > > Here's the output of my program....(I'm printing the attribute name
> and
> > > > value and type in a single line and for now I haven't done any
> > > formattings
> > > > with the output.
> > > >
> > ========================================================================
> > > > Press <Enter> to continue...
> > > >
> > > > TOTAL MBEAN COUNT:   46
> > > >
> > > > DOMAINS:
> > > >     Domain[0] = JMImplementation
> > > >     Domain[1] = com.sun.management
> > > >     Domain[2] = org.apache.qpid
> > > >     Domain[3] = java.lang
> > > >     Domain[4] = java.util.logging
> > > > ALL THE EXPOSED CLASSES
> > > > 29
> > > >
> =======================================================================
> > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.direct,ExchangeType=direct
> > > >
> =======================================================================
> > > > Name     amq.direct      java.lang.String
> > > > Durable     true      boolean
> > > > AutoDelete     false      boolean
> > > > ExchangeType     direct      java.lang.String
> > > > TicketNo     0      java.lang.Integer
> > > >
> =======================================================================
> > > > org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=ping
> > > >
> =======================================================================
> > > > Name     ping      java.lang.String
> > > > Owner     null      java.lang.String
> > > > Durable     false      boolean
> > > > AutoDelete     false      boolean
> > > > MessageCount     0      java.lang.Integer
> > > > QueueDepth     0      java.lang.Long
> > > > MaximumMessageSize     2117632      java.lang.Long
> > > > ConsumerCount     0      java.lang.Integer
> > > > ActiveConsumerCount     0      java.lang.Integer
> > > > ReceivedMessageCount     0      java.lang.Long
> > > > MaximumMessageCount     5000      java.lang.Long
> > > > MaximumQueueDepth     4136      java.lang.Long
> > > > MaximumMessageAge     600000      java.lang.Long
> > > >
> =======================================================================
> > > > org.apache.qpid:type=VirtualHost.Queue,VirtualHost=test,name=queue
> > > >
> =======================================================================
> > > > Name     queue      java.lang.String
> > > > Owner     null      java.lang.String
> > > > Durable     false      boolean
> > > > AutoDelete     false      boolean
> > > > MessageCount     0      java.lang.Integer
> > > > QueueDepth     0      java.lang.Long
> > > > MaximumMessageSize     2117632      java.lang.Long
> > > > ConsumerCount     0      java.lang.Integer
> > > > ActiveConsumerCount     0      java.lang.Integer
> > > > ReceivedMessageCount     0      java.lang.Long
> > > > MaximumMessageCount     5000      java.lang.Long
> > > > MaximumQueueDepth     4136      java.lang.Long
> > > > MaximumMessageAge     600000      java.lang.Long
> > > >
> =======================================================================
> > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.match,ExchangeType=headers
> > > >
> =======================================================================
> > > > Name     amq.match      java.lang.String
> > > > Durable     true      boolean
> > > > AutoDelete     false      boolean
> > > > ExchangeType     headers      java.lang.String
> > > > TicketNo     0      java.lang.Integer
> > > >
> =======================================================================
> > > >
> > org.apache.qpid:type=VirtualHost.Queue,VirtualHost=development,name=queue
> > > >
> =======================================================================
> > > > Name     queue      java.lang.String
> > > > Owner     null      java.lang.String
> > > > Durable     false      boolean
> > > > AutoDelete     false      boolean
> > > > MessageCount     0      java.lang.Integer
> > > > QueueDepth     0      java.lang.Long
> > > > MaximumMessageSize     2117632      java.lang.Long
> > > > ConsumerCount     0      java.lang.Integer
> > > > ActiveConsumerCount     0      java.lang.Integer
> > > > ReceivedMessageCount     0      java.lang.Long
> > > > MaximumMessageCount     5000      java.lang.Long
> > > > MaximumQueueDepth     4136      java.lang.Long
> > > > MaximumMessageAge     600000      java.lang.Long
> > > >
> =======================================================================
> > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.fanout,ExchangeType=fanout
> > > >
> =======================================================================
> > > > Name     amq.fanout      java.lang.String
> > > > Durable     true      boolean
> > > > AutoDelete     false      boolean
> > > > ExchangeType     fanout      java.lang.String
> > > > TicketNo     0      java.lang.Integer
> > > >
> =======================================================================
> > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=<<default>>,ExchangeType=direct
> > > >
> =======================================================================
> > > > Name     <<default>>      java.lang.String
> > > > Durable     true      boolean
> > > > AutoDelete     false      boolean
> > > > ExchangeType     direct      java.lang.String
> > > > TicketNo     0      java.lang.Integer
> > > >
> =======================================================================
> > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.match,ExchangeType=headers
> > > >
> =======================================================================
> > > > Name     amq.match      java.lang.String
> > > > Durable     true      boolean
> > > > AutoDelete     false      boolean
> > > > ExchangeType     headers      java.lang.String
> > > > TicketNo     0      java.lang.Integer
> > > >
> =======================================================================
> > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.topic,ExchangeType=topic
> > > >
> =======================================================================
> > > > Name     amq.topic      java.lang.String
> > > > Durable     true      boolean
> > > > AutoDelete     false      boolean
> > > > ExchangeType     topic      java.lang.String
> > > > TicketNo     0      java.lang.Integer
> > > >
> =======================================================================
> > > > org.apache.qpid:type=VirtualHost.VirtualHostManager,VirtualHost=test
> > > >
> =======================================================================
> > > >
> =======================================================================
> > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=test.topic,ExchangeType=direct
> > > >
> =======================================================================
> > > > Name     test.topic      java.lang.String
> > > > Durable     false      boolean
> > > > AutoDelete     false      boolean
> > > > ExchangeType     direct      java.lang.String
> > > > TicketNo     0      java.lang.Integer
> > > >
> =======================================================================
> > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.direct,ExchangeType=direct
> > > >
> =======================================================================
> > > > Name     amq.direct      java.lang.String
> > > > Durable     true      boolean
> > > > AutoDelete     false      boolean
> > > > ExchangeType     direct      java.lang.String
> > > > TicketNo     0      java.lang.Integer
> > > >
> =======================================================================
> > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.topic,ExchangeType=topic
> > > >
> =======================================================================
> > > > Name     amq.topic      java.lang.String
> > > > Durable     true      boolean
> > > > AutoDelete     false      boolean
> > > > ExchangeType     topic      java.lang.String
> > > > TicketNo     0      java.lang.Integer
> > > >
> =======================================================================
> > > > org.apache.qpid:type=UserManagement,name=UserManagement
> > > >
> =======================================================================
> > > >
> =======================================================================
> > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.topic,ExchangeType=topic
> > > >
> =======================================================================
> > > > Name     amq.topic      java.lang.String
> > > > Durable     true      boolean
> > > > AutoDelete     false      boolean
> > > > ExchangeType     topic      java.lang.String
> > > > TicketNo     0      java.lang.Integer
> > > >
> =======================================================================
> > > >
> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=ping
> > > >
> =======================================================================
> > > > Name     ping      java.lang.String
> > > > Owner     null      java.lang.String
> > > > Durable     false      boolean
> > > > AutoDelete     false      boolean
> > > > MessageCount     0      java.lang.Integer
> > > > QueueDepth     0      java.lang.Long
> > > > MaximumMessageSize     2117632      java.lang.Long
> > > > ConsumerCount     0      java.lang.Integer
> > > > ActiveConsumerCount     0      java.lang.Integer
> > > > ReceivedMessageCount     0      java.lang.Long
> > > > MaximumMessageCount     0      java.lang.Long
> > > > MaximumQueueDepth     4136      java.lang.Long
> > > > MaximumMessageAge     600000      java.lang.Long
> > > >
> =======================================================================
> > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=<<default>>,ExchangeType=direct
> > > >
> =======================================================================
> > > > Name     <<default>>      java.lang.String
> > > > Durable     true      boolean
> > > > AutoDelete     false      boolean
> > > > ExchangeType     direct      java.lang.String
> > > > TicketNo     0      java.lang.Integer
> > > >
> =======================================================================
> > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.fanout,ExchangeType=fanout
> > > >
> =======================================================================
> > > > Name     amq.fanout      java.lang.String
> > > > Durable     true      boolean
> > > > AutoDelete     false      boolean
> > > > ExchangeType     fanout      java.lang.String
> > > > TicketNo     0      java.lang.Integer
> > > >
> =======================================================================
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.VirtualHostManager,VirtualHost=development
> > > >
> =======================================================================
> > > >
> =======================================================================
> > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=test-queue
> > > >
> =======================================================================
> > > > Name     test-queue      java.lang.String
> > > > Owner     null      java.lang.String
> > > > Durable     true      boolean
> > > > AutoDelete     false      boolean
> > > > MessageCount     0      java.lang.Integer
> > > > QueueDepth     0      java.lang.Long
> > > > MaximumMessageSize     2117632      java.lang.Long
> > > > ConsumerCount     0      java.lang.Integer
> > > > ActiveConsumerCount     0      java.lang.Integer
> > > > ReceivedMessageCount     0      java.lang.Long
> > > > MaximumMessageCount     0      java.lang.Long
> > > > MaximumQueueDepth     4136      java.lang.Long
> > > > MaximumMessageAge     600000      java.lang.Long
> > > >
> =======================================================================
> > > >
> > org.apache.qpid:type=VirtualHost.VirtualHostManager,VirtualHost=localhost
> > > >
> =======================================================================
> > > >
> =======================================================================
> > > >
> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=queue
> > > >
> =======================================================================
> > > > Name     queue      java.lang.String
> > > > Owner     null      java.lang.String
> > > > Durable     false      boolean
> > > > AutoDelete     false      boolean
> > > > MessageCount     0      java.lang.Integer
> > > > QueueDepth     0      java.lang.Long
> > > > MaximumMessageSize     2117632      java.lang.Long
> > > > ConsumerCount     0      java.lang.Integer
> > > > ActiveConsumerCount     0      java.lang.Integer
> > > > ReceivedMessageCount     0      java.lang.Long
> > > > MaximumMessageCount     0      java.lang.Long
> > > > MaximumQueueDepth     4136      java.lang.Long
> > > > MaximumMessageAge     600000      java.lang.Long
> > > >
> =======================================================================
> > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=amq.direct,ExchangeType=direct
> > > >
> =======================================================================
> > > > Name     amq.direct      java.lang.String
> > > > Durable     true      boolean
> > > > AutoDelete     false      boolean
> > > > ExchangeType     direct      java.lang.String
> > > > TicketNo     0      java.lang.Integer
> > > >
> =======================================================================
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Queue,VirtualHost=localhost,name=test-ping
> > > >
> =======================================================================
> > > > Name     test-ping      java.lang.String
> > > > Owner     null      java.lang.String
> > > > Durable     false      boolean
> > > > AutoDelete     false      boolean
> > > > MessageCount     0      java.lang.Integer
> > > > QueueDepth     0      java.lang.Long
> > > > MaximumMessageSize     2117632      java.lang.Long
> > > > ConsumerCount     0      java.lang.Integer
> > > > ActiveConsumerCount     0      java.lang.Integer
> > > > ReceivedMessageCount     0      java.lang.Long
> > > > MaximumMessageCount     0      java.lang.Long
> > > > MaximumQueueDepth     4136      java.lang.Long
> > > > MaximumMessageAge     600000      java.lang.Long
> > > >
> =======================================================================
> > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=test,name=<<default>>,ExchangeType=direct
> > > >
> =======================================================================
> > > > Name     <<default>>      java.lang.String
> > > > Durable     true      boolean
> > > > AutoDelete     false      boolean
> > > > ExchangeType     direct      java.lang.String
> > > > TicketNo     0      java.lang.Integer
> > > >
> =======================================================================
> > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=amq.fanout,ExchangeType=fanout
> > > >
> =======================================================================
> > > > Name     amq.fanout      java.lang.String
> > > > Durable     true      boolean
> > > > AutoDelete     false      boolean
> > > > ExchangeType     fanout      java.lang.String
> > > > TicketNo     0      java.lang.Integer
> > > >
> =======================================================================
> > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=development,name=amq.match,ExchangeType=headers
> > > >
> =======================================================================
> > > > Name     amq.match      java.lang.String
> > > > Durable     true      boolean
> > > > AutoDelete     false      boolean
> > > > ExchangeType     headers      java.lang.String
> > > > TicketNo     0      java.lang.Integer
> > > >
> =======================================================================
> > > >
> > > >
> > >
> >
> org.apache.qpid:type=VirtualHost.Exchange,VirtualHost=localhost,name=test.direct,ExchangeType=direct
> > > >
> =======================================================================
> > > > Name     test.direct      java.lang.String
> > > > Durable     false      boolean
> > > > AutoDelete     false      boolean
> > > > ExchangeType     direct      java.lang.String
> > > > TicketNo     0      java.lang.Integer
> > > >
> =======================================================================
> > > >
> > org.apache.qpid:type=VirtualHost.Queue,VirtualHost=development,name=ping
> > > >
> =======================================================================
> > > > Name     ping      java.lang.String
> > > > Owner     null      java.lang.String
> > > > Durable     false      boolean
> > > > AutoDelete     false      boolean
> > > > MessageCount     0      java.lang.Integer
> > > > QueueDepth     0      java.lang.Long
> > > > MaximumMessageSize     2117632      java.lang.Long
> > > > ConsumerCount     0      java.lang.Integer
> > > > ActiveConsumerCount     0      java.lang.Integer
> > > > ReceivedMessageCount     0      java.lang.Long
> > > > MaximumMessageCount     5000      java.lang.Long
> > > > MaximumQueueDepth     4136      java.lang.Long
> > > > MaximumMessageAge     600000      java.lang.Long
> > > >
> > > > Close the connection to the server
> > > >
> > > > Bye! Bye!
> > > > lahiru@lahiru-laptop
> > > :~/IdeaProjects/jmxpractice/classes/production/jmxpractice$
> > > >
> > > >
> > > >
> > =========================================================================
> > > > On Fri, May 9, 2008 at 8:35 PM, Aidan Skinner <ai...@apache.org>
> > wrote:
> > > >
> > > >> Hey Lahiru,
> > > >>
> > > >> the screenshot you sent was stripped by the mailing list, as it's a
> > > >> command line it's probably best just to copy and paste the output
> into
> > > >> an email anyway.
> > > >>
> > > >> As for a next step, probably something quick like listing all the
> > > >> queues or the count on a specified queue.
> > > >
> > > > I think I have done what you are asking but I'm not sure if I'm wrong
> > > > please let me know.
> > > > Could you please explain it some more and however I will try to
> > > understand
> > > > what you meant by that sentence.
> > > >
> > > > Thanks in advance
> > > >
> > > >
> > > > Regs
> > > > lahiru
> > > >
> > >
> > >
> > >
> > > --
> > > East or West
> > > Mahindians are the
> > > Best... !
> > >
> >
>
>
>
> --
> East or West
> Mahindians are the
> Best... !
>