26 #ifndef _SERVERCHOOSERIMPL_H_ 27 #define _SERVERCHOOSERIMPL_H_ 62 const ConnectionInfo& info_) = 0;
82 virtual void add(
const std::string& uri_) = 0;
87 virtual void remove(
const std::string& uri_) = 0;
94 #endif //_SERVERCHOOSERIMPL_H_ virtual std::string getError()
Called by HAClient when no servers are available to provide detailed error message in exception messa...
Definition: ServerChooserImpl.hpp:68
virtual std::string getCurrentURI()=0
Returns the current URI.
Abstract base class for choosing amongst multiple URIs for both the initial connection and reconnecti...
Definition: ServerChooserImpl.hpp:39
virtual Authenticator & getCurrentAuthenticator()=0
Returns the Authenticator instance associated with the current URI.
virtual void reportSuccess(const ConnectionInfo &info_)=0
Called by the HAClient when successfully connected and logged on to the current instance.
Core type, function, and class declarations for the AMPS C++ client.
virtual void add(const std::string &uri_)=0
Add a server to a server chooser if its policy permits.
Definition: ampsplusplus.hpp:102
The interface for handling authentication with the AMPS server.
Definition: ampsplusplus.hpp:995
virtual void reportFailure(const AMPSException &exception_, const ConnectionInfo &info_)=0
Called by HAClient when an error occurs connecting to the current URI, and/or when an error occurs lo...