/* */ #include "FileAllocationDispatcherCommand.h" #include "FileAllocationEntry.h" #include "FileAllocationCommand.h" #include "message.h" #include "Logger.h" #include "DownloadContext.h" #include "util.h" #include "ServerStatMan.h" #include "CheckIntegrityEntry.h" namespace aria2 { FileAllocationDispatcherCommand::FileAllocationDispatcherCommand (cuid_t cuid, const SharedHandle& fileAllocMan, DownloadEngine* e):SequentialDispatcherCommand (cuid, fileAllocMan, e) {} Command* FileAllocationDispatcherCommand::createCommand (const SharedHandle& entry) { cuid_t newCUID = getDownloadEngine()->newCUID(); if(getLogger()->info()) { getLogger()->info(MSG_FILE_ALLOCATION_DISPATCH, util::itos(newCUID).c_str()); } FileAllocationCommand* command = new FileAllocationCommand(newCUID, entry->getRequestGroup(), getDownloadEngine(), entry); return command; } } // namespace aria2