2025년 3월 27일부터 AOSP를 빌드하고 기여하려면 aosp-main
대신 android-latest-release
를 사용하는 것이 좋습니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
public
class
GceRemoteCmdFormatter
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.device.cloud.GceRemoteCmdFormatter
|
원격 gce 기기에 연결하기 위한 명령어 형식을 지정하는 유틸리티 클래스입니다.
요약
공개 메서드 |
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 명령어를 만드는 유틸리티입니다.
|
공개 생성자
public GceRemoteCmdFormatter ()
공개 메서드
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 명령어를 나타내는 목록입니다. |
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-03-26(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-03-26(UTC)"],[],[]]