RemoteCacheClient

public class RemoteCacheClient
extends Object implements ICacheClient

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


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

Özet

Alanlar

public static final Duration REMOTE_TIMEOUT

Herkese açık oluşturucular

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 araması yapar.

void uploadCache(ExecutableAction action, ExecutableActionResult actionResult)

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

Alanlar

REMOTE_TIMEOUT

public static final Duration REMOTE_TIMEOUT

Herkese açık oluşturucular

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 araması yapar.

Arayan, disk alanının tükenmemesi için çıktı dosyalarını kullandıktan sonra silmelidir.

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

İadeler
ExecutableActionResult Sonuç varsa ExecutableActionResult, yoksa boş değer.action

Verdiği hatalar
IOException
InterruptedException

uploadCache

public void uploadCache (ExecutableAction action, 
                ExecutableActionResult actionResult)

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

action sonucu yoksa 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.

Verdiği hatalar
IOException
InterruptedException