2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
CacheClientFactory
public
final
class
CacheClientFactory
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.util.CacheClientFactory
|
ICacheClient
のシングルトン インスタンスを作成するファクトリ。
概要
パブリック コンストラクタ
CacheClientFactory
public CacheClientFactory ()
パブリック メソッド
createCacheClient
public static ICacheClient createCacheClient (File workFolder,
String instanceName)
ICacheClient
のシングルトン インスタンスを作成します。
この呼び出しでは、シングルトン インスタンスが 1 つだけ作成され、すべての場所で共有されます。このメソッドはスレッドセーフです。
パラメータ |
workFolder |
File : クライアントが一時ファイルを作成する作業フォルダ。 |
instanceName |
String : リモート実行 API のインスタンス名。 |
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 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 |"]]