X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=test%2Flib%2FCluster.hpp;h=d2b93b9cd7a31806a51622768e236371b0a180f1;hb=5a18a901fcfc7b5bef004eb9110a2386fe87224a;hp=1cc00ac89539e1931708fc58daf07b343b837459;hpb=a1b265e9eba018e9ea510c9224953c27fc271bc9;p=awesomized%2Flibmemcached diff --git a/test/lib/Cluster.hpp b/test/lib/Cluster.hpp index 1cc00ac8..d2b93b9c 100644 --- a/test/lib/Cluster.hpp +++ b/test/lib/Cluster.hpp @@ -20,8 +20,7 @@ class Cluster { public: - explicit Cluster(Server serv, uint16_t cnt = 0); - + explicit Cluster(Server serv, uint16_t cnt = 3); ~Cluster(); Cluster(const Cluster &c) = delete; @@ -42,14 +41,14 @@ public: const vector &getServers() const; bool start(); - void stop(); - void reset(); + void stop(bool graceful = false); bool isStopped(); bool isListening(); void wait(); + bool restart(); private: - uint16_t count; + size_t count; Server proto; vector cluster; map pids;