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