-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cluster.hpp
44 lines (29 loc) · 642 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
42
43
44
#include <cassert>
//
// Created by mtriston on 26.04.2021.
//
#ifndef WEBSERV__CLUSTER_HPP_
#define WEBSERV__CLUSTER_HPP_
#define DEFAULT_CONFIG_PATH "webserv.conf"
class SocketList;
class WorkList;
class WorkerManager;
class Config_parser;
#include <ctime>
#include <sys/types.h>
#include <iostream>
class Cluster {
public:
Cluster();
~Cluster();
bool setup(std::string const &configFile);
void run();
private:
SocketList *socketList_;
WorkList *workList_;
WorkerManager *workerManager_;
Config_parser *configParser_;
Cluster(Cluster const &);
Cluster &operator=(Cluster const &);
};
#endif //WEBSERV__CLUSTER_HPP_