EII ConfigMgr C/C++ Reference
Public Member Functions | List of all members
eii::config_manager::ServerCfg Class Reference
Inheritance diagram for eii::config_manager::ServerCfg:
eii::config_manager::AppCfg

Public Member Functions

 ServerCfg (cfgmgr_interface_t *cfgmgr_interface)
 
config_t * getMsgBusConfig () override
 
config_value_t * getInterfaceValue (const char *key) override
 
std::string getEndpoint () override
 
std::vector< std::string > getAllowedClients () override
 
cfgmgr_interface_tgetServCfg ()
 
 ~ServerCfg ()
 
- Public Member Functions inherited from eii::config_manager::AppCfg
 AppCfg (cfgmgr_ctx_t *cfgmgr)
 
config_t * getConfig ()
 
config_t * getInterface ()
 
config_value_t * getConfigValue (const char *key)
 
bool watch (const char *key, cfgmgr_watch_callback_t watch_callback, void *user_data)
 
bool watchPrefix (char *prefix, cfgmgr_watch_callback_t watch_callback, void *user_data)
 
bool watchConfig (cfgmgr_watch_callback_t watch_callback, void *user_data)
 
bool watchInterface (cfgmgr_watch_callback_t watch_callback, void *user_data)
 
virtual std::vector< std::string > getTopics ()
 
virtual bool setTopics (std::vector< std::string > topics_list)
 
virtual ~AppCfg ()
 

Additional Inherited Members

- Protected Member Functions inherited from eii::config_manager::AppCfg
std::vector< std::string > tokenizer (const char *str, const char *delim)
 

Constructor & Destructor Documentation

◆ ServerCfg()

eii::config_manager::ServerCfg::ServerCfg ( cfgmgr_interface_t cfgmgr_interface)
explicit

ServerCfg Constructor This constructor is not to be directly called since it is only used internally by the ConfigMgr

Parameters
cfgmgr_interface- The interface associated with a server

◆ ~ServerCfg()

eii::config_manager::ServerCfg::~ServerCfg ( )

Destructor

Member Function Documentation

◆ getAllowedClients()

std::vector<std::string> eii::config_manager::ServerCfg::getAllowedClients ( )
overridevirtual

To get the names of the clients allowed to connect to server

Returns
vector<string> - On Success, returns Allowed client of server config
  • On Failure, returns empty vector

Reimplemented from eii::config_manager::AppCfg.

◆ getEndpoint()

std::string eii::config_manager::ServerCfg::getEndpoint ( )
overridevirtual

To get endpoint for particular server from its interface config

Returns
std::string - On Success returns Endpoint of server config
  • On Failure returns empty string

Reimplemented from eii::config_manager::AppCfg.

◆ getInterfaceValue()

config_value_t* eii::config_manager::ServerCfg::getInterfaceValue ( const char *  key)
overridevirtual

To get particular interface value from Server interface config

Parameters
key- Key on which interface value is extracted.
Returns
config_value_t* - On Success, config_value_t object
  • On Failure, returns NULL

Reimplemented from eii::config_manager::AppCfg.

◆ getMsgBusConfig()

config_t* eii::config_manager::ServerCfg::getMsgBusConfig ( )
overridevirtual

Constructs message bus config for Server

Returns
config_t* - On Success, JSON msg bus server config of type config_t
  • On Failure, returns NULL

Reimplemented from eii::config_manager::AppCfg.

◆ getServCfg()

cfgmgr_interface_t* eii::config_manager::ServerCfg::getServCfg ( )

cfgmgr_interface_t getter to get server interface


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