ProcessUtil
public
class
ProcessUtil
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.util.ProcessUtil |
Resumen
Constantes | |
|---|---|
int |
DEFAULT_ADB_PORT
|
String |
DEFAULT_LOCAL_HOST
|
Constructores públicos | |
|---|---|
ProcessUtil()
|
|
Métodos públicos | |
|---|---|
static
Process
|
createSshTunnel(String remoteHost, int localPort, int remotePort, File sshPrivateKeyPath, String user, File sshTunnelLog, IRunUtil runUtil)
Crea un túnel SSH a un host remoto determinado y devuelve el proceso. |
Constantes
DEFAULT_ADB_PORT
public static final int DEFAULT_ADB_PORT
Valor constante: 5555 (0x000015b3)
DEFAULT_LOCAL_HOST
public static final String DEFAULT_LOCAL_HOST
Valor constante: "127.0.0.1:%d"
Constructores 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)Crea un túnel SSH a un host remoto determinado y devuelve el proceso.
| Parámetros | |
|---|---|
remoteHost |
String: Es el nombre de host o la IP del dispositivo Android remoto con IP de TCP. |
localPort |
int: Es el puerto del dispositivo IP TCP local. |
remotePort |
int: Es el puerto del dispositivo IP TCP remoto. |
sshPrivateKeyPath |
File |
user |
String |
sshTunnelLog |
File |
runUtil |
IRunUtil |
| Muestra | |
|---|---|
Process |
Process del comando ssh |