void performRun ( IntegrationOperation operation ) { for ( Map . Entry < String , Integration < ? > > entry : integrations . entrySet ( ) ) { String key = entry . getKey ( ) ; long startTime = System . nanoTime ( ) ; operation . run ( key , entry . getValue ( ) , projectSettings ) ; long endTime = System . nanoTime ( ) ; long durationInMillis = TimeUnit . NANOSECONDS . toMillis ( endTime - startTime ) ; stats . dispatchIntegrationOperation ( key , durationInMillis ) ; logger . debug ( "Ran %s on integration %s in %d ns." , operation , key , endTime - startTime ) ; } }
Runs the given operation on all integrations .