public synchronized void onTimer ( ) { CruiseConfig currentConfig = applicationContext . getBean ( CruiseConfigProvider . class ) . getCurrentConfig ( ) ; purgeStaleHealthMessages ( currentConfig ) ; LOG . debug ( "Recomputing material to pipeline mappings." ) ; HashMap < ServerHealthState , Set < String > > erroredPipelines = new HashMap <> ( ) ; for ( Map . Entry < HealthStateType , ServerHealthState > entry : serverHealth . entrySet ( ) ) { erroredPipelines . put ( entry . getValue ( ) , entry . getValue ( ) . getPipelineNames ( currentConfig ) ) ; } pipelinesWithErrors = erroredPipelines ; LOG . debug ( "Done recomputing material to pipeline mappings." ) ; }
called from spring timer