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