CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
commit_processor.h
Go to the documentation of this file.
1 
5 #ifndef CVMFS_RECEIVER_COMMIT_PROCESSOR_H_
6 #define CVMFS_RECEIVER_COMMIT_PROCESSOR_H_
7 
8 #include <string>
9 
10 #include "repository_tag.h"
11 #include "server_tool.h"
12 #include "util/pointer.h"
13 
14 namespace receiver {
15 
27  public:
29 
31  virtual ~CommitProcessor();
32 
33  Result Process(const std::string& lease_path, const shash::Any& old_root_hash,
34  const shash::Any& new_root_hash, const RepositoryTag& tag,
35  uint64_t *final_revision);
36 
37  int GetNumErrors() const { return num_errors_; }
38 
39  void SetStatistics(perf::Statistics *st, std::string start_time);
40 
41  private:
44  std::string start_time_;
45 };
46 
47 } // namespace receiver
48 
49 #endif // CVMFS_RECEIVER_COMMIT_PROCESSOR_H_
perf::Statistics * statistics_
void SetStatistics(perf::Statistics *st, std::string start_time)
Result Process(const std::string &lease_path, const shash::Any &old_root_hash, const shash::Any &new_root_hash, const RepositoryTag &tag, uint64_t *final_revision)