ProcessUtil

public class ProcessUtil
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.ProcessUtil


Podsumowanie

Stałe

int DEFAULT_ADB_PORT

String DEFAULT_LOCAL_HOST

Publiczne konstruktory

ProcessUtil()

Metody publiczne

static Process createSshTunnel(String remoteHost, int localPort, int remotePort, File sshPrivateKeyPath, String user, File sshTunnelLog, IRunUtil runUtil)

Utwórz tunel SSH do danego hosta zdalnego i zwróć proces.

Stałe

DEFAULT_ADB_PORT

public static final int DEFAULT_ADB_PORT

Constant Value: 5555 (0x000015b3)

DEFAULT_LOCAL_HOST

public static final String DEFAULT_LOCAL_HOST

Constant Value: "127.0.0.1:%d"

Publiczne konstruktory

ProcessUtil

public ProcessUtil ()

Metody publiczne

createSshTunnel

public static Process createSshTunnel (String remoteHost, 
                int localPort, 
                int remotePort, 
                File sshPrivateKeyPath, 
                String user, 
                File sshTunnelLog, 
                IRunUtil runUtil)

Utwórz tunel SSH do danego hosta zdalnego i zwróć proces.

Parametry
remoteHost String: nazwa hosta lub adres IP zdalnego urządzenia z Androidem.

localPort int: port lokalnego urządzenia TCP/IP.

remotePort int: port zdalnego urządzenia IP TCP.

sshPrivateKeyPath File

user String

sshTunnelLog File

runUtil IRunUtil

Zwroty
Process Process polecenia ssh.