public static HealthCheckAdminRequest readFrom(DataInputStream stream, AdminRequest adminRequest) throws IOException {
    Short versionId = stream.readShort();
    if (versionId != VERSION_1) {
      throw new IllegalStateException("Unrecognized version for HealthCheckAdminRequest: " + versionId);
    }
    return new HealthCheckAdminRequest(adminRequest);
  }
Reads from a stream and constructs a {@link HealthCheckAdminRequest}.
@param stream the stream to read from
@param adminRequest the {@link AdminRequest} that contains some necessary headers.
@return the {@link HealthCheckAdminRequest} constructed from the {@code stream}.
@throws IOException if there is any problem reading from the stream
ambry-protocol/src/main/java/com/github/ambry/protocol/HealthCheckAdminRequest.java