-
Notifications
You must be signed in to change notification settings - Fork 0
/
Protocol.java
30 lines (26 loc) · 1.5 KB
/
Protocol.java
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
public class Protocol {
// messages from Clients
public final static String LIST_TOKEN = "LIST"; // also from Controller and Dstores
public final static String STORE_TOKEN = "STORE"; // also from Dstores
public final static String LOAD_TOKEN = "LOAD";
public final static String LOAD_DATA_TOKEN = "LOAD_DATA";
public final static String RELOAD_TOKEN = "RELOAD";
public final static String REMOVE_TOKEN = "REMOVE"; // also from Controller
// messages from Controller
public final static String STORE_TO_TOKEN = "STORE_TO";
public final static String STORE_COMPLETE_TOKEN = "STORE_COMPLETE";
public final static String LOAD_FROM_TOKEN = "LOAD_FROM";
public final static String REMOVE_COMPLETE_TOKEN = "REMOVE_COMPLETE";
public final static String REBALANCE_TOKEN = "REBALANCE";
public final static String ERROR_FILE_DOES_NOT_EXIST_TOKEN = "ERROR_FILE_DOES_NOT_EXIST"; // also from Dstores
public final static String ERROR_FILE_ALREADY_EXISTS_TOKEN = "ERROR_FILE_ALREADY_EXISTS";
public final static String ERROR_NOT_ENOUGH_DSTORES_TOKEN = "ERROR_NOT_ENOUGH_DSTORES";
public final static String ERROR_LOAD_TOKEN = "ERROR_LOAD";
// messages from Dstores
public final static String ACK_TOKEN = "ACK";
public final static String STORE_ACK_TOKEN = "STORE_ACK";
public final static String REMOVE_ACK_TOKEN = "REMOVE_ACK";
public final static String JOIN_TOKEN = "JOIN";
public final static String REBALANCE_STORE_TOKEN = "REBALANCE_STORE";
public final static String REBALANCE_COMPLETE_TOKEN = "REBALANCE_COMPLETE";
}