CernVM-FS
2.12.0
|
Classes | |
struct | Settings |
Public Member Functions | |
Session () | |
Session (const Settings &settings_session) | |
Session (const SettingsPublisher &settings_publisher, int llvl=0) | |
~Session () | |
void | Acquire () |
void | Drop () |
void | SetKeepAlive (bool value) |
bool | has_lease () const |
std::string | token_path () const |
Private Attributes | |
Settings | settings_ |
bool | keep_alive_ |
bool | has_lease_ |
Additional Inherited Members | |
Private Member Functions inherited from SingleCopy | |
SingleCopy () | |
A session encapsulates an active storage (gateway) lease
Definition at line 230 of file repository.h.
|
inline |
For non-gateway nodes, we have an implicit lease for the entire repository
Definition at line 248 of file repository.h.
|
explicit |
|
explicit |
publish::Session::~Session | ( | ) |
Drops the lease unless keep_alive_ is set
void publish::Session::Acquire | ( | ) |
void publish::Session::Drop | ( | ) |
|
inline |
Definition at line 260 of file repository.h.
void publish::Session::SetKeepAlive | ( | bool | value | ) |
|
inline |
Definition at line 261 of file repository.h.
|
private |
Definition at line 272 of file repository.h.
|
private |
If set to true, the session is not closed on destruction, i.e. the lease is not dropped and the lease token is not removed. A newly created Session object will pick up an existing lease token and not re-acquire it.
Definition at line 271 of file repository.h.
|
private |
Definition at line 264 of file repository.h.