java/kudu-client/src/test/java/org/apache/kudu/client/MiniKuduCluster.java
public void killMasterOnHostPort(HostAndPort hp) throws IOException {
    DaemonInfo d = masters.get(hp);
    if (d == null) {
      throw new IOException(String.format("Master %s not found", hp));
    }
    if (!d.isRunning) {
      return;
    }
    sendRequestToCluster(ControlShellRequestPB.newBuilder()
        .setStopDaemon(StopDaemonRequestPB.newBuilder().setId(d.id).build())
        .build());
    d.isRunning = false;
  }
/**
   * Kills a master identified by hostname and port. Does nothing if the master
   * was already dead.
   * @param hp unique hostname and port identifying the master
   * @throws IOException if something went wrong in transit
   */
Kills a master identified by hostname and port. Does nothing if the master
was already dead.
@param hp unique hostname and port identifying the master
@throws IOException if something went wrong in transit
Kills a master identified by hostname and port . Does nothing if the master was already dead . @param hp unique hostname and port identifying the master @throws IOException if something went wrong in transit
public void killMasterOnHostPort(HostAndPort hp) throws IOException {
    DaemonInfo d = masters.get(hp);
    if (d == null) {
      throw new IOException(String.format("Master %s not found", hp));
    }
    if (!d.isRunning) {
      return;
    }
    sendRequestToCluster(ControlShellRequestPB.newBuilder()
        .setStopDaemon(StopDaemonRequestPB.newBuilder().setId(d.id).build())
        .build());
    d.isRunning = false;
  }
public void killMasterOnHostPort ( HostAndPort hp ) throws IOException { DaemonInfo d = masters . get ( hp ) ; if ( d == null ) { throw new IOException ( String . format ( "Master %s not found" , hp ) ) ; } if ( ! d . isRunning ) { return ; } sendRequestToCluster ( ControlShellRequestPB . newBuilder ( ) . setStopDaemon ( StopDaemonRequestPB . newBuilder ( ) . setId ( d . id ) . build ( ) ) . build ( ) ) ; d . isRunning = false ; }
Kills a master identified by hostname and port.
Kills a master identified by hostname and port .