RemoteCacheClient
public
class
RemoteCacheClient
extends Object
implements
ICacheClient
| java.lang.Object | |
| ↳ | com.android.tradefed.cache.remote.RemoteCacheClient |
הטמעה של RemoteActionCache שמשתמשת בקריאות gRPC לשרת API מרוחק.
סיכום
שדות | |
|---|---|
public
static
final
Duration |
REMOTE_TIMEOUT
|
קונסטרוקטורים גלויים לכולם | |
|---|---|
RemoteCacheClient(File workFolder, String instanceName, ManagedChannel channel, CallCredentials callCredentials, ByteStreamDownloader downloader, ByteStreamUploader uploader)
|
|
שיטות ציבוריות | |
|---|---|
ExecutableActionResult
|
lookupCache(ExecutableAction action)
חיפוש של |
void
|
uploadCache(ExecutableAction action, ExecutableActionResult actionResult)
העלאת התוצאות של |
שדות
REMOTE_TIMEOUT
public static final Duration REMOTE_TIMEOUT
קונסטרוקטורים גלויים לכולם
RemoteCacheClient
public RemoteCacheClient (File workFolder,
String instanceName,
ManagedChannel channel,
CallCredentials callCredentials,
ByteStreamDownloader downloader,
ByteStreamUploader uploader)| פרמטרים | |
|---|---|
workFolder |
File |
instanceName |
String |
channel |
ManagedChannel |
callCredentials |
CallCredentials |
downloader |
ByteStreamDownloader |
uploader |
ByteStreamUploader |
שיטות ציבוריות
lookupCache
public ExecutableActionResult lookupCache (ExecutableAction action)
חיפוש של ExecutableActionResult עבור action.
הערה: מבצע הקריאה החוזרת צריך למחוק את קובצי הפלט אחרי השימוש כדי למנוע מצב שבו נגמר נפח האחסון בדיסק.
| פרמטרים | |
|---|---|
action |
ExecutableAction: ה-ExecutableAction שהתוצאה שלו צריכה להוחזר. |
| החזרות | |
|---|---|
ExecutableActionResult |
ה-ExecutableActionResult של ה-action אם התוצאה קיימת,
אחרת, null. |
uploadCache
public void uploadCache (ExecutableAction action, ExecutableActionResult actionResult)
העלאת התוצאות של ExecutableAction.
אם התוצאה של action לא קיימת, הערך של actionResult יישמר. אחרת, התוצאה תתעדכן.
| פרמטרים | |
|---|---|
action |
ExecutableAction: הפעולה שיצרה את התוצאות. |
actionResult |
ExecutableActionResult: תוצאת הפעולה שרוצים לשייך ל-action. |