public List < Diagnostic > diagnoseApplication ( String applicationName ) { this . logger . finer ( "Diagnosing application " + applicationName ) ; WebResource path = this . resource . path ( UrlConstants . DEBUG ) . path ( "diagnose-application" ) ; path = path . queryParam ( "application-name" , applicationName ) ; List < Diagnostic > result = this . wsClient . createBuilder ( path ) . accept ( MediaType . APPLICATION_JSON ) . get ( new GenericType < List < Diagnostic > > ( ) { } ) ; if ( result == null ) this . logger . finer ( "No diagnostic was returned for application " + applicationName ) ; return result ; }
Runs a diagnostic for a given application .