GceRemoteCmdFormatter

public class GceRemoteCmdFormatter
extends Object

java.lang.Object의 클래스
   ↳ com.android.tradefed.device.cloud.GceRemoteCmdFormatter


원격 gce 기기에 연결하기 위한 명령어의 형식을 지정하는 유틸리티 클래스입니다.

요약

중첩된 클래스

enum GceRemoteCmdFormatter.ScpMode

SCP는 인수의 구조에 따라 파일을 푸시하거나 가져오는 데 사용할 수 있습니다. 

공개 생성자

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