-
Notifications
You must be signed in to change notification settings - Fork 0
/
monitor.py
42 lines (36 loc) · 1.21 KB
/
monitor.py
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
from config_monitor import ConfigMonitor
from coordinator import MonitorCoordinator
from analyzer import DataAnalyzer
from db_operator import DBOperator
from alarm_operator import AlarmOperator
from app_operator import AppOperator
class Monitor:
"""The main Class for the Monitor Tool
start_monitor_system -- Start the monitor tool
"""
@staticmethod
def start_monitor_system():
"""
Start the whole monitor system. Actually all the parts of the monitor system can be run via python file alone
"""
# start config monitor
print("Starting ConfigMonitor")
ConfigMonitor().start()
# start coordinator
print("Starting Coordinator")
MonitorCoordinator().start()
# start analyzer
print("Starting DataAnalyzer")
DataAnalyzer().start()
# start db operator
print("Starting DBOperator")
DBOperator().start()
# start alarm operator
print("Starting AlarmOperator")
AlarmOperator().start()
# start application operator
print("Starting AppOperator")
AppOperator().start()
print("Done.")
if __name__ == '__main__':
Monitor.start_monitor_system()