ProcessUtil
public
class
ProcessUtil
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.util.ProcessUtil |
Ringkasan
Konstanta | |
|---|---|
int |
DEFAULT_ADB_PORT
|
String |
DEFAULT_LOCAL_HOST
|
Konstruktor publik | |
|---|---|
ProcessUtil()
|
|
Metode publik | |
|---|---|
static
Process
|
createSshTunnel(String remoteHost, int localPort, int remotePort, File sshPrivateKeyPath, String user, File sshTunnelLog, IRunUtil runUtil)
Buat tunnel SSH ke host jarak jauh tertentu dan tampilkan prosesnya. |
Konstanta
DEFAULT_ADB_PORT
public static final int DEFAULT_ADB_PORT
Nilai Konstanta: 5555 (0x000015b3)
DEFAULT_LOCAL_HOST
public static final String DEFAULT_LOCAL_HOST
Nilai Konstanta: "127.0.0.1:%d"
Konstruktor publik
ProcessUtil
public ProcessUtil ()
Metode publik
createSshTunnel
public static Process createSshTunnel (String remoteHost,
int localPort,
int remotePort,
File sshPrivateKeyPath,
String user,
File sshTunnelLog,
IRunUtil runUtil)Buat tunnel SSH ke host jarak jauh tertentu dan tampilkan prosesnya.
| Parameter | |
|---|---|
remoteHost |
String: nama host/IP perangkat Android TCP/IP jarak jauh. |
localPort |
int: port perangkat tcp ip lokal. |
remotePort |
int: port perangkat tcp ip jarak jauh. |
sshPrivateKeyPath |
File |
user |
String |
sshTunnelLog |
File |
runUtil |
IRunUtil |
| Hasil | |
|---|---|
Process |
Process perintah SSH. |