SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
SWC::Env::FsInterface Class Referencefinal

#include <swcdb/fs/Interface.h>

+ Collaboration diagram for SWC::Env::FsInterface:

Public Types

typedef std::shared_ptr< FsInterfacePtr
 

Public Member Functions

 FsInterface (const SWC::Config::Settings::Ptr &settings, FS::Type typ)
 
 ~FsInterface () noexcept
 

Static Public Member Functions

static void init (const SWC::Config::Settings::Ptr &settings, FS::Type typ)
 
static SWC_CAN_INLINE Ptrget () noexcept
 
static SWC_CAN_INLINE FS::Interface::Ptrinterface () noexcept
 
static SWC_CAN_INLINE FS::FileSystem::Ptrfs () noexcept
 
static void reset () noexcept
 

Private Attributes

FS::Interface::Ptr m_interface = nullptr
 

Static Private Attributes

static Ptr m_env = nullptr
 

Detailed Description

Definition at line 136 of file Interface.h.

Member Typedef Documentation

◆ Ptr

typedef std::shared_ptr<FsInterface> SWC::Env::FsInterface::Ptr

Definition at line 140 of file Interface.h.

Constructor & Destructor Documentation

◆ FsInterface()

SWC::Env::FsInterface::FsInterface ( const SWC::Config::Settings::Ptr settings,
FS::Type  typ 
)

Definition at line 518 of file Interface.cc.

Referenced by init().

+ Here is the caller graph for this function:

◆ ~FsInterface()

SWC::Env::FsInterface::~FsInterface ( )
inlinenoexcept

Definition at line 165 of file Interface.h.

Member Function Documentation

◆ fs()

static SWC_CAN_INLINE FS::FileSystem::Ptr& SWC::Env::FsInterface::fs ( )
inlinestaticnoexcept

Definition at line 155 of file Interface.h.

References m_env.

Referenced by SWC::Env::FsBroker::_shuttingdown(), SWC::Comm::Protocol::FsBroker::Handler::append(), SWC::Ranger::CellStore::Write::block(), SWC::Comm::Protocol::FsBroker::Handler::close(), SWC::Comm::Protocol::FsBroker::Handler::combi_pread(), SWC::FsBroker::Metric::Reporting::configure_fsbroker(), SWC::Manager::Metric::Reporting::configure_mngr(), SWC::Ranger::Metric::Reporting::configure_rgr(), SWC::Comm::Protocol::FsBroker::Handler::create(), SWC::Comm::Protocol::FsBroker::Handler::exists(), SWC::Comm::Protocol::FsBroker::Handler::flush(), SWC::Comm::Protocol::FsBroker::Handler::length(), SWC::Ranger::CommitLog::Fragment::load(), SWC::Ranger::CellStore::Read::load_blocks_index(), SWC::Ranger::CellStore::Block::Read::load_header(), SWC::Ranger::CommitLog::Fragment::load_header(), SWC::Ranger::CellStore::Block::Read::load_open(), SWC::Ranger::CommitLog::Fragment::load_read(), SWC::Ranger::CellStore::Read::load_trailer(), SWC::Utils::shell::Fs::ls(), SWC::Comm::Protocol::FsBroker::Handler::mkdirs(), SWC::Comm::Protocol::FsBroker::Handler::open(), SWC::Comm::Protocol::FsBroker::Handler::pread(), SWC::Comm::Protocol::FsBroker::Handler::read(), SWC::Comm::Protocol::FsBroker::Handler::read_all(), SWC::Comm::Protocol::FsBroker::Handler::readdir(), SWC::Comm::Protocol::FsBroker::Handler::remove(), SWC::Comm::Protocol::FsBroker::Handler::rename(), SWC::Comm::Protocol::FsBroker::Handler::rmdir(), SWC::Comm::Protocol::FsBroker::Handler::seek(), SWC::Manager::Schemas::store_make_block(), SWC::Comm::Protocol::FsBroker::Handler::sync(), SWC::Comm::Protocol::FsBroker::Handler::write(), SWC::Ranger::CommitLog::Fragment::write(), SWC::Ranger::CellStore::Write::write_blocks_index(), and SWC::Ranger::CellStore::Write::write_trailer().

