CernVM-FS  2.13.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
upload_spooler_definition.h
Go to the documentation of this file.
1 
5 #ifndef CVMFS_UPLOAD_SPOOLER_DEFINITION_H_
6 #define CVMFS_UPLOAD_SPOOLER_DEFINITION_H_
7 
8 #include <string>
9 
11 #include "crypto/hash.h"
12 
13 namespace upload {
14 
23  static const unsigned kDefaultMaxConcurrentUploads = 512;
24  static const unsigned kDefaultNumUploadTasks = 1;
25  static const char *kDriverNames[];
26  enum DriverType {
27  S3,
32  };
33 
44  const std::string &definition_string,
46  const zlib::Algorithms compression_algorithm = zlib::kZlibDefault,
47  const bool generate_legacy_bulk_chunks = false,
48  const bool use_file_chunking = false,
49  const size_t min_file_chunk_size = 0,
50  const size_t avg_file_chunk_size = 0,
51  const size_t max_file_chunk_size = 0,
52  const std::string &session_token_file = "",
53  const std::string &key_file = "");
54 
55  bool IsValid() const { return valid_; }
56 
63 
65  std::string temporary_path;
66 
71  std::string spooler_configuration;
72 
84 
90 
95  unsigned int num_upload_tasks;
96 
97  // The session_token_file parameter is only used for the HTTP driver
98  std::string session_token_file;
99  std::string key_file;
100 
101  bool valid_;
102 };
103 
104 } // namespace upload
105 
106 #endif // CVMFS_UPLOAD_SPOOLER_DEFINITION_H_
DriverType driver_type
the type of the spooler driver
SpoolerDefinition Dup2DefaultCompression() const
static const unsigned kDefaultNumUploadTasks
static const char * kDriverNames[]
corresponds to DriverType
Algorithms
Definition: hash.h:41
Algorithms
Definition: compression.h:44
SpoolerDefinition(const std::string &definition_string, const shash::Algorithms hash_algorithm, const zlib::Algorithms compression_algorithm=zlib::kZlibDefault, const bool generate_legacy_bulk_chunks=false, const bool use_file_chunking=false, const size_t min_file_chunk_size=0, const size_t avg_file_chunk_size=0, const size_t max_file_chunk_size=0, const std::string &session_token_file="", const std::string &key_file="")
std::string temporary_path
scratch space for the IngestionPipeline
static const unsigned kDefaultMaxConcurrentUploads