protected String startMonitoring ( ) { String result ; if ( ! this . started . getAndSet ( true ) ) { synchronized ( this . brokerPollerMap ) { for ( ActiveMQBrokerPoller onePoller : this . brokerPollerMap . values ( ) ) { onePoller . start ( ) ; } } result = "started" ; } else { result = "already running" ; } return result ; }
Start monitoring now .