TwiceAsNice  2019-02-18
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Nice::AppConfigClient Class Reference

#include <ConfigClient.h>

Inheritance diagram for Nice::AppConfigClient:
Inheritance graph
Collaboration diagram for Nice::AppConfigClient:
Collaboration graph

Public Member Functions

Nice::ServiceWatchdogPtr getWatchdog ()
 
Nice::ConfigClientConnectionPtr getConnection ()
 
bool isConnected ()
 
void reconnect ()
 
void disconnect ()
 
Nice::Endpoint endpoint ()
 
const Nice::JointPtrconfig ()
 
Nice::ServiceWatchdogListenerPtr applyWatchdogListener (Nice::ServiceWatchdogListener *_listener)
 
void removeWatchdogListener (Nice::ServiceWatchdogListenerPtr _listener)
 
Nice::ServiceWatchdogPtr getWatchdog ()
 
Nice::ConfigClientConnectionPtr getConnection ()
 
bool isConnected ()
 
void reconnect ()
 
void disconnect ()
 
Nice::Endpoint endpoint ()
 
const Nice::JointPtrconfig ()
 
Nice::ServiceWatchdogListenerPtr applyWatchdogListener (Nice::ServiceWatchdogListener *_listener)
 
void removeWatchdogListener (Nice::ServiceWatchdogListenerPtr _listener)
 

Static Public Member Functions

static void setAllowConnectionFail (bool _allowConFail)
 
static bool allowConnectionFail ()
 
static const Ice::ObjectAdapterPtr & adapter ()
 
static void deinitialize ()
 
static SeqAppConfigClientgetClients ()
 
static AppConfigClientPtr getClientByName (const std::string &_name)
 client by exact name More...
 
static AppConfigClientPtr getClientByNode (const Nice::JointPtr &_name)
 returns client by node More...
 
static std::vector< Nice::ServiceWatchdogPtrgetAllWatchdogs ()
 
static Nice::ServiceWatchdogPtr getWatchdogByServiceName (const std::string &serviceName)
 
static AppConfigClientPtr connectWithAlias (const std::string &_alias, bool _throwIfNotConnected=s_throwOnConnectionFail)
 
static AppConfigClientPtr connectWithEndpoint (const Nice::Endpoint &_endpoint, bool _throwIfNotConnected=s_throwOnConnectionFail)
 
static AppConfigClientPtr connectWithEndpointAtNode (const Nice::Endpoint &_endpoint, const std::string &_node, bool _throwIfNotConnected=s_throwOnConnectionFail)
 
static AppConfigClientPtr create (const Nice::Endpoint &_endpoint, Nice::JointPtr _seed, bool _throwIfNotConnected=s_throwOnConnectionFail)
 
static AppConfigClientPtr create (Nice::BridgeIceServicePrx _proxy, Nice::JointPtr _seed, const std::string &_key="")
 
static AppConfigClientPtr getClient (const Nice::Endpoint &_endpoint)
 
static void remove (const Nice::Endpoint &_endpoint)
 
static void setAllowConnectionFail (bool _allowConFail)
 
static bool allowConnectionFail ()
 
static const Ice::ObjectAdapterPtr & adapter ()
 
static void deinitialize ()
 
static SeqAppConfigClientgetClients ()
 
static AppConfigClientPtr getClientByName (const std::string &_name)
 client by exact name More...
 
static AppConfigClientPtr getClientByNode (const Nice::JointPtr &_name)
 returns client by node More...
 
static std::vector< Nice::ServiceWatchdogPtrgetAllWatchdogs ()
 
static Nice::ServiceWatchdogPtr getWatchdogByServiceName (const std::string &serviceName)
 
static AppConfigClientPtr connectWithAlias (const std::string &_alias, bool _throwIfNotConnected=s_throwOnConnectionFail)
 
static AppConfigClientPtr connectWithEndpoint (const Nice::Endpoint &_endpoint, bool _throwIfNotConnected=s_throwOnConnectionFail)
 
