Class GrpcContainerUploader.SendContainerResponseStreamObserver

java.lang.Object
org.apache.hadoop.ozone.container.replication.GrpcContainerUploader.SendContainerResponseStreamObserver
All Implemented Interfaces:
org.apache.ratis.thirdparty.io.grpc.stub.StreamObserver<org.apache.hadoop.hdds.protocol.datanode.proto.ContainerProtos.SendContainerResponse>
Enclosing class:
GrpcContainerUploader

public static class GrpcContainerUploader.SendContainerResponseStreamObserver extends Object implements org.apache.ratis.thirdparty.io.grpc.stub.StreamObserver<org.apache.hadoop.hdds.protocol.datanode.proto.ContainerProtos.SendContainerResponse>
Observes gRPC response for SendContainer request, notifies callback on completion/error.
  • Method Details

    • onNext

      public void onNext(org.apache.hadoop.hdds.protocol.datanode.proto.ContainerProtos.SendContainerResponse sendContainerResponse)
      Specified by:
      onNext in interface org.apache.ratis.thirdparty.io.grpc.stub.StreamObserver<org.apache.hadoop.hdds.protocol.datanode.proto.ContainerProtos.SendContainerResponse>
    • onError

      public void onError(Throwable t)
      Specified by:
      onError in interface org.apache.ratis.thirdparty.io.grpc.stub.StreamObserver<org.apache.hadoop.hdds.protocol.datanode.proto.ContainerProtos.SendContainerResponse>
    • onCompleted

      public void onCompleted()
      Specified by:
      onCompleted in interface org.apache.ratis.thirdparty.io.grpc.stub.StreamObserver<org.apache.hadoop.hdds.protocol.datanode.proto.ContainerProtos.SendContainerResponse>
    • isError

      public boolean isError()
    • getError

      public Throwable getError()