/* */ #ifndef _D_CHUNK_CHECKSUM_VALIDATOR_H_ #define _D_CHUNK_CHECKSUM_VALIDATOR_H_ #include "common.h" #include "LogFactory.h" #include "FileAllocationMonitor.h" #include "NullFileAllocationMonitor.h" #include "IteratableChunkChecksumValidator.h" class ChunkChecksumValidator { private: IteratableChunkChecksumValidatorHandle _validator; FileAllocationMonitorHandle fileAllocationMonitor; const Logger* logger; public: ChunkChecksumValidator(const IteratableChunkChecksumValidatorHandle v): _validator(v), fileAllocationMonitor(new NullFileAllocationMonitor()), logger(LogFactory::getInstance()) {} ~ChunkChecksumValidator() {} void validate(); void setFileAllocationMonitor(const FileAllocationMonitorHandle& monitor) { this->fileAllocationMonitor = monitor; } }; typedef SharedHandle ChunkChecksumValidatorHandle; #endif // _D_CHUNK_CHECKSUM_VALIDATOR_H_