CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
notification_client.h
Go to the documentation of this file.
1 
5 #ifndef CVMFS_NOTIFICATION_CLIENT_H_
6 #define CVMFS_NOTIFICATION_CLIENT_H_
7 
8 #include <string>
9 
10 #include "fuse_remount.h"
11 #include "network/download.h"
12 #include "notify/subscriber.h"
13 #include "util/pointer.h"
14 #include "util/single_copy.h"
15 
16 namespace signature {
17 class SignatureManager;
18 }
19 
34  public:
35  NotificationClient(const std::string& config, const std::string& repo_name,
36  FuseRemounter* remounter,
39  virtual ~NotificationClient();
40 
41  void Spawn();
42 
43  private:
44  static void* Run(void* instance);
45 
46  std::string config_;
47  std::string repo_name_;
52  pthread_t thread_;
53  bool spawned_;
54 };
55 
56 #endif // CVMFS_NOTIFICATION_CLIENT_H_
NotificationClient(const std::string &config, const std::string &repo_name, FuseRemounter *remounter, download::DownloadManager *dl_mgr, signature::SignatureManager *sig_mgr)
static void * Run(void *instance)
signature::SignatureManager * sig_mgr_
FuseRemounter * remounter_
download::DownloadManager * dl_mgr_
UniquePtr< notify::Subscriber > subscriber_