|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unitn.ds.peersim.protocols.transports.ReliableTransport
public class ReliableTransport
Distributed Systems Course Project
Year: 2009/2010
University of Trento
ReliableTransport Implement a transport layer that reliably delivers messages.
http://peersim.sourceforge.net/doc/index.html| Constructor Summary | |
|---|---|
ReliableTransport(java.lang.String prefix)
Instantiates a new reliable transport. |
|
| Method Summary | |
|---|---|
ReliableTransport |
clone()
Returns this. |
long |
getLatency(peersim.core.Node src,
peersim.core.Node dest)
Returns the latency of the network. |
void |
send(peersim.core.Node src,
peersim.core.Node dest,
java.lang.Object msg,
int pid)
Sends the message. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReliableTransport(java.lang.String prefix)
prefix - the prefix| Method Detail |
|---|
public ReliableTransport clone()
this. This way only one instance exists in the system
that is linked from all the nodes. This is because this protocol has no
node specific state.
clone in interface peersim.core.Protocolclone in class java.lang.Object
public void send(peersim.core.Node src,
peersim.core.Node dest,
java.lang.Object msg,
int pid)
send in interface peersim.transport.Transportsrc - the srcdest - the destmsg - the msgpid - the pid
public long getLatency(peersim.core.Node src,
peersim.core.Node dest)
getLatency in interface peersim.transport.Transportsrc - the srcdest - the dest
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||