package csx55.overlay.wireformats; /** * This interface defines the protocols to be used by the event factory and wireformats to * identify which type of event it is. Usable by both, the registry and messaging nodes */ public interface Protocol { final int REGISTER_REQUEST = 0; final int REGISTER_RESPONSE = 1; final int DEREGISTER_REQUEST = 2; final int MESSAGING_NODES_LIST = 3; final int LINK_WEIGHTS = 4; final int TASK_INITIATE = 5; final int MESSAGE = 6; final int TASK_COMPLETE = 7; final int PULL_TRAFFIC_SUMMARY = 8; final int TRAFFIC_SUMMARY = 9; final int DEREGISTER_RESPONSE = 10; final byte SUCCESS = (byte) 11; final byte FAILURE = (byte) 12; }