Class GrpcReplicationClient
java.lang.Object
org.apache.hadoop.ozone.container.replication.GrpcReplicationClient
- All Implemented Interfaces:
AutoCloseable
Client to read container data from gRPC.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classgRPC stream observer to CompletableFuture adapter. -
Constructor Summary
ConstructorsConstructorDescriptionGrpcReplicationClient(String host, int port, org.apache.hadoop.hdds.security.SecurityConfig secConfig, org.apache.hadoop.hdds.security.x509.certificate.client.CertificateClient certClient, CopyContainerCompression compression) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()toString()org.apache.ratis.thirdparty.io.grpc.stub.StreamObserver<org.apache.hadoop.hdds.protocol.datanode.proto.ContainerProtos.SendContainerRequest> upload(org.apache.ratis.thirdparty.io.grpc.stub.StreamObserver<org.apache.hadoop.hdds.protocol.datanode.proto.ContainerProtos.SendContainerResponse> responseObserver)
-
Constructor Details
-
GrpcReplicationClient
public GrpcReplicationClient(String host, int port, org.apache.hadoop.hdds.security.SecurityConfig secConfig, org.apache.hadoop.hdds.security.x509.certificate.client.CertificateClient certClient, CopyContainerCompression compression) throws IOException - Throws:
IOException
-
-
Method Details
-
download
-
upload
public org.apache.ratis.thirdparty.io.grpc.stub.StreamObserver<org.apache.hadoop.hdds.protocol.datanode.proto.ContainerProtos.SendContainerRequest> upload(org.apache.ratis.thirdparty.io.grpc.stub.StreamObserver<org.apache.hadoop.hdds.protocol.datanode.proto.ContainerProtos.SendContainerResponse> responseObserver) -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
toString
-