RemoteSshUtil

public class RemoteSshUtil
extends Object

java.lang.객체
com.android.tradefed.device.cloud.RemoteSshUtil


원격 인스턴스에서 ssh 명령을 실행하는 유틸리티입니다.

요약

공개 생성자

RemoteSshUtil ()

공개 방법

static CommandResult remoteSshCommandExec ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeoutMs, OutputStream stdout, OutputStream stderr, String... command)

ssh를 사용하여 원격 인스턴스에서 명령을 실행합니다.

static CommandResult remoteSshCommandExec ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeoutMs, String... command)

ssh를 사용하여 원격 인스턴스에서 명령을 실행합니다.

공개 생성자

RemoteSshUtil

public RemoteSshUtil ()

공개 방법

remoteSshCommandExec

public static CommandResult remoteSshCommandExec (GceAvdInfo remoteInstance, 
                TestDeviceOptions options, 
                IRunUtil runUtil, 
                long timeoutMs, 
                OutputStream stdout, 
                OutputStream stderr, 
                String... command)

ssh를 사용하여 원격 인스턴스에서 명령을 실행합니다.

매개변수
remoteInstance GceAvdInfo : 장치를 설명하는 GceAvdInfo .

options TestDeviceOptions : GCE 장치에 사용할 장치 옵션을 설명하는 TestDeviceOptions 입니다.

runUtil IRunUtil : 명령을 실행할 IRunUtil 입니다.

timeoutMs long : 가져오기 완료 시간(밀리초)

stdout OutputStream : stdout이 기록되는 ERROR(/OutputStream) .

stderr OutputStream : stderr이 기록될 ERROR(/OutputStream) 입니다.

command String : 실행할 명령입니다.

보고
CommandResult 상태 및 로그를 포함하는 CommandResult .

remoteSshCommandExec

public static CommandResult remoteSshCommandExec (GceAvdInfo remoteInstance, 
                TestDeviceOptions options, 
                IRunUtil runUtil, 
                long timeoutMs, 
                String... command)

ssh를 사용하여 원격 인스턴스에서 명령을 실행합니다.

매개변수
remoteInstance GceAvdInfo : 장치를 설명하는 GceAvdInfo .

options TestDeviceOptions : GCE 장치에 사용할 장치 옵션을 설명하는 TestDeviceOptions 입니다.

runUtil IRunUtil : 명령을 실행할 IRunUtil 입니다.

timeoutMs long : 가져오기 완료 시간(밀리초)

command String : 실행할 명령입니다.

보고
CommandResult 상태 및 로그를 포함하는 CommandResult .