CacheClientFactory

public final class CacheClientFactory
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.CacheClientFactory


這個工廠會建立 ICacheClient 的單例模式例項。

摘要

公用建構函式

CacheClientFactory()

公用方法

static ICacheClient createCacheClient(File workFolder, String instanceName)

建立 ICacheClient 的單例模式例項。

公用建構函式

CacheClientFactory

public CacheClientFactory ()

公用方法

createCacheClient

public static ICacheClient createCacheClient (File workFolder, 
                String instanceName)

建立 ICacheClient 的單例模式例項。

系統只會建立一個單例模式執行個體,並在這次呼叫中分享至各處。這個方法是執行緒安全。

參數
workFolder File:用戶端建立暫時檔案的工作資料夾。

instanceName String:Remote Execution API 的執行個體名稱。

傳回
ICacheClient ICacheClient 的執行個體。