|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unitn.ds.peersim.protocols.BestEffortBroadcast
public class BestEffortBroadcast
Distributed Systems Course Project
Year: 2009/2010
University of Trento
BestEffortBroadcast. This class implements the Best Effort Broadcast.
http://peersim.sourceforge.net/| Constructor Summary | |
|---|---|
BestEffortBroadcast(java.lang.String prefix)
Instantiates a new best effort broadcast. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
long |
getLatency(peersim.core.Node src,
peersim.core.Node dest)
|
void |
processEvent(peersim.core.Node node,
int pid,
java.lang.Object event)
When a message is received by the Best Effort Broadcast, it is decapsulated and then it is sent to the upper layer, the consensus layer. |
void |
send(peersim.core.Node src,
peersim.core.Node dest,
java.lang.Object consensusMessage,
int protocolID)
Executes the broadcasts: sends the message to all the nodes of the network. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BestEffortBroadcast(java.lang.String prefix)
prefix - string prefix for config properties| Method Detail |
|---|
public java.lang.Object clone()
clone in interface peersim.core.Protocolclone in class java.lang.ObjectProtocol.clone()
public void send(peersim.core.Node src,
peersim.core.Node dest,
java.lang.Object consensusMessage,
int protocolID)
send in interface peersim.transport.TransportTransport.send(peersim.core.Node, peersim.core.Node, java.lang.Object, int)
public void processEvent(peersim.core.Node node,
int pid,
java.lang.Object event)
processEvent in interface peersim.edsim.EDProtocolEDProtocol.processEvent(peersim.core.Node, int, java.lang.Object)
public long getLatency(peersim.core.Node src,
peersim.core.Node dest)
getLatency in interface peersim.transport.TransportTransport.getLatency(peersim.core.Node, peersim.core.Node)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||