CernVM-FS
2.12.0
|
#include <notification_client.h>
Public Member Functions | |
NotificationClient (const std::string &config, const std::string &repo_name, FuseRemounter *remounter, download::DownloadManager *dl_mgr, signature::SignatureManager *sig_mgr) | |
virtual | ~NotificationClient () |
void | Spawn () |
Static Private Member Functions | |
static void * | Run (void *instance) |
Private Attributes | |
std::string | config_ |
std::string | repo_name_ |
FuseRemounter * | remounter_ |
download::DownloadManager * | dl_mgr_ |
signature::SignatureManager * | sig_mgr_ |
UniquePtr< notify::Subscriber > | subscriber_ |
pthread_t | thread_ |
bool | spawned_ |
Additional Inherited Members | |
Protected Member Functions inherited from SingleCopy | |
SingleCopy () | |
Notification system client running inside the mountpoint process
This class implements a client for the repository notification system, meant to run inside the mountpoint process. Constructor arguments are:
config | - configuration string to connect to the notification system (currently the URL of the notification server) |
repo_name | - name of the repository associated with the mount point |
remounter | - a pointer to a FuseRemounter object; upon receiving valid notifications about repository activity, a remount is triggered |
sig_mgr | - a pointer to a SignatureManager object used to verify messages received from the notification system |
Definition at line 33 of file notification_client.h.
NotificationClient::NotificationClient | ( | const std::string & | config, |
const std::string & | repo_name, | ||
FuseRemounter * | remounter, | ||
download::DownloadManager * | dl_mgr, | ||
signature::SignatureManager * | sig_mgr | ||
) |
Definition at line 109 of file notification_client.cc.
|
virtual |
|
staticprivate |
Definition at line 143 of file notification_client.cc.
Referenced by Spawn().
void NotificationClient::Spawn | ( | ) |
Definition at line 133 of file notification_client.cc.
Referenced by Spawn().
|
private |
Definition at line 46 of file notification_client.h.
Referenced by Run().
|
private |
Definition at line 49 of file notification_client.h.
Referenced by Run().
|
private |
Definition at line 48 of file notification_client.h.
Referenced by Run().
|
private |
Definition at line 47 of file notification_client.h.
Referenced by Run().
|
private |
Definition at line 50 of file notification_client.h.
Referenced by Run().
|
private |
Definition at line 53 of file notification_client.h.
Referenced by Spawn(), and ~NotificationClient().
|
private |
Definition at line 51 of file notification_client.h.
Referenced by Run(), and ~NotificationClient().
|
private |
Definition at line 52 of file notification_client.h.
Referenced by Spawn(), and ~NotificationClient().