bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
bes::GlobalMetadataStore::MDSReadLock Struct Reference

Unlock and close the MDS item when the ReadLock goes out of scope. More...

#include <GlobalMetadataStore.h>

Inheritance diagram for bes::GlobalMetadataStore::MDSReadLock:
Inheritance graph
Collaboration diagram for bes::GlobalMetadataStore::MDSReadLock:
Collaboration graph

Public Member Functions

virtual void clearLock ()
 
 MDSReadLock (const std::string n, bool l, GlobalMetadataStore *store)
 
virtual bool operator() ()
 

Public Attributes

bool locked
 
GlobalMetadataStoremds
 
std::string name
 

Detailed Description

Unlock and close the MDS item when the ReadLock goes out of scope.

Note
This needs to be public because software that uses the MDS needs to hold instances of the MDSReadLock.
Passing in a pointer to an instance of GlobalMetadataStore makes GlobalMetadataStore easier to subclass. If get_instance() is called in this code, then only a GlobalMetadataStore, and not the subclass, will be used to unlock the item.

Definition at line 193 of file GlobalMetadataStore.h.

Constructor & Destructor Documentation

◆ MDSReadLock() [1/2]

bes::GlobalMetadataStore::MDSReadLock::MDSReadLock ( )
inline

Definition at line 197 of file GlobalMetadataStore.h.

◆ MDSReadLock() [2/2]

bes::GlobalMetadataStore::MDSReadLock::MDSReadLock ( const std::string n,
bool l,
GlobalMetadataStore * store )
inline

Definition at line 198 of file GlobalMetadataStore.h.

◆ ~MDSReadLock()

bes::GlobalMetadataStore::MDSReadLock::~MDSReadLock ( )
inline

Definition at line 199 of file GlobalMetadataStore.h.

Member Function Documentation

◆ clearLock()

virtual void bes::GlobalMetadataStore::MDSReadLock::clearLock ( )
inlinevirtual

Definition at line 207 of file GlobalMetadataStore.h.

◆ operator()()

virtual bool bes::GlobalMetadataStore::MDSReadLock::operator() ( )
inlinevirtual

Definition at line 204 of file GlobalMetadataStore.h.

Member Data Documentation

◆ locked

bool bes::GlobalMetadataStore::MDSReadLock::locked

Definition at line 195 of file GlobalMetadataStore.h.

◆ mds

GlobalMetadataStore* bes::GlobalMetadataStore::MDSReadLock::mds

Definition at line 196 of file GlobalMetadataStore.h.

◆ name

std::string bes::GlobalMetadataStore::MDSReadLock::name

Definition at line 194 of file GlobalMetadataStore.h.


The documentation for this struct was generated from the following file: