RemoteCacheClient
public
class
RemoteCacheClient
extends Object
implements
ICacheClient
java.lang.Object | |
↳ | com.android.tradefed.cache.remote.RemoteCacheClient |
원격 API 서버에 대한 gRPC 호출을 사용하는 RemoteActionCache 구현입니다.
요약
필드 | |
---|---|
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)
action
의 ExecutableActionResult
를 조회합니다.
디스크 공간이 부족해지지 않도록 호출자는 사용 후 출력 파일을 삭제해야 합니다.
매개변수 | |
---|---|
action |
ExecutableAction : 결과를 반환해야 하는 ExecutableAction 입니다. |
반환 값 | |
---|---|
ExecutableActionResult |
결과가 있는 경우 action 의 ExecutableActionResult 이고, 그렇지 않으면 null입니다. |
uploadCache
public void uploadCache (ExecutableAction action, ExecutableActionResult actionResult)
ExecutableAction
의 결과를 업로드합니다.
action
의 결과가 없으면 actionResult
가 저장됩니다. 그렇지 않으면 결과가 업데이트됩니다.
매개변수 | |
---|---|
action |
ExecutableAction : 결과를 생성한 작업입니다. |
actionResult |
ExecutableActionResult : action 와 연결할 작업 결과입니다. |