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. |