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: اسم المضيف/عنوان IP لجهاز Android البعيد الذي يعتمد على بروتوكول TCP/IP |
localPort |
int: منفذ جهاز TCP IP المحلي. |
remotePort |
int: منفذ جهاز TCP IP البعيد. |
sshPrivateKeyPath |
File |
user |
String |
sshTunnelLog |
File |
runUtil |
IRunUtil |
| المرتجعات | |
|---|---|
Process |
Process من أمر ssh. |