public class DataMSTBcastSender extends DataSender
Constructor and Description |
---|
DataMSTBcastSender(Data data,
Workers workers,
byte command) |
Modifier and Type | Method and Description |
---|---|
protected ByteArray |
getOPByteArray(int headArrSize)
Get the ByteArray storing the size of the
head array
|
protected void |
sendDataBytes(Connection conn,
ByteArray opArray,
Data data)
Broadcast the data
|
getHeadSize, handleData
execute, getCommand, getDestWorkerID, getWorkers
protected ByteArray getOPByteArray(int headArrSize)
getOPByteArray
in class DataSender
headArrSize
- the size of the head arrayprotected void sendDataBytes(Connection conn, ByteArray opArray, Data data) throws java.io.IOException
sendDataBytes
in class DataSender
conn
- the Connection objectopArray
- the ByteArray storing the size of
the head arraydata
- the Data to be broadcastjava.io.IOException