crawlserv++
[under development]
Application for crawling and analyzing textual content of websites.
|
Thread status containing its ID, status message, pause state, and progress. More...
#include <ThreadStatus.hpp>
Properties | |
std::uint64_t | id {} |
The ID of the thread. More... | |
std::string | status |
The status message of the thread. More... | |
bool | paused {false} |
Indicates whether the thread is paused at the moment. More... | |
std::uint64_t | last {} |
The last ID processed by the thread. More... | |
std::uint64_t | processed {} |
The number of IDs processed by the thread. More... | |
Construction | |
ThreadStatus ()=default | |
Default constructor. More... | |
ThreadStatus (std::uint64_t setId, const std::string &setStatus, bool setPaused, std::uint64_t setLast, std::uint64_t setProcessed) | |
Constructor setting the status of the thread. More... | |
Thread status containing its ID, status message, pause state, and progress.
The progress consists of the last ID and the number of IDs processed by the thread.
|
default |
Default constructor.
|
inline |
Constructor setting the status of the thread.
setId | The ID of the thread. |
setStatus | Constant reference to a string containing the status message of the thread. |
setPaused | Set whether the thread is currently paused. |
setLast | The progress of, i.e. the last processed ID by the thread. |
setProcessed | The number of IDs processed by the thread. |
std::uint64_t crawlservpp::Struct::ThreadStatus::id {} |
The ID of the thread.
Referenced by crawlservpp::Struct::AlgoThreadProperties::AlgoThreadProperties(), crawlservpp::Module::Thread::Thread(), and crawlservpp::Main::Server::tick().
std::uint64_t crawlservpp::Struct::ThreadStatus::last {} |
The last ID processed by the thread.
bool crawlservpp::Struct::ThreadStatus::paused {false} |
Indicates whether the thread is paused at the moment.
Referenced by crawlservpp::Module::Thread::Thread().
std::uint64_t crawlservpp::Struct::ThreadStatus::processed {} |
The number of IDs processed by the thread.
std::string crawlservpp::Struct::ThreadStatus::status |
The status message of the thread.
Referenced by crawlservpp::Module::Thread::Thread().