public class GrpcRemoteExecutionClients extends Object implements RemoteExecutionClients
Constructor and Description |
---|
GrpcRemoteExecutionClients(String instanceName,
io.grpc.ManagedChannel executionEngineChannel,
io.grpc.ManagedChannel casChannel,
int casDeadline,
MetadataProvider metadataProvider,
BuckEventBus buckEventBus,
RemoteExecutionStrategyConfig strategyConfig) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
ContentAddressedStorageClient |
getContentAddressedStorage() |
Protocol |
getProtocol() |
RemoteExecutionServiceClient |
getRemoteExecutionService() |
static String |
getResourceName(String instanceName,
Protocol.Digest digest) |
static com.google.common.util.concurrent.ListenableFuture<Unit> |
readByteStream(String instanceName,
Protocol.Digest digest,
com.google.bytestream.ByteStreamGrpc.ByteStreamStub byteStreamStub,
ThrowingConsumer<com.google.protobuf.ByteString,IOException> dataConsumer,
int casDeadline)
Reads a ByteStream onto the arg consumer.
|
public static final Protocol PROTOCOL
public GrpcRemoteExecutionClients(String instanceName, io.grpc.ManagedChannel executionEngineChannel, io.grpc.ManagedChannel casChannel, int casDeadline, MetadataProvider metadataProvider, BuckEventBus buckEventBus, RemoteExecutionStrategyConfig strategyConfig)
public static String getResourceName(String instanceName, Protocol.Digest digest)
public static com.google.common.util.concurrent.ListenableFuture<Unit> readByteStream(String instanceName, Protocol.Digest digest, com.google.bytestream.ByteStreamGrpc.ByteStreamStub byteStreamStub, ThrowingConsumer<com.google.protobuf.ByteString,IOException> dataConsumer, int casDeadline)
public RemoteExecutionServiceClient getRemoteExecutionService()
getRemoteExecutionService
in interface RemoteExecutionClients
public ContentAddressedStorageClient getContentAddressedStorage()
getContentAddressedStorage
in interface RemoteExecutionClients
public Protocol getProtocol()
getProtocol
in interface RemoteExecutionClients
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException