crawlserv++  [under development]
Application for crawling and analyzing textual content of websites.
crawlservpp::Struct::ThreadStatus Struct Reference

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...
 

Detailed Description

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.

Note
The thread ID is part of the status, because it will not be assigned until after the threas has been added to the database.
It will effectively be assigned by the database when the thread is added to its table of threads.

Constructor & Destructor Documentation

◆ ThreadStatus() [1/2]

crawlservpp::Struct::ThreadStatus::ThreadStatus ( )
default

Default constructor.

◆ ThreadStatus() [2/2]

crawlservpp::Struct::ThreadStatus::ThreadStatus ( std::uint64_t  setId,
const std::string &  setStatus,
bool  setPaused,
std::uint64_t  setLast,
std::uint64_t  setProcessed 
)
inline

Constructor setting the status of the thread.

Parameters
setIdThe ID of the thread.
setStatusConstant reference to a string containing the status message of the thread.
setPausedSet whether the thread is currently paused.
setLastThe progress of, i.e. the last processed ID by the thread.
setProcessedThe number of IDs processed by the thread.

Member Data Documentation

◆ id

std::uint64_t crawlservpp::Struct::ThreadStatus::id {}

◆ last

std::uint64_t crawlservpp::Struct::ThreadStatus::last {}

The last ID processed by the thread.

◆ paused

bool crawlservpp::Struct::ThreadStatus::paused {false}

Indicates whether the thread is paused at the moment.

Referenced by crawlservpp::Module::Thread::Thread().

◆ processed

std::uint64_t crawlservpp::Struct::ThreadStatus::processed {}

The number of IDs processed by the thread.

◆ status

std::string crawlservpp::Struct::ThreadStatus::status

The status message of the thread.

Referenced by crawlservpp::Module::Thread::Thread().


The documentation for this struct was generated from the following file: