public boolean isSuspended(ServiceType service, String hostname, int port) throws IOException {
    String ret =
      execWithRetries(hostname, service, getCommandProvider(service).getStateCommand(service))
        .getSecond();
    return ret != null && ret.trim().equals("T");
  }
Execute the given command on the host using SSH
@return pair of exit code and command output
@throws IOException if something goes wrong.
hbase-it/src/test/java/org/apache/hadoop/hbase/HBaseClusterManager.java