irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

irods::server_properties Class Reference

#include <irods_server_properties.hpp>

Collaboration diagram for irods::server_properties:
[legend]

Public Member Functions

void capture ()
 
void capture_json (const std::string &)
 
template<typename T >
T & get_property (const std::string &_key)
 
template<typename T >
T & get_property (const configuration_parser::key_path_t &_keys)
 
template<typename T >
T & set_property (const std::string &_key, const T &_val)
 
template<typename T >
T & set_property (const configuration_parser::key_path_t &_keys, const T &_val)
 
template<typename T >
remove (const std::string &_key)
 
void remove (const std::string &_key)
 

Static Public Member Functions

static server_propertiesinstance ()
 

Private Member Functions

 server_properties (server_properties const &)
 
 server_properties ()
 
void operator= (server_properties const &)
 

Private Attributes

configuration_parser config_props_
 

Detailed Description

Definition at line 59 of file irods_server_properties.hpp.

Constructor & Destructor Documentation

◆ server_properties() [1/2]

irods::server_properties::server_properties ( server_properties const &  )
private

◆ server_properties() [2/2]

irods::server_properties::server_properties ( )
private

Definition at line 35 of file irods_server_properties.cpp.

References capture().

Here is the call graph for this function:

Member Function Documentation

◆ capture()

void irods::server_properties::capture ( )
Description:\n Read server configuration and fill server_properties::properties

Definition at line 39 of file irods_server_properties.cpp.

References capture_json(), irods::get_full_path_for_config_file(), and irods::error::ok().

Referenced by runIrodsAgentFactory(), and server_properties().

Here is the call graph for this function:

◆ capture_json()

void irods::server_properties::capture_json ( const std::string &  _fn)
Description:\n capture server_config.json

Definition at line 58 of file irods_server_properties.cpp.

References irods::error::code(), config_props_, irods::configuration_parser::load(), irods::error::ok(), irods::error::result(), and THROW.

Referenced by capture().

Here is the call graph for this function:

◆ get_property() [1/2]

template<typename T >
T& irods::server_properties::get_property ( const configuration_parser::key_path_t _keys)
inline

Definition at line 83 of file irods_server_properties.hpp.

References config_props_, and irods::configuration_parser::get().

Here is the call graph for this function:

◆ get_property() [2/2]

template<typename T >
T& irods::server_properties::get_property ( const std::string &  _key)
inline

Definition at line 78 of file irods_server_properties.hpp.

References config_props_, and irods::configuration_parser::get().

Referenced by acSetRescSchemeForCreate(), acSetRescSchemeForRepl(), and irods::get_server_property().

Here is the call graph for this function:

◆ instance()

◆ operator=()

void irods::server_properties::operator= ( server_properties const &  )
private

◆ remove() [1/2]

template<typename T >
T irods::server_properties::remove ( const std::string &  _key)
inline

Definition at line 98 of file irods_server_properties.hpp.

References config_props_, and irods::configuration_parser::remove().

Referenced by irods::delete_server_property().

Here is the call graph for this function:

◆ remove() [2/2]

void irods::server_properties::remove ( const std::string &  _key)

Definition at line 67 of file irods_server_properties.cpp.

References config_props_, and irods::configuration_parser::remove().

Here is the call graph for this function:

◆ set_property() [1/2]

template<typename T >
T& irods::server_properties::set_property ( const configuration_parser::key_path_t _keys,
const T &  _val 
)
inline

Definition at line 93 of file irods_server_properties.hpp.

References config_props_, and irods::configuration_parser::set().

Here is the call graph for this function:

◆ set_property() [2/2]

template<typename T >
T& irods::server_properties::set_property ( const std::string &  _key,
const T &  _val 
)
inline

Definition at line 88 of file irods_server_properties.hpp.

References config_props_, and irods::configuration_parser::set().

Referenced by irods::set_server_property().

Here is the call graph for this function:

Member Data Documentation

◆ config_props_

configuration_parser irods::server_properties::config_props_
private
Description:\n properties lookup table

Definition at line 113 of file irods_server_properties.hpp.

Referenced by capture_json(), get_property(), remove(), and set_property().


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