UzakÖnbellek İstemcisi
public
class
RemoteCacheClient
extends Object
implements
ICacheClient
Java.lang.Nesne | |
↳ | com.android.tradefed.cache.remote.RemoteCacheClient |
Uzak bir API sunucusuna yapılan gRPC çağrılarını kullanan bir RemoteActionCache uygulaması.
Özet
Kamu inşaatçıları | |
---|---|
RemoteCacheClient(File workFolder, String instanceName, ManagedChannel channel, CallCredentials callCredentials, ByteStreamDownloader downloader, ByteStreamUploader uploader)
|
Herkese açık yöntemler | |
---|---|
ExecutableActionResult
|
lookupCache(ExecutableAction action)
|
void
|
uploadCache(ExecutableAction action, ExecutableActionResult actionResult)
|
Kamu inşaatçıları
UzakÖnbellek İstemcisi
public RemoteCacheClient (File workFolder, String instanceName, ManagedChannel channel, CallCredentials callCredentials, ByteStreamDownloader downloader, ByteStreamUploader uploader)
Parametreler | |
---|---|
workFolder |
File |
instanceName |
String |
channel |
ManagedChannel |
callCredentials |
CallCredentials |
downloader |
ByteStreamDownloader |
uploader |
ByteStreamUploader |
Herkese açık yöntemler
lookupCache
public ExecutableActionResult lookupCache (ExecutableAction action)
action
için ExecutableActionResult
öğesini arar.
Disk alanının tükenmesini önlemek için çağrının, çıkış dosyalarını kullanımdan sonra silmesi gerektiğini unutmayın.
Parametreler | |
---|---|
action |
ExecutableAction : Sonucu döndürülmesi gereken ExecutableAction . |
İlerlemeler | |
---|---|
ExecutableActionResult |
Sonuç varsa action öğesinin ExecutableActionResult değeri, aksi takdirde null. |
UploadCache
public void uploadCache (ExecutableAction action, ExecutableActionResult actionResult)
ExecutableAction
için sonuçları yükler.
action
işlevinin sonucu mevcut değilse actionResult
depolanır. Aksi takdirde sonuç güncellenir.
Parametreler | |
---|---|
action |
ExecutableAction : Sonuçları oluşturan işlem. |
actionResult |
ExecutableActionResult : action ile ilişkilendirilecek işlem sonucu. |