projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
test: fix missing include for std::array
[awesomized/libmemcached]
/
test
/
lib
/
Cluster.hpp
diff --git
a/test/lib/Cluster.hpp
b/test/lib/Cluster.hpp
index d2b93b9cd7a31806a51622768e236371b0a180f1..ab20108c17d447a50532209c53a4b22fa2e75043 100644
(file)
--- a/
test/lib/Cluster.hpp
+++ b/
test/lib/Cluster.hpp
@@
-20,7
+20,7
@@
class Cluster {
public:
class Cluster {
public:
- explicit Cluster(Server serv,
uint16
_t cnt = 3);
+ explicit Cluster(Server serv,
size
_t cnt = 3);
~Cluster();
Cluster(const Cluster &c) = delete;
~Cluster();
Cluster(const Cluster &c) = delete;
@@
-43,7
+43,8
@@
public:
bool start();
void stop(bool graceful = false);
bool isStopped();
bool start();
void stop(bool graceful = false);
bool isStopped();
- bool isListening();
+ bool isListening() const;
+ bool ensureListening();
void wait();
bool restart();
void wait();
bool restart();
@@
-52,6
+53,4
@@
private:
Server proto;
vector<Server> cluster;
map<pid_t, Server *> pids;
Server proto;
vector<Server> cluster;
map<pid_t, Server *> pids;
-
- bool startServer(Server &server);
};
};