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;
Core type, function, and class declarations for the AMPS C++ client.
The interface for handling authentication with the AMPS server.
Definition: ampsplusplus.hpp:999
Abstract base class for choosing amongst multiple URIs for both the initial connection and reconnecti...
Definition: ServerChooserImpl.hpp:40
virtual void remove(const std::string &uri_)=0
Remove a server from a server chooser if its policy permits.
virtual std::string getCurrentURI()=0
Returns the current URI.
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...
virtual void add(const std::string &uri_)=0
Add a server to a server chooser if its policy permits.
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 void reportSuccess(const ConnectionInfo &info_)=0
Called by the HAClient when successfully connected and logged on to the current instance.
virtual Authenticator & getCurrentAuthenticator()=0
Returns the Authenticator instance associated with the current URI.