@Override public void run(){
  while (isLeader.get()) {
    try {
      checkRecoveryStatus();
      checkClusterStatus();
      runNodeRecovery();
    }
 catch (    Exception e) {
      log.warn("Internal error of Recovery manager: ",e.getMessage());
    }
  }
}

@ Override public void run ( ) { while ( isLeader . get ( ) ) { try { checkRecoveryStatus ( ) ; checkClusterStatus ( ) ; runNodeRecovery ( ) ; } catch ( Exception e ) { log . warn ( "Internal error of Recovery manager: " , e . getMessage ( ) ) ; } } }
main loop of recovery manager . execute node recovery in case that it is elected as leader .
