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
|
Konstruktory publiczne | |
|---|---|
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
Wartość stała: 5555 (0x000015b3)
DEFAULT_LOCAL_HOST
public static final String DEFAULT_LOCAL_HOST
Wartość stała: "127.0.0.1:%d"
Konstruktory publiczne
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 |
| Zwraca | |
|---|---|
Process |
Process polecenia ssh. |