CernVM-FS  2.10.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 
10 #include "compression.h"
11 #include "hash.h"
12 
13 namespace upload {
14 
23  static const unsigned kDefaultMaxConcurrentUploads = 512;
24  static const unsigned kDefaultNumUploadTasks = 1;
25  static const char* kDriverNames[];
27 
38  const std::string& definition_string,
40  const zlib::Algorithms compression_algorithm = zlib::kZlibDefault,
41  const bool generate_legacy_bulk_chunks = false,
42  const bool use_file_chunking = false,
43  const size_t min_file_chunk_size = 0,
44  const size_t avg_file_chunk_size = 0,
45  const size_t max_file_chunk_size = 0,
46  const std::string& session_token_file = "",
47  const std::string& key_file = "");
48 
49  bool IsValid() const { return valid_; }
50 
57 
59  std::string temporary_path;
60 
65  std::string spooler_configuration;
66 
78 
84 
89  unsigned int num_upload_tasks;
90 
91  // The session_token_file parameter is only used for the HTTP driver
92  std::string session_token_file;
93  std::string key_file;
94 
95  bool valid_;
96 };
97 
98 } // namespace upload
99 
100 #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:40
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