public void stopThread(){
  this.stopUpdates=true;
  try {
    join();
  }
 catch (  InterruptedException e) {
    if (LOGGER.infoEnabled()) {
      LOGGER.info("InterruptedException occured while stoping cluster thread : " + e.getMessage());
    }
  }
}

public void stopThread ( ) { this . stopUpdates = true ; try { join ( ) ; } catch ( InterruptedException e ) { if ( LOGGER . infoEnabled ( ) ) { LOGGER . info ( "InterruptedException occured while stoping cluster thread : " + e . getMessage ( ) ) ; } } }
for stopping the update thread
