/* */ #ifndef D_DHT_BUCKET_REFRESH_COMMAND_H #define D_DHT_BUCKET_REFRESH_COMMAND_H #include "TimeBasedCommand.h" #include "SharedHandle.h" namespace aria2 { class DHTRoutingTable; class DHTTaskQueue; class DHTTaskFactory; class DHTBucketRefreshCommand:public TimeBasedCommand { private: SharedHandle routingTable_; SharedHandle taskQueue_; SharedHandle taskFactory_; public: DHTBucketRefreshCommand(cuid_t cuid, DownloadEngine* e, time_t interval); virtual ~DHTBucketRefreshCommand(); virtual void preProcess(); virtual void process(); void setRoutingTable(const SharedHandle& routingTable); void setTaskQueue(const SharedHandle& taskQueue); void setTaskFactory(const SharedHandle& taskFactory); }; } // namespace aria2 #endif // D_DHT_BUCKET_REFRESH_COMMAND_H