X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=test%2Flib%2FCluster.hpp;h=ab20108c17d447a50532209c53a4b22fa2e75043;hb=9c7babba79ee747f7f549912ea01fd83c37f7e0c;hp=4e151020c65cdc2a7c6dc747a973dc451de8f80d;hpb=fd66e60622e8e139753f62454cfdd5be662e39a0;p=awesomized%2Flibmemcached diff --git a/test/lib/Cluster.hpp b/test/lib/Cluster.hpp index 4e151020..ab20108c 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(vector servers); + explicit Cluster(Server serv, size_t cnt = 3); ~Cluster(); Cluster(const Cluster &c) = delete; @@ -44,7 +43,8 @@ public: bool start(); void stop(bool graceful = false); bool isStopped(); - bool isListening(); + bool isListening() const; + bool ensureListening(); void wait(); bool restart(); @@ -53,6 +53,4 @@ private: Server proto; vector cluster; map pids; - - bool startServer(Server &server); };