Package org.yamcs.replication
Class Message
- java.lang.Object
-
- org.yamcs.replication.Message
-
public class Message extends Object
Defines all the message types that are exchanged between master and slave.Message format:
1 byte type 3 bytes message size (size of data to follow) = n+4 n bytes data 4 bytes CRC.
This is the same structure used in the replication file to be able to play it directly over the network.
The replication file contains only STREAM_INFO and DATA messages (and we call them transactions)
-
-
Field Summary
Fields Modifier and Type Field Description static byte
DATA
static byte
REQUEST
static byte
RESPONSE
static byte
STREAM_INFO
static byte
WAKEUP
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteBuffer
encode()
static Message
get(Request req)
static Message
get(Response resp)
static Message
get(Wakeup wp)
-
-
-
Field Detail
-
WAKEUP
public static final byte WAKEUP
- See Also:
- Constant Field Values
-
REQUEST
public static final byte REQUEST
- See Also:
- Constant Field Values
-
RESPONSE
public static final byte RESPONSE
- See Also:
- Constant Field Values
-
STREAM_INFO
public static final byte STREAM_INFO
- See Also:
- Constant Field Values
-
DATA
public static final byte DATA
- See Also:
- Constant Field Values
-
-