원격SshUtil

public class RemoteSshUtil
extends Object

java.lang.Object
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를 사용하여 원격 인스턴스에서 명령을 실행합니다.

공개 생성자

원격SshUtil

public RemoteSshUtil ()

공개 메소드

원격SshCommandExec

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 : 표준 오류가 기록될 ERROR(/OutputStream) 입니다.

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

보고
CommandResult 상태 및 로그가 포함된 CommandResult .

원격SshCommandExec

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 .