AndroidBuildRemoteFileResolver
public
class
AndroidBuildRemoteFileResolver
extends Object
implements
IRemoteFileResolver
| java.lang.Object | |
| ↳ | com.google.android.tradefed.config.remote.AndroidBuildRemoteFileResolver |
實作 IRemoteFileResolver,允許從 Android 建構伺服器下載。
摘要
常數 | |
|---|---|
String |
BUILD_BRANCH_STRING
|
String |
BUILD_ID_STRING
|
String |
BUILD_PATTERN_STRING
|
String |
BUILD_TARGET_STRING
|
String |
ENABLE_RESOLVE_SYM_LINKS
|
String |
EXCLUDE_FILTERS
|
String |
INCLUDE_FILTERS
|
String |
OS_STRING
|
String |
PROTOCOL
|
String |
USE_CAS
|
欄位 | |
|---|---|
public
static
final
Pattern |
DOWNLOAD_PATTERN
|
公用建構函式 | |
|---|---|
AndroidBuildRemoteFileResolver()
|
|
公用方法 | |
|---|---|
String
|
getSupportedProtocol()
傳回支援下載的相關聯通訊協定。 |
IRemoteFileResolver.ResolvedFile
|
resolveRemoteFile(IRemoteFileResolver.RemoteFileResolverArgs args)
在具前瞻性的介面中解決遠端檔案問題 |
受保護的方法 | |
|---|---|
IFileDownloader
|
getAndroidBuildDownloader(RemoteBuildInfo info, boolean useCas)
|
RemoteBuildInfo
|
performBuildApiQuery(String buildId, String branch, String buildFlavor, String pattern)
|
常數
BUILD_BRANCH_STRING
public static final String BUILD_BRANCH_STRING
常數值: "branch"
BUILD_ID_STRING
public static final String BUILD_ID_STRING
常數值: "buildid"
BUILD_PATTERN_STRING
public static final String BUILD_PATTERN_STRING
常數值: "pattern"
BUILD_TARGET_STRING
public static final String BUILD_TARGET_STRING
常數值: "target"
ENABLE_RESOLVE_SYM_LINKS
public static final String ENABLE_RESOLVE_SYM_LINKS
常數值: "enable-resolve-sym-links"
EXCLUDE_FILTERS
public static final String EXCLUDE_FILTERS
常數值: "exclude_filters"
INCLUDE_FILTERS
public static final String INCLUDE_FILTERS
常數值: "include_filters"
OS_STRING
public static final String OS_STRING
常數值: "linux"
通訊協定
public static final String PROTOCOL
常數值: "ab"
USE_CAS
public static final String USE_CAS
常數值: "use-cas"
欄位
DOWNLOAD_PATTERN
public static final Pattern DOWNLOAD_PATTERN
公用建構函式
AndroidBuildRemoteFileResolver
public AndroidBuildRemoteFileResolver ()
公用方法
getSupportedProtocol
public String getSupportedProtocol ()
傳回支援下載的相關聯通訊協定。
| 傳回 | |
|---|---|
String |
|
resolveRemoteFile
public IRemoteFileResolver.ResolvedFile resolveRemoteFile (IRemoteFileResolver.RemoteFileResolverArgs args)
在具有前瞻性的介面中解決遠端檔案問題
| 參數 | |
|---|---|
args |
IRemoteFileResolver.RemoteFileResolverArgs:RemoteFileResolverArgs,說明要下載的遙控器和下載方式。 |
| 傳回 | |
|---|---|
IRemoteFileResolver.ResolvedFile |
已解析的本機檔案表示法。 |
| 擲回 | |
|---|---|
BuildRetrievalError |
|
受保護的方法
getAndroidBuildDownloader
protected IFileDownloader getAndroidBuildDownloader (RemoteBuildInfo info, boolean useCas)
| 參數 | |
|---|---|
info |
RemoteBuildInfo |
useCas |
boolean |
| 傳回 | |
|---|---|
IFileDownloader |
|
performBuildApiQuery
protected RemoteBuildInfo performBuildApiQuery (String buildId, String branch, String buildFlavor, String pattern)
| 參數 | |
|---|---|
buildId |
String |
branch |
String |
buildFlavor |
String |
pattern |
String |
| 傳回 | |
|---|---|
RemoteBuildInfo |
|
| 擲回 | |
|---|---|
BuildRetrievalError |
|