GceRemoteCmdFormatter
public class GceRemoteCmdFormatter
extends Object
java.lang.객체 | |
↳ | 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 staticgetScpCommand (File sshKey, extraOptions, String user, String hostName, String remoteFile, String localFile, GceRemoteCmdFormatter.ScpMode mode)
원격 gce 장치에서 파일을 가져오는 scp 명령을 만드는 유틸리티입니다.
매개변수 | |
---|---|
sshKey | File : ssh 키 ERROR(/File) . |
extraOptions | String 목록입니다. null일 수 있습니다. |
user | String |
hostName | String : gce 장치에 연결할 호스트 이름입니다. |
remoteFile | String : 원격 gce 장치에서 가져올 파일입니다. |
localFile | String : 원격 파일을 저장할 로컬 파일. |
mode | GceRemoteCmdFormatter.ScpMode : 로컬 파일을 원격으로 푸시할지 또는 원격으로 풀할지 여부 |
보고 | |
---|---|
gce 장치의 scp 명령을 나타내는 목록입니다. |
getSsh 명령
public staticgetSshCommand (File sshKey, extraOptions, String user, String hostName, String... command)
일부 매개변수를 기반으로 gce 기기에 대한 ssh 명령을 생성하는 유틸리티입니다.
매개변수 | |
---|---|
sshKey | File : ssh 키 ERROR(/File) . |
extraOptions | String 목록입니다. null일 수 있습니다. |
user | String |
hostName | String : gce 장치에 연결할 호스트 이름입니다. |
command | String : gce 장치에서 실행할 실제 명령입니다. |
보고 | |
---|---|
gce 장치에 대한 ssh 명령을 나타내는 목록입니다. |