java/kudu-client/src/test/java/org/apache/kudu/client/MiniKuduCluster.java
public void restartDeadTabletServerOnHostPort(HostAndPort hp) throws IOException {
    DaemonInfo d = tservers.get(hp);
    if (d == null) {
      throw new IOException(String.format("Tserver %s not found", hp));
    }
    if (d.isRunning) {
      throw new IOException(String.format("Tserver %s is already running", hp));
    }
    sendRequestToCluster(ControlShellRequestPB.newBuilder()
        .setStartDaemon(StartDaemonRequestPB.newBuilder().setId(d.id).build())
        .build());
    d.isRunning = true;
  }
/**
   * Restarts a tserver identified by hostname and port. The tserver must already be dead.
   * @param hp unique hostname and port identifying the tserver
   * @throws IOException if the tserver is believed to be alive
   */
Restarts a tserver identified by hostname and port. The tserver must already be dead.
@param hp unique hostname and port identifying the tserver
@throws IOException if the tserver is believed to be alive
Restarts a tserver identified by hostname and port . The tserver must already be dead . @param hp unique hostname and port identifying the tserver @throws IOException if the tserver is believed to be alive
public void restartDeadTabletServerOnHostPort(HostAndPort hp) throws IOException {
    DaemonInfo d = tservers.get(hp);
    if (d == null) {
      throw new IOException(String.format("Tserver %s not found", hp));
    }
    if (d.isRunning) {
      throw new IOException(String.format("Tserver %s is already running", hp));
    }
    sendRequestToCluster(ControlShellRequestPB.newBuilder()
        .setStartDaemon(StartDaemonRequestPB.newBuilder().setId(d.id).build())
        .build());
    d.isRunning = true;
  }
public void restartDeadTabletServerOnHostPort ( HostAndPort hp ) throws IOException { DaemonInfo d = tservers . get ( hp ) ; if ( d == null ) { throw new IOException ( String . format ( "Tserver %s not found" , hp ) ) ; } if ( d . isRunning ) { throw new IOException ( String . format ( "Tserver %s is already running" , hp ) ) ; } sendRequestToCluster ( ControlShellRequestPB . newBuilder ( ) . setStartDaemon ( StartDaemonRequestPB . newBuilder ( ) . setId ( d . id ) . build ( ) ) . build ( ) ) ; d . isRunning = true ; }
Restarts a tserver identified by hostname and port.
Restarts a tserver identified by hostname and port .