void updateCatalog ( String diffCmds , CatalogContext context ) { if ( m_shuttingDown ) { return ; } m_catalogContext = context ; // Wipe out all the idle sites with stale catalogs. // Non-idle sites will get killed and replaced when they finish // whatever they started before the catalog update Iterator < MpRoSiteContext > siterator = m_idleSites . iterator ( ) ; while ( siterator . hasNext ( ) ) { MpRoSiteContext site = siterator . next ( ) ; if ( site . getCatalogCRC ( ) != m_catalogContext . getCatalogCRC ( ) || site . getCatalogVersion ( ) != m_catalogContext . catalogVersion ) { site . shutdown ( ) ; m_idleSites . remove ( site ) ; m_allSites . remove ( site ) ; } } }
Update the catalog