ProcessUtil
public
class
ProcessUtil
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.util.ProcessUtil |
Zusammenfassung
Konstanten | |
|---|---|
int |
DEFAULT_ADB_PORT
|
String |
DEFAULT_LOCAL_HOST
|
Öffentliche Konstruktoren | |
|---|---|
ProcessUtil()
|
|
Öffentliche Methoden | |
|---|---|
static
Process
|
createSshTunnel(String remoteHost, int localPort, int remotePort, File sshPrivateKeyPath, String user, File sshTunnelLog, IRunUtil runUtil)
Erstelle einen SSH-Tunnel zu einem bestimmten Remote-Host und gib den Prozess zurück. |
Konstanten
DEFAULT_ADB_PORT
public static final int DEFAULT_ADB_PORT
Konstanter Wert: 5555 (0x000015b3)
DEFAULT_LOCAL_HOST
public static final String DEFAULT_LOCAL_HOST
Constant Value: "127.0.0.1:%d"
Öffentliche Konstruktoren
ProcessUtil
public ProcessUtil ()
Öffentliche Methoden
createSshTunnel
public static Process createSshTunnel (String remoteHost,
int localPort,
int remotePort,
File sshPrivateKeyPath,
String user,
File sshTunnelLog,
IRunUtil runUtil)Erstelle einen SSH-Tunnel zu einem bestimmten Remote-Host und gib den Prozess zurück.
| Parameter | |
|---|---|
remoteHost |
String: Der Hostname/die IP-Adresse des Android-Geräts mit Remote-TCP/IP. |
localPort |
int: Der Port des lokalen TCP/IP-Geräts. |
remotePort |
int: Der Port des Remote-TCP/IP-Geräts. |
sshPrivateKeyPath |
File |
user |
String |
sshTunnelLog |
File |
runUtil |
IRunUtil |
| Returns | |
|---|---|
Process |
Process des SSH-Befehls. |