ProcessUtil
public
class
ProcessUtil
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.util.ProcessUtil |
Resumo
Constantes | |
|---|---|
int |
DEFAULT_ADB_PORT
|
String |
DEFAULT_LOCAL_HOST
|
Construtores públicos | |
|---|---|
ProcessUtil()
|
|
Métodos públicos | |
|---|---|
static
Process
|
createSshTunnel(String remoteHost, int localPort, int remotePort, File sshPrivateKeyPath, String user, File sshTunnelLog, IRunUtil runUtil)
Cria um túnel SSH para um determinado host remoto e retorna o processo. |
Constantes
DEFAULT_ADB_PORT
public static final int DEFAULT_ADB_PORT
Valor da constante: 5555 (0x000015b3)
DEFAULT_LOCAL_HOST
public static final String DEFAULT_LOCAL_HOST
Valor da constante: "127.0.0.1:%d"
Construtores públicos
ProcessUtil
public ProcessUtil ()
Métodos públicos
createSshTunnel
public static Process createSshTunnel (String remoteHost,
int localPort,
int remotePort,
File sshPrivateKeyPath,
String user,
File sshTunnelLog,
IRunUtil runUtil)Cria um túnel SSH para um determinado host remoto e retorna o processo.
| Parâmetros | |
|---|---|
remoteHost |
String: o nome do host/IP do dispositivo Android TCP/IP remoto. |
localPort |
int: a porta do dispositivo TCP/IP local. |
remotePort |
int: a porta do dispositivo IP TCP remoto. |
sshPrivateKeyPath |
File |
user |
String |
sshTunnelLog |
File |
runUtil |
IRunUtil |
| Retorna | |
|---|---|
Process |
Process do comando ssh. |