public abstract class TOMSender
extends java.lang.Object
implements bftsmart.communication.client.ReplyReceiver
Constructor and Description |
---|
TOMSender()
Creates a new instance of TOMulticastSender
TODO: This may really be empty?
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
generateOperationId() |
int |
generateRequestId(bftsmart.tom.core.messages.TOMMessageType type) |
bftsmart.communication.client.CommunicationSystemClientSide |
getCommunicationSystem() |
int |
getProcessId() |
int |
getSession() |
bftsmart.reconfiguration.ClientViewController |
getViewManager() |
void |
init(int processId)
This method initializes the object
TODO: Ask if this method cannot be protected (compiles, but....)
|
void |
init(int processId,
java.lang.String configHome) |
void |
sendMessageToTargets(byte[] m,
int reqId,
int[] targets,
bftsmart.tom.core.messages.TOMMessageType type) |
void |
sendMessageToTargets(byte[] m,
int reqId,
int operationId,
int[] targets,
bftsmart.tom.core.messages.TOMMessageType type) |
void |
TOMulticast(byte[] m,
int reqId,
int operationId,
bftsmart.tom.core.messages.TOMMessageType reqType) |
void |
TOMulticast(byte[] m,
int reqId,
bftsmart.tom.core.messages.TOMMessageType reqType)
Multicast data to the group of replicas
|
void |
TOMulticast(bftsmart.tom.core.messages.TOMMessage sm)
Multicast a TOMMessage to the group of replicas
|
public TOMSender()
public void close()
public bftsmart.communication.client.CommunicationSystemClientSide getCommunicationSystem()
public bftsmart.reconfiguration.ClientViewController getViewManager()
public void init(int processId)
processId
- ID of the processpublic void init(int processId, java.lang.String configHome)
public int getProcessId()
public int generateRequestId(bftsmart.tom.core.messages.TOMMessageType type)
public int generateOperationId()
public void TOMulticast(bftsmart.tom.core.messages.TOMMessage sm)
sm
- Message to be multicastpublic void TOMulticast(byte[] m, int reqId, bftsmart.tom.core.messages.TOMMessageType reqType)
m
- Data to be multicastreqId
- unique integer that identifies this requestreqType
- TOM_NORMAL, TOM_READONLY or TOM_RECONFIGURATIONpublic void TOMulticast(byte[] m, int reqId, int operationId, bftsmart.tom.core.messages.TOMMessageType reqType)
public void sendMessageToTargets(byte[] m, int reqId, int[] targets, bftsmart.tom.core.messages.TOMMessageType type)
public void sendMessageToTargets(byte[] m, int reqId, int operationId, int[] targets, bftsmart.tom.core.messages.TOMMessageType type)
public int getSession()