27 Mart 2025'ten itibaren AOSP'yi derlemek ve AOSP'ye katkıda bulunmak için aosp-main
yerine android-latest-release
kullanmanızı öneririz. Daha fazla bilgi için AOSP'de yapılan değişiklikler başlıklı makaleyi inceleyin.
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
CacheClientFactory
public
final
class
CacheClientFactory
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.util.CacheClientFactory
|
ICacheClient
tekil örneğini oluşturan bir fabrika.
Özet
Herkese açık kurucular
CacheClientFactory
public CacheClientFactory ()
Herkese açık yöntemler
createCacheClient
public static ICacheClient createCacheClient (File workFolder,
String instanceName)
ICacheClient
tekil örneğini oluşturur.
Bu çağrıda yalnızca bir tekil örnek oluşturulur ve her yerde paylaşılır. Bu yöntem, iş parçacığı açısından güvenlidir.
Parametreler |
workFolder |
File : İstemcinin geçici dosyalar oluşturduğu çalışma klasörü. |
instanceName |
String : Uzak yürütme API'sinin örnek adı. |
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-27 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-27 UTC."],[],[],null,["# CacheClientFactory\n==================\n\n\n`\npublic\n\nfinal\n\nclass\nCacheClientFactory\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|----------------------------------------------|\n| java.lang.Object ||\n| ↳ | com.android.tradefed.util.CacheClientFactory |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA factory that creates a singleton instance of [ICacheClient](../../../../../../reference/tradefed/com/android/tradefed/cache/ICacheClient.html).\n\nSummary\n-------\n\n| ### Public constructors ||\n|-------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[CacheClientFactory](../../../../../../reference/tradefed/com/android/tradefed/util/CacheClientFactory.html#CacheClientFactory())`() ` |\n\n| ### Public methods ||\n|-------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` static `[ICacheClient](../../../../../../reference/tradefed/com/android/tradefed/cache/ICacheClient.html) | ` `[createCacheClient](../../../../../../reference/tradefed/com/android/tradefed/util/CacheClientFactory.html#createCacheClient(File,%20java.lang.String))`(File workFolder, String instanceName) ` Creates a singleton instance of [ICacheClient](../../../../../../reference/tradefed/com/android/tradefed/cache/ICacheClient.html). |\n\nPublic constructors\n-------------------\n\n### CacheClientFactory\n\n```\npublic CacheClientFactory ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic methods\n--------------\n\n### createCacheClient\n\n```\npublic static ICacheClient createCacheClient (File workFolder, \n String instanceName)\n```\n\nCreates a singleton instance of [ICacheClient](../../../../../../reference/tradefed/com/android/tradefed/cache/ICacheClient.html).\n\nOnly one singleton instance will be created and shared everywhere in this invocation. This\nmethod is thread-safe.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------------|--------------------------------------------------------------------------|\n| `workFolder` | `File`: The work folder where the client creates temporary files. \u003cbr /\u003e |\n| `instanceName` | `String`: The instance name of the remote execution API. \u003cbr /\u003e |\n\n| Returns ||\n|---------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|\n| [ICacheClient](../../../../../../reference/tradefed/com/android/tradefed/cache/ICacheClient.html) | An instance of [ICacheClient](../../../../../../reference/tradefed/com/android/tradefed/cache/ICacheClient.html). \u003cbr /\u003e |"]]