| 111 | |
| 112 | |
| 113 | void ZooKeeperTestServer::shutdownNetwork() |
| 114 | { |
| 115 | if (connectionFactory != nullptr && started) { |
| 116 | LOG(INFO) << "Shutting down ZooKeeperTestServer on port " << port; |
| 117 | connectionFactory->shutdown(); |
| 118 | delete connectionFactory; |
| 119 | connectionFactory = nullptr; |
| 120 | started = false; |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | |
| 125 | int ZooKeeperTestServer::startNetwork() |