DynamicRemoteFileResolver
public class DynamicRemoteFileResolver
extends Object
java.lang.Object | |
↳ | com.android.tradefed.config.DynamicRemoteFileResolver |
원격 파일에 대한 경로를 확인하는 데 도움이 되는 클래스입니다.
예를 들어 gs://bucket/path/file.txt는 GCS 버킷에서 파일을 다운로드하여 확인됩니다.
META_INF/services에 새로운 프로토콜을 추가해야 합니다.
요약
중첩 클래스 | |
---|---|
interface | DynamicRemoteFileResolver.FileResolverLoader |
필드 | |
---|---|
public static final String | OPTIONAL_KEY |
public static final String | OPTION_NAME_KEY |
public static final String | OPTION_PARALLEL_KEY |
public static final String | UNZIP_KEY
|
공개 생성자 | |
---|---|
DynamicRemoteFileResolver () | |
DynamicRemoteFileResolver (boolean allowParallel) | |
DynamicRemoteFileResolver ( DynamicRemoteFileResolver.FileResolverLoader loader) | |
DynamicRemoteFileResolver ( DynamicRemoteFileResolver.FileResolverLoader loader, boolean allowParallel) |
공개 메소드 | |
---|---|
void | addExtraArgs ( extraArgs) addExtraArgs ( extraArgs) 쿼리에 대한 추가 인수를 추가합니다. |
getParallelDownloads () | |
void | resolvePartialDownloadZip (File destDir, String remoteZipFilePath, includeFilters, excludeFilters) resolvePartialDownloadZip (File destDir, String remoteZipFilePath, includeFilters, excludeFilters) resolvePartialDownloadZip (File destDir, String remoteZipFilePath, includeFilters, excludeFilters) 지정된 필터와 일치하는 파일을 원격 zip 파일로 다운로드합니다. |
void | setDevice ( ITestDevice device) 테스트 중인 장치를 설정합니다. |
void | setOptionMap ( optionMap) setOptionMap ( optionMap) |
static final File | unzipIfRequired (File downloadedFile, query) unzipIfRequired (File downloadedFile, query) 파일의 압축을 풀어야 하는지 여부를 확인하고 필요한 경우 압축을 풀 수 있는 유틸리티입니다. |
final | validateRemoteFilePath () 모든 |
필드
OPTIONAL_KEY
public static final String OPTIONAL_KEY
OPTION_NAME_KEY
public static final String OPTION_NAME_KEY
OPTION_PARALLEL_KEY
public static final String OPTION_PARALLEL_KEY
UNZIP_KEY
public static final String UNZIP_KEY
공개 생성자
DynamicRemoteFileResolver
public DynamicRemoteFileResolver ()
DynamicRemoteFileResolver
public DynamicRemoteFileResolver (boolean allowParallel)
매개변수 | |
---|---|
allowParallel | boolean |
DynamicRemoteFileResolver
public DynamicRemoteFileResolver (DynamicRemoteFileResolver.FileResolverLoader loader)
매개변수 | |
---|---|
loader | DynamicRemoteFileResolver.FileResolverLoader |
DynamicRemoteFileResolver
public DynamicRemoteFileResolver (DynamicRemoteFileResolver.FileResolverLoader loader, boolean allowParallel)
매개변수 | |
---|---|
loader | DynamicRemoteFileResolver.FileResolverLoader |
allowParallel | boolean |
공개 메소드
addExtraArgs
public void addExtraArgs (extraArgs)
쿼리에 대한 추가 인수를 추가합니다.
매개변수 | |
---|---|
extraArgs |
getParallel다운로드
publicgetParallelDownloads ()
보고 | |
---|---|
부분다운로드Zip 해결
public void resolvePartialDownloadZip (File destDir, String remoteZipFilePath,includeFilters, excludeFilters)
지정된 필터와 일치하는 파일을 원격 zip 파일로 다운로드합니다.
원격 zip 파일 내의 파일은 경로가 포함 필터와 일치하지만 제외 필터와 일치하지 않는 경우에만 다운로드됩니다.
매개변수 | |
---|---|
destDir | File : 다운로드한 콘텐츠를 저장할 파일입니다. |
remoteZipFilePath | String : 구현별 루트를 기준으로 다운로드할 zip 파일의 원격 경로입니다. |
includeFilters | |
excludeFilters |
던지기 | |
---|---|
BuildRetrievalError | 파일을 다운로드할 수 없는 경우. |
unzip필요한 경우
public static final File unzipIfRequired (File downloadedFile,query)
파일의 압축을 풀어야 하는지 여부를 확인하고 필요한 경우 압축을 풀 수 있는 유틸리티입니다.
매개변수 | |
---|---|
downloadedFile | File |
query |
보고 | |
---|---|
File |
원격 파일 경로 확인
public finalvalidateRemoteFilePath ()
모든 ERROR(/File)
옵션 유형을 실행하고 해당 경로를 해결해야 하는지 확인합니다.
보고 | |
---|---|
그렇게 해서 해결된 ERROR(/File) 목록입니다. |
던지기 | |
---|---|
| com.android.tradefed.build.BuildRetrievalError |
BuildRetrievalError |
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2023-12-01(UTC)