java/kudu-client/src/test/java/org/apache/kudu/client/MiniKuduCluster.java
public void restartDeadMasters() throws IOException {
    List<HostAndPort> toRestart = Lists.newArrayList();
    for (Map.Entry<HostAndPort, DaemonInfo> e : masters.entrySet()) {
      if (!e.getValue().isRunning) {
        toRestart.add(e.getKey());
      }
    }
    for (HostAndPort hp : toRestart) {
      restartDeadMasterOnHostPort(hp);
    }
  }
/**
   * Starts all currently stopped masters.
   * @throws IOException if something went wrong in transit
   */
Starts all currently stopped masters.
@throws IOException if something went wrong in transit
Starts all currently stopped masters . @throws IOException if something went wrong in transit
public void restartDeadMasters() throws IOException {
    List<HostAndPort> toRestart = Lists.newArrayList();
    for (Map.Entry<HostAndPort, DaemonInfo> e : masters.entrySet()) {
      if (!e.getValue().isRunning) {
        toRestart.add(e.getKey());
      }
    }
    for (HostAndPort hp : toRestart) {
      restartDeadMasterOnHostPort(hp);
    }
  }
public void restartDeadMasters ( ) throws IOException { List < HostAndPort > toRestart = Lists . newArrayList ( ) ; for ( Map . Entry < HostAndPort , DaemonInfo > e : masters . entrySet ( ) ) { if ( ! e . getValue ( ) . isRunning ) { toRestart . add ( e . getKey ( ) ) ; } } for ( HostAndPort hp : toRestart ) { restartDeadMasterOnHostPort ( hp ) ; } }
Starts all currently stopped masters.
Starts all currently stopped masters .