static AppConfigClientPtr connectWithEndpointAtNode (const Nice::Endpoint &_endpoint, const std::string &_node, bool _throwIfNotConnected=s_throwOnConnectionFail)
 
static AppConfigClientPtr create (const Nice::Endpoint &_endpoint, Nice::JointPtr _seed, bool _throwIfNotConnected=s_throwOnConnectionFail)
 
static AppConfigClientPtr create (Nice::BridgeIceServicePrx _proxy, Nice::JointPtr _seed, const std::string &_key="")
 
static AppConfigClientPtr getClient (const Nice::Endpoint &_endpoint)
 
static void remove (const Nice::Endpoint &_endpoint)
 

Protected Member Functions

void connect (bool _throwIfNotConnected=true)
 
 AppConfigClient (const Nice::Endpoint &_endpoint, const Nice::JointPtr &_seed)
 
 ~AppConfigClient ()
 
void connect (bool _throwIfNotConnected=true)
 
 AppConfigClient (const Nice::Endpoint &_endpoint, const Nice::JointPtr &_seed)
 
 ~AppConfigClient ()
 

Protected Attributes

Nice::Endpoint m_endpoint
 
Nice::JointPtr m_config
 
Nice::ServiceWatchdogPtr m_watchdog
 
Nice::ConfigClientConnectionPtr m_connection
 

Static Protected Attributes

static Ice::ObjectAdapterPtr s_adapter = 0
 
static SeqAppConfigClient s_clients
 
static bool s_throwOnConnectionFail = true
 

Constructor & Destructor Documentation

◆ AppConfigClient() [1/2]

Nice::AppConfigClient::AppConfigClient ( const Nice::Endpoint _endpoint,
const Nice::JointPtr _seed 
)
protected
Parameters

◆ ~AppConfigClient() [1/2]

Nice::AppConfigClient::~AppConfigClient ( )
protected
Parameters

◆ AppConfigClient() [2/2]

Nice::AppConfigClient::AppConfigClient ( const Nice::Endpoint _endpoint,
const Nice::JointPtr _seed 
)
protected
Parameters

◆ ~AppConfigClient() [2/2]

Nice::AppConfigClient::~AppConfigClient ( )
protected
Parameters

Member Function Documentation

◆ adapter() [1/2]

const Ice::ObjectAdapterPtr & Nice::AppConfigClient::adapter ( )
static
Parameters

◆ adapter() [2/2]

static const Ice::ObjectAdapterPtr& Nice::AppConfigClient::adapter ( )
static
Parameters

◆ allowConnectionFail() [1/2]

static bool Nice::AppConfigClient::allowConnectionFail ( )
inlinestatic
Parameters

◆ allowConnectionFail() [2/2]

static bool Nice::AppConfigClient::allowConnectionFail ( )
inlinestatic
Parameters

◆ applyWatchdogListener() [1/2]

Nice::ServiceWatchdogListenerPtr Nice::AppConfigClient::applyWatchdogListener ( Nice::ServiceWatchdogListener _listener)
Parameters

◆ applyWatchdogListener() [2/2]

Nice::ServiceWatchdogListenerPtr Nice::AppConfigClient::applyWatchdogListener ( Nice::ServiceWatchdogListener _listener)
Parameters

◆ config() [1/2]

const Nice::JointPtr & Nice::AppConfigClient::config ( )
Parameters

◆ config() [2/2]

const Nice::JointPtr& Nice::AppConfigClient::config ( )
Parameters

◆ connect() [1/2]

void Nice::AppConfigClient::connect ( bool  _throwIfNotConnected = true)
protected
Parameters

◆ connect() [2/2]

void Nice::AppConfigClient::connect ( bool  _throwIfNotConnected = true)
protected
Parameters

◆ connectWithAlias() [1/2]

static AppConfigClientPtr Nice::AppConfigClient::connectWithAlias ( const std::string &  _alias,
bool  _throwIfNotConnected = s_throwOnConnectionFail 
)
static
Parameters

◆ connectWithAlias() [2/2]

