|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrouting.MessageRouter
routing.ActiveRouter
routing.EpidemicRouter
public class EpidemicRouter
Epidemic message router with drop-oldest buffer and only single transferring connections at a time.
| Field Summary |
|---|
| Fields inherited from class routing.ActiveRouter |
|---|
RESPONSE_PREFIX, TTL_CHECK_INTERVAL |
| Fields inherited from class routing.MessageRouter |
|---|
B_SIZE, DENIED_NO_SPACE, DENIED_OLD, MSG_TTL, msgTtl, RCV_OK, TRY_LATER_BUSY |
| Constructor Summary | |
|---|---|
protected |
EpidemicRouter(EpidemicRouter r)
Copyconstructor. |
|
EpidemicRouter(Settings s)
Constructor. |
| Method Summary | |
|---|---|
EpidemicRouter |
replicate()
Creates a replicate of this router. |
void |
update()
Checks out all sending connections to finalize the ready ones and abort those whose connection went down. |
| Methods inherited from class routing.MessageRouter |
|---|
addToMessages, deleteMessage, getBufferSize, getFreeBufferSize, getHost, getMessage, getMessageCollection, getNrofMessages, getRoutingInfo, hasMessage, isDeliveredMessage, messageAborted, putToIncomingBuffer, removeFromIncomingBuffer, sendMessage, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EpidemicRouter(Settings s)
s - The settings objectprotected EpidemicRouter(EpidemicRouter r)
r - The router prototype where setting values are copied from| Method Detail |
|---|
public void update()
ActiveRouter
update in class ActiveRouterActiveRouter.addToSendingConnections(Connection)public EpidemicRouter replicate()
MessageRouter
replicate in class MessageRouter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||