AOSharedServiceLibrary
Public Member Functions | List of all members
AOSSL::NetworkApplicationProfile Class Reference

Extends the TieredApplicationProfile, adding service discovery logic. More...

#include <network_app_profile.h>

Inheritance diagram for AOSSL::NetworkApplicationProfile:
Inheritance graph
[legend]
Collaboration diagram for AOSSL::NetworkApplicationProfile:
Collaboration graph
[legend]

Public Member Functions

 NetworkApplicationProfile (int argc, char *argv[])
 
 NetworkApplicationProfile (int argc, char *argv[], std::string app_name, std::string prof_name)
 
 NetworkApplicationProfile (const std::vector< std::string > &args)
 
 NetworkApplicationProfile (const std::vector< std::string > &args, std::string app_name, std::string prof_name)
 
 NetworkApplicationProfile (std::string app_name, std::string prof_name)
 
ServiceInterfaceget_service_by_metadata (std::string service_identifier, std::string metadata_key, std::string metadata_value)
 
ServiceInterfaceget_service (std::string service_identifier)
 
- Public Member Functions inherited from AOSSL::TieredApplicationProfile
 TieredApplicationProfile (int argc, char *argv[])
 
 TieredApplicationProfile (int argc, char *argv[], std::string app_name, std::string prof_name)
 
 TieredApplicationProfile (const std::vector< std::string > &args)
 
 TieredApplicationProfile (const std::vector< std::string > &args, std::string app_name, std::string prof_name)
 
 TieredApplicationProfile (std::string app_name, std::string prof_name)
 
void load_config ()
 Load the configuration from the various sources.
 
void add_secure_opt (std::string &key)
 
std::string get_cluster_name ()
 Get the Cluster Name.
 
void set_cluster_name (std::string &new_name)
 Set the Cluster Name.
 
std::vector< std::string > get_config_record ()
 Get the latest Configuration Record.
 
void get_opt (std::string key, StringBuffer &val)
 Get an option by key.
 
void add_opt (const std::string &key, const std::string &val)
 Add an option.
 
void set_opt (std::string &key, std::string &val)
 Set an option.
 
bool opt_exist (std::string &key)
 Does an option exist?
 
- Public Member Functions inherited from AOSSL::SafeApplicationProfile
 SafeApplicationProfile (int argc, char *argv[])
 
 SafeApplicationProfile (int argc, char *argv[], std::string app_name, std::string prof_name)
 
 SafeApplicationProfile (const std::vector< std::string > &args)
 
 SafeApplicationProfile (const std::vector< std::string > &args, std::string app_name, std::string prof_name)
 
 SafeApplicationProfile (std::string app_name, std::string prof_name)
 
- Public Member Functions inherited from AOSSL::ApplicationProfile
 ApplicationProfile (int argc, char *argv[])
 Create a new Application Session with Command Line Arguments.
 
 ApplicationProfile (int argc, char *argv[], std::string app_name, std::string prof_name)
 Create a new Application Session with Command Line Arguments.
 
 ApplicationProfile (const std::vector< std::string > &args)
 Create a new Application Session with Command Line Arguments.
 
 ApplicationProfile (const std::vector< std::string > &args, std::string app_name, std::string prof_name)
 Create a new Application Session with Command Line Arguments.
 
 ApplicationProfile (std::string app_name, std::string prof_name)
 Create a new Application Session without any Command Line Arguments.
 
void set_property_file (std::string &filename)
 Set the location of the properties file.
 
void set_consul_address (std::string caddr)
 Set the address of the consul agent.
 
void set_consul_address (std::string caddr, int tout, std::string ssl_cert)
 Set the address of the consul agent.
 
void set_consul_address (std::string caddr, int tout, std::string ssl_cert, std::string acl_token)
 Set the address of the consul agent.
 
void set_vault_address (std::string &vaddr, std::string &secrets_path, int tout, std::string &cert, int auth_type, std::string &un, std::string &pw)
 Update the Vault connectivity information.
 
void set_vault_address (std::string &vaddr, std::string &secrets_path, int tout, int auth_type, std::string &un, std::string &pw)
 Update the Vault connectivity information.
 
KeyValueStoreInterfaceget_cli ()
 Get the Command Line Interface.
 
KeyValueStoreInterfaceget_props ()
 Get the Properties File Reader.
 
ConsulInterfaceget_consul ()
 Get the Consul Interface.
 
VaultInterface * get_vault ()
 Get the Vault Interface.
 
UuidInterfaceget_uuid ()
 Get the UUID Interface.
 
std::string get_app_name ()
 Get the Application Name.
 
std::string get_profile_name ()
 Get the Profile Name.
 
void set_app_name (std::string name)
 Get the Application Name.
 
void set_profile_name (std::string prof)
 Get the Profile Name.
 
- Public Member Functions inherited from AOSSL::KeyValueStore
bool opt_exist (std::string key)
 Does a key exist?
 
StringBufferget_opt (std::string key)
 Get an option by key.
 
std::unordered_map< std::string, std::string > get_opts ()
 
void add_opt (const std::string &key, std::string value)
 Add an option.
 
void set_opt (std::string &key, std::string &value)
 Set an option.
 

Detailed Description

Extends the TieredApplicationProfile, adding service discovery logic.

Use is the same as a TieredApplicationProfile. Methods are added for finding particular services.


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