#include <swcdb/fs/Interface.h>
Public Types | |
typedef std::shared_ptr< FsInterface > | Ptr |
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 Ptr & | get () noexcept |
static SWC_CAN_INLINE FS::Interface::Ptr & | interface () noexcept |
static SWC_CAN_INLINE FS::FileSystem::Ptr & | fs () noexcept |
static void | reset () noexcept |
Private Attributes | |
FS::Interface::Ptr | m_interface = nullptr |
Static Private Attributes | |
static Ptr | m_env = nullptr |
Definition at line 136 of file Interface.h.
typedef std::shared_ptr<FsInterface> SWC::Env::FsInterface::Ptr |
Definition at line 140 of file Interface.h.
SWC::Env::FsInterface::FsInterface | ( | const SWC::Config::Settings::Ptr & | settings, |
FS::Type | typ | ||
) |
Definition at line 518 of file Interface.cc.
Referenced by init().
|
inlinenoexcept |
Definition at line 165 of file Interface.h.
|
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().
|
inlinestaticnoexcept |
Definition at line 145 of file Interface.h.
References m_env.
|
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().
|
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().
|
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().
|
inlinestaticprivate |
Definition at line 169 of file Interface.h.
Referenced by fs(), get(), init(), interface(), and reset().
|
private |
Definition at line 168 of file Interface.h.