public Result execute ( Query query ) throws SonarBreakException , IOException { URL queryURL = buildURL ( sonarURL , query ) ; log . debug ( "Built a sonar query url of: " + queryURL . toString ( ) ) ; if ( ! isURLAvailable ( sonarURL , SONAR_CONNECTION_RETRIES ) ) { throw new SonarBreakException ( String . format ( "Unable to get a valid response after %d tries" , SONAR_CONNECTION_RETRIES ) ) ; } return fetchSonarStatusWithRetries ( queryURL , query . getVersion ( ) ) ; }
Execute the given query on the specified sonar server .