Nice::AppConfigClientPtr Nice::AppConfigClient::connectWithAlias ( const std::string &  _alias,
bool  _throwIfNotConnected = s_throwOnConnectionFail 
)
static
Parameters

◆ connectWithEndpoint() [1/2]

static AppConfigClientPtr Nice::AppConfigClient::connectWithEndpoint ( const Nice::Endpoint _endpoint,
bool  _throwIfNotConnected = s_throwOnConnectionFail 
)
static
Parameters

◆ connectWithEndpoint() [2/2]

Nice::AppConfigClientPtr Nice::AppConfigClient::connectWithEndpoint ( const Nice::Endpoint _endpoint,
bool  _throwIfNotConnected = s_throwOnConnectionFail 
)
static
Parameters

◆ connectWithEndpointAtNode() [1/2]

static AppConfigClientPtr Nice::AppConfigClient::connectWithEndpointAtNode ( const Nice::Endpoint _endpoint,
const std::string &  _node,
bool  _throwIfNotConnected = s_throwOnConnectionFail 
)
static
Parameters

◆ connectWithEndpointAtNode() [2/2]

Nice::AppConfigClientPtr Nice::AppConfigClient::connectWithEndpointAtNode ( const Nice::Endpoint _endpoint,
const std::string &  _node,
bool  _throwIfNotConnected = s_throwOnConnectionFail 
)
static
Parameters

◆ create() [1/4]

Nice::AppConfigClientPtr Nice::AppConfigClient::create ( const Nice::Endpoint _endpoint,
Nice::JointPtr  _seed,
bool  _throwIfNotConnected = s_throwOnConnectionFail 
)
static
Parameters

◆ create() [2/4]

static AppConfigClientPtr Nice::AppConfigClient::create ( const Nice::Endpoint _endpoint,
Nice::JointPtr  _seed,
bool  _throwIfNotConnected = s_throwOnConnectionFail 
)
static
Parameters

◆ create() [3/4]

Nice::AppConfigClientPtr Nice::AppConfigClient::create ( Nice::BridgeIceServicePrx  _proxy,
Nice::JointPtr  _seed,
const std::string &  _key = "" 
)
static
Parameters

◆ create() [4/4]

static AppConfigClientPtr Nice::AppConfigClient::create ( Nice::BridgeIceServicePrx  _proxy,
Nice::JointPtr  _seed,
const std::string &  _key = "" 
)
static
Parameters

◆ deinitialize() [1/2]

void Nice::AppConfigClient::deinitialize ( )
static
Parameters

◆ deinitialize() [2/2]

static void Nice::AppConfigClient::deinitialize ( )
static
Parameters

◆ disconnect() [1/2]

void Nice::AppConfigClient::disconnect ( )
Parameters

◆ disconnect() [2/2]

void Nice::AppConfigClient::disconnect ( )
Parameters

◆ endpoint() [1/2]

Nice::Endpoint Nice::AppConfigClient::endpoint ( )
Parameters

◆ endpoint() [2/2]

Nice::Endpoint Nice::AppConfigClient::endpoint ( )
Parameters

◆ getAllWatchdogs() [1/2]

static std::vector<Nice::ServiceWatchdogPtr> Nice::AppConfigClient::getAllWatchdogs ( )
static
Parameters

◆ getAllWatchdogs() [2/2]

std::vector< Nice::ServiceWatchdogPtr > Nice::AppConfigClient::getAllWatchdogs ( )
static
Parameters

◆ getClient() [1/2]

Nice::AppConfigClientPtr Nice::AppConfigClient::getClient ( const Nice::Endpoint _endpoint)
static
Parameters

◆ getClient() [2/2]

static AppConfigClientPtr Nice::AppConfigClient::getClient ( const Nice::Endpoint _endpoint)
static
Parameters

◆ getClientByName() [1/2]

Nice::AppConfigClientPtr Nice::AppConfigClient::getClientByName ( const std::string &  _name)
static

client by exact name

Parameters

◆ getClientByName() [2/2]

