CernVM-FS  2.12.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

Messages 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)

Definition at line 38 of file

notify::PublisherHTTP::~PublisherHTTP ( )

Definition at line 41 of file

Member Function Documentation

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

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

Here is the call graph for this function:

Member Data Documentation

std::string notify::PublisherHTTP::server_url_

Definition at line 27 of file publisher_http.h.

Referenced by Publish().

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