testing: attempt to speedup freebsd build
[awesomized/libmemcached] / test / lib / Cluster.hpp
index c6c0cb926aa776b6d1672d4f4d51d4d128eba83a..c99e1d377ceca6248f68ef72b10d96727f312e23 100644 (file)
 class Cluster {
 public:
   explicit Cluster(Server serv, uint16_t cnt = 0);
-
+  explicit Cluster(vector<Server> servers);
   ~Cluster();
 
   Cluster(const Cluster &c) = delete;
   Cluster &operator=(const Cluster &c) = delete;
 
-  Cluster(Cluster &&c)
+  Cluster(Cluster &&c) noexcept
   : proto{} {
     *this = move(c);
   };
-  Cluster &operator=(Cluster &&c) {
+  Cluster &operator=(Cluster &&c) noexcept {
     count = exchange(c.count, 0);
     proto = exchange(c.proto, Server{});
     cluster = exchange(c.cluster, {});
@@ -43,13 +43,13 @@ public:
 
   bool start();
   void stop();
-  void reset();
   bool isStopped();
   bool isListening();
   void wait();
+  bool restart();
 
 private:
-  uint16_t count;
+  size_t count;
   Server proto;
   vector<Server> cluster;
   map<pid_t, Server *> pids;