public synchronized void updateServer ( String originalName , HadoopServer server ) { // Update the map if the location name has changed if ( ! server . getLocationName ( ) . equals ( originalName ) ) { servers . remove ( originalName ) ; servers . put ( server . getLocationName ( ) , server ) ; } store ( ) ; fireListeners ( server , SERVER_STATE_CHANGED ) ; }
Update one Hadoop location