-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprotocolSummary.txt
More file actions
33 lines (25 loc) · 1.35 KB
/
protocolSummary.txt
File metadata and controls
33 lines (25 loc) · 1.35 KB
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
List of messages
[...] denotes an indeterminable length string
Master to Consumer
- l IP~PORT : current leader formatted as IP~PORT, need to connect to leader
- b [IP~PORT ...] : updated backup masters list each backup formatted as IP~PORT
Master to Producer
- y [IP~PORT ...] : request can be received, consumers' IP~PORT as a list delimited by spaces (Finished for master side)
- n : no free consumers, try again later
- l IP~PORT : current leader formatted as IP~PORT, need to connect to leader
- b [IP~PORT ...] : updated backup masters list each backup formatted as IP~PORT
Master to Master
- s PORT : request to be added as a backup with server socket port PORT
- l IP~PORT : current leader formatted as IP~PORT, need to connect to leader
- b [IP~PORT ...] : updated backup masters list each backup formatted as IP~PORT
Master to Self
- r FILESZ : request to pair producer with consumer, sent upon receiving a 'c' (ProcessAcceptorMessages)
- a LOAD : adds a consumer to list of consumers, sent upon receiving a 'k' (ProcessAcceptorMessages)
Consumer to Master
- k PORT LOAD : identifying message to master upon connection to master serversocket (finished for master side)
Consumer to Producer
- 2 : consumer ready to receive data.
Producer to Master
- c FILESZ: request to get consumers, along with file size of image it needs processing (TO DO)
Producer to Consumer
-