RemoteSshUtil

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

공개 생성자

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입니다.