Broker connection

Hi
How can i know the Broker is Connected or not?
Can any one can give me the service name for Broker Connection Status.

Thanks,

WmRoot/wm.server.dispatcher:getBrokerSettings

Keep in mind that this service is not documented and is not intended for our use.

What is driving the need to know the Broker connection status programmatically?