Package alluxio.shell

Class SshCommand


  • @NotThreadSafe
    public class SshCommand
    extends ShellCommand
    Object representation of a remote shell command by SSH.
    • Constructor Summary

      Constructors 
      Constructor Description
      SshCommand​(java.lang.String hostname, java.lang.String[] execString)
      Creates a SshCommand instance from the remote hostname and command.
    • Constructor Detail

      • SshCommand

        public SshCommand​(java.lang.String hostname,
                          java.lang.String[] execString)
        Creates a SshCommand instance from the remote hostname and command.
        Parameters:
        hostname - the remote target hostname
        execString - the command to execute
    • Method Detail

      • getHostName

        public java.lang.String getHostName()
        Returns the remote target hostname.
        Returns:
        target hostname