![]()  | 
  
    MySQL 9.5.0
    
   Source Code Documentation 
   | 
 
Destination to forward client connections to. More...
#include <destination.h>
Classes | |
| struct | Guidelines_route_info | 
Public Member Functions | |
| Destination (mysql_harness::Destination dest, routing_guidelines::Server_info server_info, std::string routing_guidelines_route_name, const std::optional< bool > connection_sharing_allowed=std::nullopt) | |
| Destination ()=default | |
| Destination (const Destination &)=default | |
| Destination & | operator= (const Destination &)=default | 
| Destination (Destination &&)=default | |
| Destination & | operator= (Destination &&)=default | 
| virtual | ~Destination ()=default | 
| const mysql_harness::Destination & | destination () const | 
| const std::string & | server_uuid () const | 
| Get server UUID.  More... | |
| const routing_guidelines::Server_info & | get_server_info () const | 
| Get server information.  More... | |
| const std::string & | route_name () const | 
| Get name of the route that was used to reach this destination.  More... | |
| void | set_route_name (std::string name) | 
| Set name of the route that was used to reach this destination.  More... | |
| virtual mysqlrouter::ServerMode | server_mode () const | 
| server-mode of the destination.  More... | |
| const Guidelines_route_info & | guidelines_route_info () const | 
| void | disable_connection_sharing () | 
| Disable connection sharing if sharing prerequisites cannot be met.  More... | |
Private Attributes | |
| std::optional< mysql_harness::Destination > | dest_ | 
| routing_guidelines::Server_info | server_info_ {} | 
| Guidelines_route_info | guidelines_route_info_ | 
Destination to forward client connections to.
It is used between the DestinationManager implementations and MySQLRouting
      
  | 
  inline | 
      
  | 
  default | 
      
  | 
  default | 
      
  | 
  default | 
      
  | 
  virtualdefault | 
      
  | 
  inline | 
      
  | 
  inline | 
Disable connection sharing if sharing prerequisites cannot be met.
      
  | 
  inline | 
Get server information.
      
  | 
  inline | 
      
  | 
  default | 
      
  | 
  default | 
      
  | 
  inline | 
Get name of the route that was used to reach this destination.
      
  | 
  virtual | 
server-mode of the destination.
may be: unavailable, read-only or read-write.
      
  | 
  inline | 
Get server UUID.
      
  | 
  inline | 
Set name of the route that was used to reach this destination.
| name | route name | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private |