CernVM-FS
2.12.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
upload_spooler_result.h
Go to the documentation of this file.
1
5
#ifndef CVMFS_UPLOAD_SPOOLER_RESULT_H_
6
#define CVMFS_UPLOAD_SPOOLER_RESULT_H_
7
8
#include <string>
9
10
#include "
compression/compression.h
"
11
#include "
file_chunk.h
"
12
13
namespace
upload {
14
23
struct
SpoolerResult
{
24
explicit
SpoolerResult
(
25
const
int
return_code
= -1,
26
const
std::string &
local_path
=
""
,
27
const
shash::Any
&
digest
=
shash::Any
(),
28
const
FileChunkList
&
file_chunks
=
FileChunkList
(),
29
const
zlib::Algorithms
compression_alg
=
zlib::kZlibDefault
)
30
:
return_code
(
return_code
)
31
,
local_path
(
local_path
)
32
,
content_hash
(
digest
)
33
,
file_chunks
(
file_chunks
)
34
,
compression_alg
(
compression_alg
) {}
35
36
inline
bool
IsChunked
()
const
{
return
!
file_chunks
.
IsEmpty
(); }
37
38
int
return_code
;
39
std::string
local_path
;
40
43
shash::Any
content_hash
;
44
FileChunkList
file_chunks
;
45
zlib::Algorithms
compression_alg
;
46
};
47
48
}
// namespace upload
49
50
#endif // CVMFS_UPLOAD_SPOOLER_RESULT_H_
upload::SpoolerResult::return_code
int return_code
the return value of the spooler operation
Definition:
upload_spooler_result.h:38
BigVector< FileChunk >
compression.h
upload::SpoolerResult::file_chunks
FileChunkList file_chunks
the file chunks generated during processing
Definition:
upload_spooler_result.h:44
shash::Any
Definition:
hash.h:467
zlib::Algorithms
Algorithms
Definition:
compression.h:44
FileChunkList
BigVector< FileChunk > FileChunkList
Definition:
file_chunk.h:51
upload::SpoolerResult::local_path
std::string local_path
the local_path previously given as input
Definition:
upload_spooler_result.h:39
upload::SpoolerResult::compression_alg
zlib::Algorithms compression_alg
Definition:
upload_spooler_result.h:45
digest
unsigned char digest[20]
Definition:
libcvmfs_cache.h:293
BigVector::IsEmpty
bool IsEmpty() const
Definition:
bigvector.h:72
upload::SpoolerResult::SpoolerResult
SpoolerResult(const int return_code=-1, const std::string &local_path="", const shash::Any &digest=shash::Any(), const FileChunkList &file_chunks=FileChunkList(), const zlib::Algorithms compression_alg=zlib::kZlibDefault)
Definition:
upload_spooler_result.h:24
upload::SpoolerResult
Definition:
upload_spooler_result.h:23
upload::SpoolerResult::content_hash
shash::Any content_hash
Definition:
upload_spooler_result.h:43
upload::SpoolerResult::IsChunked
bool IsChunked() const
Definition:
upload_spooler_result.h:36
zlib::kZlibDefault
Definition:
compression.h:45
file_chunk.h
cvmfs
cvmfs
upload_spooler_result.h
Generated on Sun Dec 1 2024 01:18:13 for CernVM-FS by
1.8.5