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)

원격 gce 기기에서 파일을 가져오는 scp 명령어를 만드는 유틸리티입니다.

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

일부 매개변수를 기반으로 GCE 기기의 SSH 명령어를 만드는 유틸리티입니다.

공개 생성자

GceRemoteCmdFormatter

public GceRemoteCmdFormatter ()

공개 메서드

getScpCommand

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 명령어를 나타내는 목록입니다.

getSshCommand

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 명령어를 나타내는 목록입니다.