CacheClientFactory
  public
  
  final
  
  class
  CacheClientFactory
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | com.android.tradefed.util.CacheClientFactory | 
工廠,用於建立 ICacheClient 的單例模式例項。
摘要
公用建構函式 | |
|---|---|
      
      CacheClientFactory()
      
      
     | 
  |
公用方法 | |
|---|---|
        
        
        static
        
        
        ICacheClient
     | 
  
    
      
      createCacheClient(File workFolder, String instanceName)
      
      
        建立   | 
  
公用建構函式
CacheClientFactory
public CacheClientFactory ()
公用方法
createCacheClient
public static ICacheClient createCacheClient (File workFolder, String instanceName)
建立 ICacheClient 的單例模式例項。
這個叫用作業只會建立及共用一個單例例項。這個方法是執行緒安全的。
| 參數 | |
|---|---|
workFolder | 
        
          File:用戶端建立暫存檔案的工作資料夾。 | 
      
instanceName | 
        
          String:遠端執行 API 的例項名稱。 | 
      
| 傳回 | |
|---|---|
ICacheClient | 
        ICacheClient 的例項。 |