-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCluster.hpp
41 lines (29 loc) · 824 Bytes
/
Cluster.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef CLUSTER_HPP
# define CLUSTER_HPP
#include "include.hpp"
#include "Server.hpp"
class Cluster
{
public:
Cluster();
Cluster(Cluster const &cp);
Cluster &operator=(Cluster const &cp);
~Cluster();
void clusterSetup();
void clusterRun();
// void clusterClean();
// -------------GETTER-------------------
std::vector<Server *> get_servers() const;
// -------------SETTER-------------------
// -------------EXECPTION----------------
// -------------CONFIGURATION-----------------
int clusterConfig(std::string &path);
int checkFile(std::string path);
void serversClear();
void printClusterConfig();
private:
std::vector<Server *> _servers;
struct pollfd _fds[200]; ///a voir
int _nfds;
};
#endif