public class GrpcContentAddressableStorageClient extends Object implements ContentAddressedStorageClient
ContentAddressedStorageClient.FileMaterializer
Constructor and Description |
---|
GrpcContentAddressableStorageClient(build.bazel.remote.execution.v2.ContentAddressableStorageGrpc.ContentAddressableStorageFutureStub storageStub,
com.google.bytestream.ByteStreamGrpc.ByteStreamStub byteStreamStub,
int casDeadline,
String instanceName,
Protocol protocol,
BuckEventBus buckEventBus,
com.facebook.buck.remoteexecution.proto.RemoteExecutionMetadata metadata,
int outputMaterializationThreads) |
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.ListenableFuture<Unit> |
addMissing(Collection<UploadDataSupplier> data) |
boolean |
containsDigest(Protocol.Digest digest) |
com.google.common.util.concurrent.ListenableFuture<ByteBuffer> |
fetch(Protocol.Digest digest) |
com.google.common.util.concurrent.ListenableFuture<Unit> |
materializeOutputs(List<Protocol.OutputDirectory> outputDirectories,
List<Protocol.OutputFile> outputFiles,
ContentAddressedStorageClient.FileMaterializer materializer)
Materializes the outputFiles and outputDirectories into root.
|
public GrpcContentAddressableStorageClient(build.bazel.remote.execution.v2.ContentAddressableStorageGrpc.ContentAddressableStorageFutureStub storageStub, com.google.bytestream.ByteStreamGrpc.ByteStreamStub byteStreamStub, int casDeadline, String instanceName, Protocol protocol, BuckEventBus buckEventBus, com.facebook.buck.remoteexecution.proto.RemoteExecutionMetadata metadata, int outputMaterializationThreads)
public com.google.common.util.concurrent.ListenableFuture<Unit> addMissing(Collection<UploadDataSupplier> data) throws IOException
addMissing
in interface ContentAddressedStorageClient
IOException
public com.google.common.util.concurrent.ListenableFuture<Unit> materializeOutputs(List<Protocol.OutputDirectory> outputDirectories, List<Protocol.OutputFile> outputFiles, ContentAddressedStorageClient.FileMaterializer materializer) throws IOException
ContentAddressedStorageClient
materializeOutputs
in interface ContentAddressedStorageClient
IOException
public boolean containsDigest(Protocol.Digest digest)
containsDigest
in interface ContentAddressedStorageClient
public com.google.common.util.concurrent.ListenableFuture<ByteBuffer> fetch(Protocol.Digest digest)
fetch
in interface ContentAddressedStorageClient