15 {
"S3",
"local",
"gw",
"mock",
"unknown"};
18 const std::string& definition_string,
21 const bool generate_legacy_bulk_chunks,
22 const bool use_file_chunking,
23 const size_t min_file_chunk_size,
24 const size_t avg_file_chunk_size,
25 const size_t max_file_chunk_size,
26 const std::string& session_token_file,
27 const std::string& key_file)
28 : driver_type(Unknown),
29 hash_algorithm(hash_algorithm),
30 compression_alg(compression_algorithm),
31 generate_legacy_bulk_chunks(generate_legacy_bulk_chunks),
32 use_file_chunking(use_file_chunking),
33 min_file_chunk_size(min_file_chunk_size),
34 avg_file_chunk_size(avg_file_chunk_size),
35 max_file_chunk_size(max_file_chunk_size),
36 number_of_concurrent_uploads(kDefaultMaxConcurrentUploads),
37 num_upload_tasks(kDefaultNumUploadTasks),
38 session_token_file(session_token_file),
42 if (use_file_chunking && (min_file_chunk_size >= avg_file_chunk_size ||
43 avg_file_chunk_size >= max_file_chunk_size)) {
49 std::vector<std::string> upstream =
SplitString(definition_string,
',');
50 if (upstream.size() != 3) {
56 if (upstream[0] ==
"local") {
58 }
else if (upstream[0] ==
"S3") {
60 }
else if (upstream[0] ==
"gw") {
62 }
else if (upstream[0] ==
"mock") {
DriverType driver_type
the type of the spooler driver
SpoolerDefinition Dup2DefaultCompression() const
static const char * kDriverNames[]
corresponds to DriverType
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="")
vector< string > SplitString(const string &str, char delim)
std::string temporary_path
scratch space for the IngestionPipeline
std::string spooler_configuration
zlib::Algorithms compression_alg
CVMFS_EXPORT void LogCvmfs(const LogSource source, const int mask, const char *format,...)