GceRemoteCmdFormatter

public class GceRemoteCmdFormatter
extends Object

java.lang.Object
com.android.tradefed.device.cloud.GceRemoteCmdFormatter


원격 gce 장치에 도달하기 위한 명령 형식을 지정하는 유틸리티 클래스입니다.

요약

공개 생성자

GceRemoteCmdFormatter ()

공개 메소드

static getScpCommand (File sshKey, extraOptions, String user, String hostName, String remoteFile, String localFile, GceRemoteCmdFormatter.ScpMode mode) getScpCommand (File sshKey, extraOptions, String user, String hostName, String remoteFile, String localFile, GceRemoteCmdFormatter.ScpMode mode)

원격 gce 장치에서 파일을 가져오는 scp 명령을 생성하는 유틸리티입니다.

static getSshCommand (File sshKey, extraOptions, String user, String hostName, String... command) getSshCommand (File sshKey, extraOptions, String user, String hostName, String... command)

일부 매개변수를 기반으로 gce 장치에 대한 SSH 명령을 생성하는 유틸리티입니다.

공개 생성자

GceRemoteCmdFormatter

public GceRemoteCmdFormatter ()

공개 메소드

getScp명령

public static  getScpCommand (File sshKey, 
                 extraOptions, 
                String user, 
                String hostName, 
                String remoteFile, 
                String localFile, 
                GceRemoteCmdFormatter.ScpMode mode)

원격 gce 장치에서 파일을 가져오는 scp 명령을 생성하는 유틸리티입니다.

매개변수
sshKey File : SSH 키 ERROR(/File) .

extraOptions : 추가 SSH 옵션을 위해 추가할 수 있는 String 목록입니다. null일 수 있습니다.

user String

hostName String : gce 장치에 연결할 호스트 이름입니다.

remoteFile String : 원격 gce 장치에서 가져올 파일입니다.

localFile String : 원격 파일을 넣을 로컬 파일입니다.

mode GceRemoteCmdFormatter.ScpMode : 로컬 파일을 원격 파일로 푸시할지 아니면 원격 파일을 가져올지 여부

보고
gce 장치에 대한 scp 명령을 나타내는 목록입니다.

getSsh명령

public static  getSshCommand (File sshKey, 
                 extraOptions, 
                String user, 
                String hostName, 
                String... command)

일부 매개변수를 기반으로 gce 장치에 대한 SSH 명령을 생성하는 유틸리티입니다.

매개변수
sshKey File : SSH 키 ERROR(/File) .

extraOptions : 추가 SSH 옵션을 위해 추가할 수 있는 String 목록입니다. null일 수 있습니다.

user String

hostName String : gce 장치에 연결할 호스트 이름입니다.

command String : gce 장치에서 실행할 실제 명령입니다.

보고
gce 장치에 대한 ssh 명령을 나타내는 목록입니다.