hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/impl/Dispatcher.java
private ContainerCommandResponseProto handleReadContainer(
      ContainerCommandRequestProto msg)
      throws IOException {

    if (!msg.hasReadContainer()) {
      LOG.debug("Malformed read container request. trace ID: {}",
          msg.getTraceID());
      return ContainerUtils.malformedRequest(msg);
    }

    String name = msg.getReadContainer().getName();
    ContainerData container = this.containerManager.readContainer(name);
    return ContainerUtils.getReadContainerResponse(msg, container);
  }
/**
   * Calls into container logic and returns appropriate response.
   *
   * @param msg - Request
   * @return ContainerCommandResponseProto
   * @throws IOException
   */
Calls into container logic and returns appropriate response.
@param msg - Request
@return ContainerCommandResponseProto
@throws IOException
Calls into container logic and returns appropriate response . @param msg - Request @return ContainerCommandResponseProto @throws IOException
private ContainerCommandResponseProto handleReadContainer(
      ContainerCommandRequestProto msg)
      throws IOException {
    if (!msg.hasReadContainer()) {
      LOG.debug("Malformed read container request. trace ID: {}",
          msg.getTraceID());
      return ContainerUtils.malformedRequest(msg);
    }
    String name = msg.getReadContainer().getName();
    ContainerData container = this.containerManager.readContainer(name);
    return ContainerUtils.getReadContainerResponse(msg, container);
  }
private ContainerCommandResponseProto handleReadContainer ( ContainerCommandRequestProto msg ) throws IOException { if ( ! msg . hasReadContainer ( ) ) { LOG . debug ( "Malformed read container request. trace ID: {}" , msg . getTraceID ( ) ) ; return ContainerUtils . malformedRequest ( msg ) ; } String name = msg . getReadContainer ( ) . getName ( ) ; ContainerData container = this . containerManager . readContainer ( name ) ; return ContainerUtils . getReadContainerResponse ( msg , container ) ; }
Calls into container logic and returns appropriate response.
Calls into container logic and returns appropriate response .