static AppConfigClientPtr Nice::AppConfigClient::getClientByName ( const std::string &  _name)
static

client by exact name

Parameters

◆ getClientByNode() [1/2]

static AppConfigClientPtr Nice::AppConfigClient::getClientByNode ( const Nice::JointPtr _name)
static

returns client by node

Parameters

◆ getClientByNode() [2/2]

Nice::AppConfigClientPtr Nice::AppConfigClient::getClientByNode ( const Nice::JointPtr _name)
static

returns client by node

Parameters

◆ getClients() [1/2]

static SeqAppConfigClient& Nice::AppConfigClient::getClients ( )
inlinestatic
Parameters

◆ getClients() [2/2]

static SeqAppConfigClient& Nice::AppConfigClient::getClients ( )
inlinestatic
Parameters

◆ getConnection() [1/2]

Nice::ConfigClientConnectionPtr Nice::AppConfigClient::getConnection ( )
inline
Parameters

◆ getConnection() [2/2]

Nice::ConfigClientConnectionPtr Nice::AppConfigClient::getConnection ( )
inline
Parameters

◆ getWatchdog() [1/2]

Nice::ServiceWatchdogPtr Nice::AppConfigClient::getWatchdog ( )
Parameters

◆ getWatchdog() [2/2]

Nice::ServiceWatchdogPtr Nice::AppConfigClient::getWatchdog ( )
Parameters

◆ getWatchdogByServiceName() [1/2]

static Nice::ServiceWatchdogPtr Nice::AppConfigClient::getWatchdogByServiceName ( const std::string &  serviceName)
static
Parameters

◆ getWatchdogByServiceName() [2/2]

Nice::ServiceWatchdogPtr Nice::AppConfigClient::getWatchdogByServiceName ( const std::string &  serviceName)
static
Parameters

◆ isConnected() [1/2]

bool Nice::AppConfigClient::isConnected ( )
Parameters

◆ isConnected() [2/2]

bool Nice::AppConfigClient::isConnected ( )
Parameters

◆ reconnect() [1/2]

void Nice::AppConfigClient::reconnect ( )
Parameters

◆ reconnect() [2/2]

void Nice::AppConfigClient::reconnect ( )
Parameters

◆ remove() [1/2]

void Nice::AppConfigClient::remove ( const Nice::Endpoint _endpoint)
static
Parameters

◆ remove() [2/2]

static void Nice::AppConfigClient::remove ( const Nice::Endpoint _endpoint)
static
Parameters

◆ removeWatchdogListener() [1/2]

void Nice::AppConfigClient::removeWatchdogListener ( Nice::ServiceWatchdogListenerPtr  _listener)
Parameters

◆ removeWatchdogListener() [2/2]

void Nice::AppConfigClient::removeWatchdogListener ( Nice::ServiceWatchdogListenerPtr  _listener)
Parameters

◆ setAllowConnectionFail() [1/2]

static void Nice::AppConfigClient::setAllowConnectionFail ( bool  _allowConFail)
inlinestatic
Parameters

◆ setAllowConnectionFail() [2/2]

static void Nice::AppConfigClient::setAllowConnectionFail ( bool  _allowConFail)
inlinestatic
Parameters

Member Data Documentation

◆ m_config

Nice::JointPtr Nice::AppConfigClient::m_config
protected

◆ m_connection

Nice::ConfigClientConnectionPtr Nice::AppConfigClient::m_connection
protected

◆ m_endpoint

Nice::Endpoint Nice::AppConfigClient::m_endpoint
protected

◆ m_watchdog

Nice::ServiceWatchdogPtr Nice::AppConfigClient::m_watchdog
protected

◆ s_adapter

static Ice::ObjectAdapterPtr Nice::AppConfigClient::s_adapter = 0
staticprotected

◆ s_clients

static SeqAppConfigClient Nice::AppConfigClient::s_clients
staticprotected

◆ s_throwOnConnectionFail

static bool Nice::AppConfigClient::s_throwOnConnectionFail = true
staticprotected

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