broker queue length

hi…
i have a task that i need to check Broker queue length continously and have to show in graph…can any body please help me how to find broker queue length??

thanks in advance

You can use API’s.

Class: BrokerClient
Method: getQueueLength()

-Senthil