|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnavigators.smart.tom.TOMSender
public abstract class TOMSender
This class is used to multicast data to a group of replicas
Field Summary | |
---|---|
private CommunicationSystemClientSide |
cs
|
private int[] |
group
|
private java.util.concurrent.locks.Lock |
lock
|
private int |
me
|
private int |
sequence
|
private boolean |
useSignatures
|
Constructor Summary | |
---|---|
TOMSender()
Creates a new instance of TOMulticastSender TODO: Isto pode mesmo estar vazio? |
Method Summary | |
---|---|
int |
getLastSequenceNumber()
Get last sequence number of an already multicasted message |
private int |
getNextSequenceNumber()
|
void |
init(CommunicationSystemClientSide cs,
TOMConfiguration conf)
This method initializes the object TODO: Perguntar se este metodo n pode antes ser protected (compila como protected, mas mesmo assim...) |
void |
init(CommunicationSystemClientSide cs,
TOMConfiguration conf,
int sequence)
This method initializes the object TODO: Perguntar se este metodo n pode antes ser protected (compila como protected, mas mesmo assim...) |
TOMMessage |
sign(byte[] m)
Create TOMMessage and sign it |
void |
TOMulticast(byte[] m)
Multicast data to the group of replicas |
void |
TOMulticast(byte[] m,
boolean readOnly)
Multicast data to the group of replicas |
void |
TOMulticast(TOMMessage sm)
Multicast a TOMMessage to the group of replicas |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface navigators.smart.communication.client.ReplyReceiver |
---|
replyReceived |
Field Detail |
---|
private int me
private int[] group
private int sequence
private CommunicationSystemClientSide cs
private java.util.concurrent.locks.Lock lock
private boolean useSignatures
Constructor Detail |
---|
public TOMSender()
Method Detail |
---|
public void init(CommunicationSystemClientSide cs, TOMConfiguration conf, int sequence)
cs
- Client side comunication systemconf
- Client side comunication system configurationsequence
- Initial sequence number for data multicast
TODO: ver o q é isto de "client side comunication system"public void init(CommunicationSystemClientSide cs, TOMConfiguration conf)
cs
- Client side comunication systemconf
- Total order messaging configurationprivate int getNextSequenceNumber()
public int getLastSequenceNumber()
public void TOMulticast(byte[] m)
m
- Data to be multicastpublic void TOMulticast(byte[] m, boolean readOnly)
m
- Data to be multicastreadOnly
- it is a readonly requestpublic void TOMulticast(TOMMessage sm)
m
- Data to be multicastpublic TOMMessage sign(byte[] m)
m
- Data to be included in TOMMessage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |