CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
anonymous_namespace{cmd_sub.cc}::SwissknifeSubscriber Class Reference
Inheritance diagram for anonymous_namespace{cmd_sub.cc}::SwissknifeSubscriber:
Collaboration diagram for anonymous_namespace{cmd_sub.cc}::SwissknifeSubscriber:

Public Member Functions

 SwissknifeSubscriber (const std::string &server_url, const std::string &repository, uint64_t min_revision, bool continuous, bool verbose)
 
virtual ~SwissknifeSubscriber ()
 
bool Init ()
 
- Public Member Functions inherited from notify::SubscriberSSE
 SubscriberSSE (const std::string &server_url)
 
virtual ~SubscriberSSE ()
 
virtual bool Subscribe (const std::string &topic)
 
virtual void Unsubscribe ()
 
- Public Member Functions inherited from notify::Subscriber
 Subscriber ()
 
virtual ~Subscriber ()
 

Private Member Functions

virtual notify::Subscriber::Status Consume (const std::string &repo, const std::string &msg_text)
 

Private Attributes

std::string repository_
 
perf::Statistics stats_
 
UniquePtr
< download::DownloadManager
dl_mgr_
 
UniquePtr
< signature::SignatureManager
sig_mgr_
 
uint64_t revision_
 
bool continuous_
 
bool verbose_
 

Additional Inherited Members

- Public Types inherited from notify::Subscriber
enum  Status { kContinue, kFinish, kError }
 

Detailed Description

Definition at line 29 of file cmd_sub.cc.

Constructor & Destructor Documentation

anonymous_namespace{cmd_sub.cc}::SwissknifeSubscriber::SwissknifeSubscriber ( const std::string &  server_url,
const std::string &  repository,
uint64_t  min_revision,
bool  continuous,
bool  verbose 
)
inline

Definition at line 31 of file cmd_sub.cc.

virtual anonymous_namespace{cmd_sub.cc}::SwissknifeSubscriber::~SwissknifeSubscriber ( )
inlinevirtual

Definition at line 42 of file cmd_sub.cc.

Member Function Documentation

virtual notify::Subscriber::Status anonymous_namespace{cmd_sub.cc}::SwissknifeSubscriber::Consume ( const std::string &  topic,
const std::string &  msg_text 
)
inlineprivatevirtual

Consume a message

Consume the message and return the status value that can be used to exit the subscription loop.

Implements notify::Subscriber.

Definition at line 79 of file cmd_sub.cc.

Here is the call graph for this function:

bool anonymous_namespace{cmd_sub.cc}::SwissknifeSubscriber::Init ( )
inline

Definition at line 47 of file cmd_sub.cc.

Here is the call graph for this function:

Member Data Documentation

bool anonymous_namespace{cmd_sub.cc}::SwissknifeSubscriber::continuous_
private

Definition at line 137 of file cmd_sub.cc.

UniquePtr<download::DownloadManager> anonymous_namespace{cmd_sub.cc}::SwissknifeSubscriber::dl_mgr_
private

Definition at line 133 of file cmd_sub.cc.

std::string anonymous_namespace{cmd_sub.cc}::SwissknifeSubscriber::repository_
private

Definition at line 130 of file cmd_sub.cc.

uint64_t anonymous_namespace{cmd_sub.cc}::SwissknifeSubscriber::revision_
private

Definition at line 136 of file cmd_sub.cc.

UniquePtr<signature::SignatureManager> anonymous_namespace{cmd_sub.cc}::SwissknifeSubscriber::sig_mgr_
private

Definition at line 134 of file cmd_sub.cc.

perf::Statistics anonymous_namespace{cmd_sub.cc}::SwissknifeSubscriber::stats_
private

Definition at line 132 of file cmd_sub.cc.

bool anonymous_namespace{cmd_sub.cc}::SwissknifeSubscriber::verbose_
private

Definition at line 138 of file cmd_sub.cc.


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