ProcessUtil

public class ProcessUtil
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.ProcessUtil


סיכום

ערכים קבועים

int DEFAULT_ADB_PORT

String DEFAULT_LOCAL_HOST

Constructors ציבוריים

ProcessUtil()

‫methods ציבוריים

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"‎

Constructors ציבוריים

ProcessUtil

public ProcessUtil ()

‫methods ציבוריים

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.