#include <swcdb/core/config/Property.h>
Public Types | |
typedef Value_int32_g * | Ptr |
typedef std::function< void(int32_t)> | OnChg_t |
![]() | |
enum | Type : uint8_t { TYPE_BOOL, TYPE_UINT8, TYPE_UINT16, TYPE_INT32, TYPE_INT64, TYPE_DOUBLE, TYPE_STRING, TYPE_ENUM, TYPE_STRINGS, TYPE_INT64S, TYPE_DOUBLES, TYPE_BOOL_G, TYPE_UINT8_G, TYPE_UINT16_G, TYPE_INT32_G, TYPE_UINT64_G, TYPE_ENUM_G, TYPE_STRINGS_G } |
typedef Value * | Ptr |
Public Member Functions | |
Value_int32_g (const int32_t &v, OnChg_t &&cb, uint8_t flags=0) | |
Value_int32_g (Value_int32_g *ptr) | |
virtual | ~Value_int32_g () noexcept |
Value::Ptr | make_new (const Strings &values=Strings()) override |
void | set_from (Value::Ptr ptr) override |
void | set_from (const Strings &values) override |
Type SWC_CONST_FUNC | type () const noexcept override |
std::string | to_string () const override |
SWC_CAN_INLINE int32_t | get () const noexcept |
void | on_change () const |
void | set_cb_on_chg (OnChg_t &&cb) |
![]() | |
Value (uint8_t flags=0) noexcept | |
Value (Ptr ptr) noexcept | |
virtual | ~Value () noexcept |
std::ostream & | operator<< (std::ostream &ostream) |
bool | is_skippable () const noexcept |
bool | is_guarded () const noexcept |
Ptr | default_value (bool defaulted) noexcept |
bool | is_default () const noexcept |
Ptr | zero_token () noexcept |
bool | is_zero_token () const noexcept |
Public Attributes | |
Core::Atomic< int32_t > | value |
OnChg_t | on_chg_cb |
![]() | |
Core::Atomic< uint8_t > | flags |
Static Public Attributes | |
static const Type | value_type = TYPE_INT32_G |
![]() | |
static const uint8_t | SKIPPABLE = 0x01 |
static const uint8_t | GUARDED = 0x02 |
static const uint8_t | DEFAULT = 0x04 |
static const uint8_t | NO_TOKEN = 0x08 |
Additional Inherited Members | |
![]() | |
static const char *SWC_CONST_FUNC | to_string (Type type) noexcept |
template<typename T > | |
static SWC_CAN_INLINE T * | get_pointer (Ptr ptr) |
static void | assure_match (Type t1, Type t2) |
Definition at line 581 of file Property.h.
typedef std::function<void(int32_t)> SWC::Config::Property::Value_int32_g::OnChg_t |
Definition at line 586 of file Property.h.
Definition at line 585 of file Property.h.
SWC::Config::Property::Value_int32_g::Value_int32_g | ( | const int32_t & | v, |
Value_int32_g::OnChg_t && | cb, | ||
uint8_t | flags = 0 |
||
) |
Definition at line 810 of file Property.cc.
Referenced by make_new().
SWC::Config::Property::Value_int32_g::Value_int32_g | ( | Value_int32_g * | ptr | ) |
Definition at line 815 of file Property.cc.
|
virtualnoexcept |
Definition at line 820 of file Property.cc.
|
inlinenoexcept |
Definition at line 605 of file Property.h.
Referenced by SWC::System::Mem::_check_stat(), SWC::System::Mem::_release(), SWC::FS::FileSystemBroker::append(), SWC::Manager::Rangers::assign_ranges(), SWC::Manager::Rangers::assign_ranges_run(), SWC::Ranger::ColumnCfg::block_cells(), SWC::Ranger::ColumnCfg::block_size(), SWC::Ranger::ColumnCfg::cellstore_size(), SWC::Manager::MngdColumns::change_active(), SWC::Manager::Rangers::changes(), SWC::Manager::RangersResources::check(), SWC::client::Schemas::clear_expired(), SWC::client::CachedRangers::clear_expired(), SWC::client::Managers::MasterRangesCache::Column::clear_expired(), SWC::FS::FileSystemBroker::close(), SWC::FS::FileSystemBroker::combi_pread(), SWC::Ranger::Compaction::compact(), SWC::Ranger::Compaction::compacted(), SWC::FS::FileSystemBroker::create(), SWC::FS::FileSystemCeph::create(), SWC::FS::FileSystemHadoopJVM::create(), SWC::Manager::MngdColumns::create_schemas_store(), SWC::Comm::client::ConnQueue::delay(), SWC::Manager::MngrRole::disconnection(), SWC::FS::FileSystemBroker::exists(), SWC::Manager::MngrRole::fill_states(), SWC::FS::FileSystemBroker::flush(), SWC::client::CachedRangers::get(), SWC::client::Schemas::get(), SWC::Common::Query::Update::Metric::Reporting::System::get_cpu_ms_interval(), SWC::FS::FileSystemHadoopJVM::get_fs(), SWC::Manager::Rangers::health_check_columns(), SWC::FS::FileSystemBroker::length(), SWC::Manager::MngrRole::manager_checker(), SWC::Manager::MngrRole::managers_checker(), SWC::Manager::MngrRole::managers_checkin(), SWC::System::Mem::Mem(), SWC::FS::FileSystemBroker::mkdirs(), on_change(), SWC::FS::FileSystemBroker::open(), SWC::FS::FileSystemHadoopJVM::open(), SWC::FS::FileSystemBroker::pread(), SWC::Manager::Rangers::range_loaded(), SWC::FS::FileSystemBroker::read(), SWC::FS::FileSystemBroker::readdir(), SWC::FS::FileSystemBroker::remove(), SWC::FS::FileSystemBroker::rename(), SWC::client::Query::Update::Handlers::Metric::Reporting::report(), SWC::FS::FileSystemBroker::rmdir(), SWC::Ranger::Compaction::run(), SWC::Comm::PeriodicTimer::schedule(), SWC::client::Query::Update::Handlers::Metric::Reporting::schedule(), SWC::Comm::client::ConnQueue::schedule_close(), SWC::Manager::Rangers::schedule_run(), SWC::FS::FileSystemBroker::seek(), SWC::Comm::Protocol::Mngr::Req::RgrMngId::set(), SWC::Manager::MngrRole::set_mngr_inchain(), SWC::FS::FileSystemHadoopJVM::setup_connection(), SWC::FS::FileSystemBroker::sync(), and SWC::FS::FileSystemBroker::write().
|
overridevirtual |
Implements SWC::Config::Property::Value.
Definition at line 822 of file Property.cc.
References SWC::Core::Vector< T, SizeT, GROW_SZ >::empty(), and Value_int32_g().
void SWC::Config::Property::Value_int32_g::on_change | ( | ) | const |
Definition at line 854 of file Property.cc.
References get(), and on_chg_cb.
Referenced by set_from().
void SWC::Config::Property::Value_int32_g::set_cb_on_chg | ( | Value_int32_g::OnChg_t && | cb | ) |
Definition at line 859 of file Property.cc.
References on_chg_cb.
|
overridevirtual |
Implements SWC::Config::Property::Value.
Definition at line 840 of file Property.cc.
References SWC::Core::Vector< T, SizeT, GROW_SZ >::back(), SWC::Config::Property::from_string(), SWC::Core::AtomicBase< T, OrderT >::store(), and value.
|
overridevirtual |
Implements SWC::Config::Property::Value.
Definition at line 829 of file Property.cc.
References SWC::Config::Property::Value::flags, SWC::Condition::from(), on_change(), on_chg_cb, SWC::Core::AtomicBase< T, OrderT >::store(), and value.
|
overridevirtual |
Implements SWC::Config::Property::Value.
Definition at line 850 of file Property.cc.
References SWC::Core::to_string(), and value.
|
overridevirtualnoexcept |
Implements SWC::Config::Property::Value.
Definition at line 846 of file Property.cc.
References value_type.
OnChg_t SWC::Config::Property::Value_int32_g::on_chg_cb |
Definition at line 614 of file Property.h.
Referenced by on_change(), set_cb_on_chg(), and set_from().
Core::Atomic<int32_t> SWC::Config::Property::Value_int32_g::value |
Definition at line 613 of file Property.h.
Referenced by set_from(), SWC::FS::FileSystemHadoopJVM::setup_connection(), and to_string().
|
static |
Definition at line 583 of file Property.h.
Referenced by type().