CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
notify::PublisherHTTP Class Reference

#include <publisher_http.h>

Inheritance diagram for notify::PublisherHTTP:
Collaboration diagram for notify::PublisherHTTP:

Public Member Functions

 PublisherHTTP (const std::string &server_url)
 
virtual ~PublisherHTTP ()
 
virtual bool Publish (const std::string &msg, const std::string &topic)
 
- Public Member Functions inherited from notify::Publisher
virtual ~Publisher ()
 
virtual bool Init ()
 
virtual bool Finalize ()
 

Private Attributes

std::string server_url_
 

Detailed Description

Implementation of Publisher based on HTTP

Messsages are published to the notification system backend using cURL

Definition at line 19 of file publisher_http.h.

Constructor & Destructor Documentation

notify::PublisherHTTP::PublisherHTTP ( const std::string &  server_url)
explicit

Definition at line 38 of file publisher_http.cc.

notify::PublisherHTTP::~PublisherHTTP ( )
virtual

Definition at line 41 of file publisher_http.cc.

Member Function Documentation

bool notify::PublisherHTTP::Publish ( const std::string &  msg,
const std::string &  topic 
)
virtual

Publish a message with the specified topic

The message body and the message topic are given as strings

Implements notify::Publisher.

Definition at line 43 of file publisher_http.cc.

Here is the call graph for this function:

Member Data Documentation

std::string notify::PublisherHTTP::server_url_
private

Definition at line 27 of file publisher_http.h.

Referenced by Publish().


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