libzypp 17.37.17
|
#include <zypp-media/ng/private/providemessage_p.h>
Public Types | |
enum | WorkerType : uint32_t { Invalid = 0 , Downloading = 1 , SimpleMount = 2 , VolatileMount = 3 , CPUBound = 4 } |
enum | Flags : uint32_t { None = 0 , SingleInstance = 1 , Pipeline = 2 , ZyppLogFormat = 4 , FileArtifacts = 8 } |
Public Member Functions | |
WorkerCaps () | |
~WorkerCaps () | |
WorkerCaps (const WorkerCaps &)=default | |
WorkerCaps (WorkerCaps &&)=default | |
WorkerCaps & | operator= (const WorkerCaps &)=default |
WorkerCaps & | operator= (WorkerCaps &&)=default |
uint32_t | protocol_version () const |
WorkerType | worker_type () const |
Flags | cfg_flags () const |
const std::string & | worker_name () const |
void | set_protocol_version (uint32_t v) |
void | set_worker_type (WorkerType t) |
void | set_cfg_flags (Flags f) |
void | set_worker_name (std::string name) |
zyppng::expected< zypp::PluginFrame > | toStompMessage () const |
Static Public Member Functions | |
static zyppng::expected< WorkerCaps > | fromStompMessage (const zypp::PluginFrame &msg) |
Static Public Attributes | |
static constexpr std::string_view | typeName = "WorkerCaps" |
Private Attributes | |
uint32_t | _protocolVersion = 1 |
uint32_t | _workerType = Invalid |
uint32_t | _cfgFlags = None |
std::string | _workerName |
Definition at line 375 of file providemessage_p.h.
enum zyppng::WorkerCaps::WorkerType : uint32_t |
The worker type, see the description in Worker Types above
Enumerator | |
---|---|
Invalid | |
Downloading | |
SimpleMount | |
VolatileMount | |
CPUBound |
Definition at line 379 of file providemessage_p.h.
enum zyppng::WorkerCaps::Flags : uint32_t |
Enumerator | |
---|---|
None | |
SingleInstance | |
Pipeline | |
ZyppLogFormat | |
FileArtifacts |
Definition at line 387 of file providemessage_p.h.
|
explicit |
Worker Capabilities , sent by the workers to the provider
Definition at line 50 of file providemessage.cc.
zyppng::WorkerCaps::~WorkerCaps | ( | ) |
Definition at line 53 of file providemessage.cc.
|
default |
|
default |
|
default |
|
default |
uint32_t zyppng::WorkerCaps::protocol_version | ( | ) | const |
Definition at line 56 of file providemessage.cc.
WorkerCaps::WorkerType zyppng::WorkerCaps::worker_type | ( | ) | const |
Definition at line 61 of file providemessage.cc.
WorkerCaps::Flags zyppng::WorkerCaps::cfg_flags | ( | ) | const |
Definition at line 66 of file providemessage.cc.
const std::string & zyppng::WorkerCaps::worker_name | ( | ) | const |
Definition at line 71 of file providemessage.cc.
void zyppng::WorkerCaps::set_protocol_version | ( | uint32_t | v | ) |
Definition at line 76 of file providemessage.cc.
void zyppng::WorkerCaps::set_worker_type | ( | WorkerType | t | ) |
Definition at line 81 of file providemessage.cc.
void zyppng::WorkerCaps::set_cfg_flags | ( | Flags | f | ) |
Definition at line 86 of file providemessage.cc.
void zyppng::WorkerCaps::set_worker_name | ( | std::string | name | ) |
Definition at line 91 of file providemessage.cc.
zyppng::expected< zypp::PluginFrame > zyppng::WorkerCaps::toStompMessage | ( | ) | const |
Definition at line 96 of file providemessage.cc.
|
static |
Definition at line 112 of file providemessage.cc.
|
staticconstexpr |
Definition at line 414 of file providemessage_p.h.
|
private |
Definition at line 419 of file providemessage_p.h.
|
private |
Definition at line 420 of file providemessage_p.h.
|
private |
Definition at line 421 of file providemessage_p.h.
|
private |
Definition at line 422 of file providemessage_p.h.