+ Here is the caller graph for this function:

◆ get()

static SWC_CAN_INLINE Ptr& SWC::Env::FsInterface::get ( )
inlinestaticnoexcept

Definition at line 145 of file Interface.h.

References m_env.

◆ init()

void SWC::Env::FsInterface::init ( const SWC::Config::Settings::Ptr settings,
FS::Type  typ 
)
static

Definition at line 513 of file Interface.cc.

References FsInterface(), and m_env.

Referenced by SWC::FsBroker::AppContext::AppContext(), SWC::Manager::AppContext::AppContext(), SWC::Utils::shell::Fs::Fs(), and SWC::Ranger::AppContext::make().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ interface()

static SWC_CAN_INLINE FS::Interface::Ptr& SWC::Env::FsInterface::interface ( )
inlinestaticnoexcept

Definition at line 150 of file Interface.h.

References m_env.

Referenced by SWC::Ranger::CellStore::Read::_release_fd(), SWC::Ranger::CellStore::Read::close(), SWC::Ranger::CellStore::Write::close_and_validate(), SWC::Manager::Columns::columns_by_fs(), SWC::Manager::Column::create(), SWC::Ranger::CellStore::Write::create(), SWC::Ranger::CompactRange::create_cs(), SWC::Manager::Column::finalize_remove(), SWC::Comm::Protocol::Mngr::Req::RgrMngId::handle(), SWC::Manager::ColumnHealthCheck::ColumnMerger::RangesMerger::handle(), SWC::Manager::Column::init(), SWC::Ranger::Range::internal_create(), SWC::Ranger::Range::internal_create_folders(), SWC::Ranger::Range::internal_remove(), SWC::Ranger::Range::load(), SWC::Ranger::CommitLog::Fragments::load(), SWC::Ranger::RangeData::load(), SWC::Common::Files::Schema::load(), SWC::Ranger::CellStore::Read::load_blocks_index(), SWC::Ranger::CellStore::Readers::load_from_path(), SWC::Ranger::CellStore::Block::Read::load_header(), SWC::Ranger::CommitLog::Fragment::load_header(), SWC::Ranger::CellStore::Block::Read::load_open(), SWC::Ranger::CellStore::Read::load_trailer(), SWC::Ranger::CellStore::Readers::move_from(), SWC::Comm::Protocol::Mngr::Handler::RgrMngId::operator()(), SWC::Ranger::CompactRange::quit(), SWC::Common::Files::RgrData::read(), SWC::Ranger::Range::remove(), SWC::Ranger::CellStore::Read::remove(), SWC::Ranger::CellStore::Write::remove(), SWC::Ranger::CommitLog::Fragment::remove(), SWC::Common::Files::Schema::remove(), SWC::Manager::Column::remove(), SWC::Ranger::Range::remove_rgr(), SWC::Ranger::CellStore::Readers::replace(), SWC::Ranger::RangeData::save(), SWC::Common::Files::Schema::save(), SWC::Common::Files::RgrData::set_rgr(), SWC::FsBroker::AppContext::stop(), SWC::Manager::AppContext::stop(), SWC::Ranger::AppContext::stop(), SWC::Manager::Schemas::store_create(), SWC::Manager::Schemas::store_load(), SWC::Manager::Schemas::store_remove(), SWC::Ranger::CommitLog::Fragments::take_ownership(), and SWC::Utils::shell::Fs::~Fs().

+ Here is the caller graph for this function:

◆ reset()

static void SWC::Env::FsInterface::reset ( )
inlinestaticnoexcept

Definition at line 159 of file Interface.h.

References m_env.

Referenced by SWC::FsBroker::AppContext::stop(), SWC::Manager::AppContext::stop(), SWC::Ranger::AppContext::stop(), and SWC::Utils::shell::Fs::~Fs().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_env

Ptr SWC::Env::FsInterface::m_env = nullptr
inlinestaticprivate

Definition at line 169 of file Interface.h.

Referenced by fs(), get(), init(), interface(), and reset().

◆ m_interface

FS::Interface::Ptr SWC::Env::FsInterface::m_interface = nullptr
private

Definition at line 168 of file Interface.h.


The documentation for this class was generated from the following files: