ProcessUtil
public
class
ProcessUtil
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.util.ProcessUtil |
摘要
常量 | |
|---|---|
int |
DEFAULT_ADB_PORT
|
String |
DEFAULT_LOCAL_HOST
|
公共构造函数 | |
|---|---|
ProcessUtil()
|
|
公共方法 | |
|---|---|
static
Process
|
createSshTunnel(String remoteHost, int localPort, int remotePort, File sshPrivateKeyPath, String user, File sshTunnelLog, IRunUtil runUtil)
创建到指定远程主机的 SSH 隧道并返回进程。 |
常量
DEFAULT_ADB_PORT
public static final int DEFAULT_ADB_PORT
常量值: 5555 (0x000015b3)
DEFAULT_LOCAL_HOST
public static final String DEFAULT_LOCAL_HOST
常量值: "127.0.0.1:%d"
公共构造函数
ProcessUtil
public ProcessUtil ()
公共方法
createSshTunnel
public static Process createSshTunnel (String remoteHost,
int localPort,
int remotePort,
File sshPrivateKeyPath,
String user,
File sshTunnelLog,
IRunUtil runUtil)创建到指定远程主机的 SSH 隧道并返回进程。
| 参数 | |
|---|---|
remoteHost |
String:远程 TCP IP Android 设备的主机名/IP。 |
localPort |
int:本地 TCP IP 设备的端口。 |
remotePort |
int:远程 TCP IP 设备的端口。 |
sshPrivateKeyPath |
File |
user |
String |
sshTunnelLog |
File |
runUtil |
IRunUtil |
| 返回 | |
|---|---|
Process |
ssh 命令的 Process。 |