CacheClientFactory

public final class CacheClientFactory
extends Object

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


Một nhà máy tạo ra một thực thể singleton của ICacheClient.

Tóm tắt

Hàm khởi tạo công khai

CacheClientFactory()

Phương thức công khai

static ICacheClient createCacheClient(File workFolder, String instanceName)

Tạo một thực thể singleton của ICacheClient.

Hàm khởi tạo công khai

CacheClientFactory

public CacheClientFactory ()

Phương thức công khai

createCacheClient

public static ICacheClient createCacheClient (File workFolder, 
                String instanceName)

Tạo một thực thể singleton của ICacheClient.

Chỉ một phiên bản singleton sẽ được tạo và chia sẻ ở mọi nơi trong lệnh gọi này. Phương thức này an toàn cho luồng.

Tham số
workFolder File: Thư mục công việc nơi ứng dụng tạo các tệp tạm thời.

instanceName String: Tên phiên bản của API thực thi từ xa.

Giá trị trả về
ICacheClient Một bản sao của ICacheClient.