ProcessUtil
public
class
ProcessUtil
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.util.ProcessUtil
|
Summary
Public methods |
static
Process
|
createSshTunnel(String remoteHost, int localPort, int remotePort, File sshPrivateKeyPath, String user, File sshTunnelLog, IRunUtil runUtil)
Create an ssh tunnel to a given remote host and return the process.
|
Constants
DEFAULT_ADB_PORT
public static final int DEFAULT_ADB_PORT
Constant Value:
5555
(0x000015b3)
Fields
DEFAULT_LOCAL_HOST
public static final String DEFAULT_LOCAL_HOST
Public constructors
ProcessUtil
public ProcessUtil ()
Public methods
createSshTunnel
public static Process createSshTunnel (String remoteHost,
int localPort,
int remotePort,
File sshPrivateKeyPath,
String user,
File sshTunnelLog,
IRunUtil runUtil)
Create an ssh tunnel to a given remote host and return the process.
Parameters |
remoteHost |
String : the hostname/ip of the remote tcp ip Android device. |
localPort |
int : the port of the local tcp ip device. |
remotePort |
int : the port of the remote tcp ip device. |
sshPrivateKeyPath |
File |
user |
String |
sshTunnelLog |
File |
runUtil |
IRunUtil |
Returns |
Process |
Process of the ssh command. |