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:远程执行 API 的实例名称。

返回
ICacheClient 一个 ICacheClient 的实例。