-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparameters.py
60 lines (41 loc) · 1.19 KB
/
parameters.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
__author__ = 'Zakaria'
MODE_TIME = "time"
MODE_COUNT = "count"
join_mode = MODE_COUNT
SUBWINDOW_DEFAULT_SIZE = 0
SUBWINDOW_DEFAULT_TIME = 5000 # millisecond
subwindow_time = SUBWINDOW_DEFAULT_TIME
COST_FUNCTION_DEFAULT_PARAM = 10
HEARTBEAT_INTERVAL = 10 # second
CHECK_INTERVAL = 15
MINIMUM_NODES = 1
JOIN_CRITERION_INDEX = 1
PUNCTUATION = '*'
MODE_ADD_NODE_DEFAULT = "default"
MODE_ADD_NODE_PENDING = "pending"
SOURCE_HOST = '10.10.10.2'
SOURCE_PORT = 80
MERGER_HOST = '10.10.10.6'
MERGER_PORT = 80
DATATYPE_R_STREAM = 'R'
DATATYPE_S_STREAM = 'S'
DATATYPE_R_JOIN = 'RX'
DATATYPE_S_JOIN = 'SX'
DATATYPE_HEARTBEAT = 'H'
DATATYPE_INCREASE_SUBWINDOW_SIZE_R = 'SW+R'
DATATYPE_INCREASE_SUBWINDOW_SIZE_S = 'SW+S'
DATATYPE_DELETE_R = 'DR'
DATATYPE_DELETE_S = 'DS'
DATATYPE_NODE_SERIAL = 'NS'
INPUT_EXIT = "exit"
INPUT_ADD_NODE = "addnode"
SIGNAL_ADD_NODE = "addnode"
INPUT_SET_SUBWINDOW_SIZE = 'ssw'
SIGNAL_SET_SUBWINDOW_SIZE = 'ssw'
DATATYPE_SET_SUBWINDOW_SIZE = 'ssw'
INPUT_SET_SUBWINDOW_TIME = 'sswt'
SIGNAL_SET_SUBWINDOW_TIME = 'sswt'
INPUT_START_STREAM = "stream"
SIGNAL_START_STREAM = "stream"
INPUT_MODE = "mode"
SIGNAL_MODE = "mode"