class ChunkManagerDummyImpl implements ChunkManager {

  @Override
  public void writeChunk(Container container, BlockID blockID, ChunkInfo info,
      ChunkBuffer data, DispatcherContext dispatcherContext)
      throws StorageContainerException {

    Preconditions.checkNotNull(dispatcherContext);
    DispatcherContext.WriteChunkStage stage = dispatcherContext.getStage();

    ContainerData containerData = container.getContainerData();

    if (stage == DispatcherContext.WriteChunkStage.WRITE_DATA
        || stage == DispatcherContext.WriteChunkStage.COMBINED) {

      ChunkUtils.validateBufferSize(info.getLen(), data.remaining());

      HddsVolume volume = containerData.getVolume();
      VolumeIOStats volumeIOStats = volume.getVolumeIOStats();
      volumeIOStats.incWriteOpCount();
      volumeIOStats.incWriteBytes(info.getLen());
    }

    if (stage == DispatcherContext.WriteChunkStage.COMMIT_DATA
        || stage == DispatcherContext.WriteChunkStage.COMBINED) {
      containerData.updateWriteStats(info.getLen(), false);
    }
  }

}