CernVM-FS
2.12.0
|
#include <session_context.h>
Classes | |
struct | UploadJob |
Public Member Functions | |
SessionContext () | |
Public Member Functions inherited from upload::SessionContextBase | |
SessionContextBase () | |
virtual | ~SessionContextBase () |
bool | Initialize (const std::string &api_url, const std::string &session_token, const std::string &key_id, const std::string &secret, uint64_t max_pack_size=ObjectPack::kDefaultLimit, uint64_t max_queue_size=10) |
bool | Finalize (bool commit, const std::string &old_root_hash, const std::string &new_root_hash, const RepositoryTag &tag) |
void | WaitForUpload () |
ObjectPack::BucketHandle | NewBucket () |
bool | CommitBucket (const ObjectPack::BucketContentType type, const shash::Any &id, const ObjectPack::BucketHandle handle, const std::string &name="", const bool force_dispatch=false) |
Protected Member Functions | |
virtual bool | InitializeDerived (uint64_t max_queue_size) |
virtual bool | FinalizeDerived () |
virtual bool | Commit (const std::string &old_root_hash, const std::string &new_root_hash, const RepositoryTag &tag) |
virtual Future< bool > * | DispatchObjectPack (ObjectPack *pack) |
virtual bool | DoUpload (const UploadJob *job) |
Static Private Member Functions | |
static void * | UploadLoop (void *data) |
Private Attributes | |
UniquePtr< Tube< UploadJob > > | upload_jobs_ |
pthread_t | worker_ |
Static Private Attributes | |
static UploadJob | terminator_ |
Additional Inherited Members | |
Protected Attributes inherited from upload::SessionContextBase | |
Tube< Future< bool > > | upload_results_ |
std::string | api_url_ |
std::string | session_token_ |
std::string | key_id_ |
std::string | secret_ |
Definition at line 102 of file session_context.h.
upload::SessionContext::SessionContext | ( | ) |
Definition at line 258 of file session_context.cc.
|
protectedvirtual |
Implements upload::SessionContextBase.
Definition at line 290 of file session_context.cc.
|
protectedvirtual |
Implements upload::SessionContextBase.
Definition at line 308 of file session_context.cc.
|
protectedvirtual |
Definition at line 317 of file session_context.cc.
Referenced by UploadLoop().
|
protectedvirtual |
Implements upload::SessionContextBase.
Definition at line 275 of file session_context.cc.
|
protectedvirtual |
Implements upload::SessionContextBase.
Definition at line 265 of file session_context.cc.
|
staticprivate |
Definition at line 396 of file session_context.cc.
Referenced by InitializeDerived().
|
staticprivate |
Definition at line 131 of file session_context.h.
Referenced by FinalizeDerived(), and UploadLoop().
Definition at line 127 of file session_context.h.
Referenced by DispatchObjectPack(), FinalizeDerived(), InitializeDerived(), and UploadLoop().
|
private |
Definition at line 129 of file session_context.h.
Referenced by FinalizeDerived(), and InitializeDerived().