RemoteCacheClient

public class RemoteCacheClient
extends Object implements ICacheClient

java.lang.Object
   ↳ com.android.tradefed.cache.remote.RemoteCacheClient


Uzak bir API sunucusuna gRPC çağrıları kullanan bir RemoteActionCache uygulaması.

Özet

Fields'ın oynadığı filmler

public static final Duration REMOTE_TIMEOUT

Herkese açık kurucular

RemoteCacheClient(File workFolder, String instanceName, ManagedChannel channel, CallCredentials callCredentials, ByteStreamDownloader downloader, ByteStreamUploader uploader)

Herkese açık yöntemler

ExecutableActionResult lookupCache(ExecutableAction action)

action için ExecutableActionResult değerini arar.

void uploadCache(ExecutableAction action, ExecutableActionResult actionResult)

ExecutableAction için sonuçları yükler.

Fields'ın oynadığı filmler

REMOTE_TIMEOUT

public static final Duration REMOTE_TIMEOUT

Herkese açık kurucular

RemoteCacheClient

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 değerini arar.

Disk alanının tükenmemesi için arayanın, çıkış dosyalarını kullanımdan sonra silmesi gerektiğini unutmayın.

Parametreler
action ExecutableAction: Sonucunun döndürülmesi gereken ExecutableAction.

İlerlemeler
ExecutableActionResult Sonuç varsa action öğesinin ExecutableActionResult değeri, aksi takdirde boş.

uploadCache

public void uploadCache (ExecutableAction action, 
                ExecutableActionResult actionResult)

ExecutableAction için sonuçları yükler.

action sonucu mevcut değilse actionResult saklanır. Aksi takdirde sonuç güncellenir.

Parametreler
action ExecutableAction: Sonuçları oluşturan işlem.

actionResult ExecutableActionResult: action ile ilişkilendirilecek işlem sonucu.