X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fserver_container.h;h=c65065aa1eb53113844b5d1330f8f22f901f4229;hb=20671681ff4e13ed84be72b699f71a90337245cd;hp=bb2a4ea5623bcd0ef9e9a03f970394d325d6da04;hpb=7ba11a92a63df071ee3f848c980c8459dc184ebc;p=m6w6%2Flibmemcached diff --git a/libtest/server_container.h b/libtest/server_container.h index bb2a4ea5..c65065aa 100644 --- a/libtest/server_container.h +++ b/libtest/server_container.h @@ -57,12 +57,7 @@ public: uint32_t count() const { - return _count; - } - - void set_count(uint32_t arg) - { - _count= arg; + return servers.size(); } void restart(); @@ -79,11 +74,6 @@ public: return _username; } - - bool is_debug() const; - bool is_helgrind() const; - bool is_valgrind() const; - bool socket() { return _socket; @@ -108,15 +98,28 @@ public: void shutdown_and_remove(); - void shutdown(); + bool shutdown(); bool shutdown(uint32_t number_of_host); bool check() const; void push_server(Server *); Server *pop_server(); + + unsigned long int servers_to_run() const + { + return _servers_to_run; + } + + void set_servers_to_run(unsigned long int arg) + { + _servers_to_run= arg; + } + +private: + unsigned long int _servers_to_run; }; -bool server_startup(server_startup_st&, const std::string&, in_port_t try_port, int argc, const char *argv[]); +bool server_startup(server_startup_st&, const std::string&, in_port_t try_port, int argc, const char *argv[], const bool opt_startup_message= true); } // namespace libtest