원격 파일 유틸리티
public class RemoteFileUtil
extends Object
java.lang.객체 | |
↳ | com.android.tradefed.device.cloud.RemoteFileUtil |
원격 인스턴스에서 파일을 처리하는 유틸리티 클래스
요약
공개 생성자 | |
---|---|
RemoteFileUtil () |
공개 방법 | |
---|---|
static boolean | doesRemoteFileExist ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remotePath) 원격 인스턴스에 파일(또는 디렉터리)이 있는지 확인 |
static File | fetchRemoteDir ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteDirPath) 원격 호스트에서 원격 디렉토리를 가져옵니다. |
static boolean | fetchRemoteDir ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteDirPath, File localDir) 원격 호스트에서 원격 디렉토리를 가져옵니다. |
static File | fetchRemoteFile ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteFilePath) 컨테이너 인스턴스에서 원격 파일을 가져옵니다. |
static boolean | fetchRemoteFile ( GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile) 장치 또는 컨테이너 인스턴스에서 원격 파일을 가져옵니다. |
static boolean | pushFileToRemote ( GceAvdInfo remoteInstance, TestDeviceOptions options, scpArgs, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile) pushFileToRemote ( GceAvdInfo remoteInstance, TestDeviceOptions options, scpArgs, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile) 로컬 호스트에서 원격 인스턴스로 |
공개 생성자
원격 파일 유틸리티
public RemoteFileUtil ()
공개 방법
원격파일존재
public static boolean doesRemoteFileExist (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remotePath)
원격 인스턴스에 파일(또는 디렉터리)이 있는지 확인
매개변수 | |
---|---|
remoteInstance | GceAvdInfo : 장치를 설명하는 GceAvdInfo . |
options | TestDeviceOptions : GCE 장치에 사용할 장치 옵션을 설명하는 TestDeviceOptions 입니다. |
runUtil | IRunUtil : 명령을 실행할 IRunUtil 입니다. |
timeout | long : 가져오기 완료 시간(밀리초) |
remotePath | String : 파일을 찾을 원격 경로. |
보고 | |
---|---|
boolean | 파일이 존재하는지 여부 |
가져오기RemoteDir
public static File fetchRemoteDir (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteDirPath)
원격 호스트에서 원격 디렉토리를 가져옵니다.
매개변수 | |
---|---|
remoteInstance | GceAvdInfo : 장치를 설명하는 GceAvdInfo . |
options | TestDeviceOptions : GCE 장치에 사용할 장치 옵션을 설명하는 TestDeviceOptions 입니다. |
runUtil | IRunUtil : 명령을 실행할 IRunUtil 입니다. |
timeout | long : 가져오기 완료 시간(밀리초) |
remoteDirPath | String : 디렉토리를 찾을 원격 경로. |
보고 | |
---|---|
File | 가져온 디렉터리 ERROR(/File) 성공하면 그렇지 않으면 null |
가져오기RemoteDir
public static boolean fetchRemoteDir (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteDirPath, File localDir)
원격 호스트에서 원격 디렉토리를 가져옵니다.
매개변수 | |
---|---|
remoteInstance | GceAvdInfo : 장치를 설명하는 GceAvdInfo . |
options | TestDeviceOptions : GCE 장치에 사용할 장치 옵션을 설명하는 TestDeviceOptions 입니다. |
runUtil | IRunUtil : 명령을 실행할 IRunUtil 입니다. |
timeout | long : 가져오기 완료 시간(밀리초) |
remoteDirPath | String : 디렉토리를 찾을 원격 경로. |
localDir | File : 끌어온 파일을 저장할 로컬 디렉토리입니다. |
보고 | |
---|---|
boolean | 성공하면 True, 그렇지 않으면 False |
가져오기원격파일
public static File fetchRemoteFile (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteFilePath)
컨테이너 인스턴스에서 원격 파일을 가져옵니다.
매개변수 | |
---|---|
remoteInstance | GceAvdInfo : 장치를 설명하는 GceAvdInfo . |
options | TestDeviceOptions : GCE 장치에 사용할 장치 옵션을 설명하는 TestDeviceOptions 입니다. |
runUtil | IRunUtil : 명령을 실행할 IRunUtil 입니다. |
timeout | long : 가져오기 완료 시간(밀리초) |
remoteFilePath | String : 파일을 찾을 원격 경로. |
보고 | |
---|---|
File | 성공하면 풀링됨, 그렇지 않으면 null |
가져오기원격파일
public static boolean fetchRemoteFile (GceAvdInfo remoteInstance, TestDeviceOptions options, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile)
장치 또는 컨테이너 인스턴스에서 원격 파일을 가져옵니다.
매개변수 | |
---|---|
remoteInstance | GceAvdInfo : 장치를 설명하는 GceAvdInfo . |
options | TestDeviceOptions : GCE 장치에 사용할 장치 옵션을 설명하는 TestDeviceOptions 입니다. |
runUtil | IRunUtil : 명령을 실행할 IRunUtil 입니다. |
timeout | long : 가져오기 완료 시간(밀리초) |
remoteFilePath | String : 파일을 찾을 원격 경로. |
localFile | File : 원격 파일을 가져올 로컬 ERROR(/File) |
보고 | |
---|---|
boolean | 성공하면 True, 그렇지 않으면 False |
pushFileToRemote
public static boolean pushFileToRemote (GceAvdInfo remoteInstance, TestDeviceOptions options,scpArgs, IRunUtil runUtil, long timeout, String remoteFilePath, File localFile)
로컬 호스트에서 원격 인스턴스로 ERROR(/File)
푸시
매개변수 | |
---|---|
remoteInstance | GceAvdInfo : 장치를 설명하는 GceAvdInfo . |
options | TestDeviceOptions : GCE 장치에 사용할 장치 옵션을 설명하는 TestDeviceOptions 입니다. |
scpArgs | |
runUtil | IRunUtil : 명령을 실행할 IRunUtil 입니다. |
timeout | long : 가져오기 완료 시간(밀리초) |
remoteFilePath | String : 파일을 찾을 원격 경로. |
localFile | File : 원격 파일을 가져올 로컬 ERROR(/File) |
보고 | |
---|---|
boolean | 성공하면 True, 그렇지 않으면 False |