| 437 | } |
| 438 | |
| 439 | std::string ClusterConnectionString::toString() const { |
| 440 | std::string s = key.toString(); |
| 441 | s += '@'; |
| 442 | for (auto const& coord : coords) { |
| 443 | if (s.find('@') != s.length() - 1) { |
| 444 | s += ','; |
| 445 | } |
| 446 | s += coord.toString(); |
| 447 | } |
| 448 | for (auto const& host : hostnames) { |
| 449 | if (s.find('@') != s.length() - 1) { |
| 450 | s += ','; |
| 451 | } |
| 452 | s += host.toString(); |
| 453 | } |
| 454 | return s; |
| 455 | } |
| 456 | |
| 457 | ClientCoordinators::ClientCoordinators(Reference<IClusterConnectionRecord> ccr) : ccr(ccr) { |
| 458 | ClusterConnectionString cs = ccr->getConnectionString(); |
no test coverage detected