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)
Create an ssh tunnel to a given remote host and return the process. |
常數
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。 |