def wait_until_master
      logger.info('Waiting to become master Node Manager ...')

      with_lock do
        @master_manager = true
        logger.info('Acquired master Node Manager lock.')
        logger.info("Configured node strategy #{@node_strategy.class}")
        logger.info("Configured failover strategy #{@failover_strategy.class}")
        logger.info("Required Node Managers to make a decision: #{@required_node_managers}")
        manage_nodes
      end
    end
def wait_until_master
      logger.info('Waiting to become master Node Manager ...')

      with_lock do
        @master_manager = true
        logger.info('Acquired master Node Manager lock.')
        logger.info("Configured node strategy #{@node_strategy.class}")
        logger.info("Configured failover strategy #{@failover_strategy.class}")
        logger.info("Required Node Managers to make a decision: #{@required_node_managers}")
        manage_nodes
      end
    end
Waits until this node manager becomes the master.