remove ambigous Cluster ctor
[m6w6/libmemcached] / test / lib / Cluster.hpp
index 199d2c74c49c51afbd4176b664387f375d095034..d2b93b9cd7a31806a51622768e236371b0a180f1 100644 (file)
@@ -20,8 +20,7 @@
 
 class Cluster {
 public:
-  explicit Cluster(Server serv, uint16_t cnt = 0);
-  explicit Cluster(vector<Server> servers);
+  explicit Cluster(Server serv, uint16_t cnt = 3);
   ~Cluster();
 
   Cluster(const Cluster &c) = delete;
@@ -42,10 +41,11 @@ public:
   const vector<Server> &getServers() const;
 
   bool start();
-  void stop();
+  void stop(bool graceful = false);
   bool isStopped();
   bool isListening();
   void wait();
+  bool restart();
 
 private:
   size_t count;