|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectist.palcom.routing.RoutingManager
ist.palcom.routing.DSDVRoutingManager
public class DSDVRoutingManager
The DSDVRoutingManager is a table-driven routing manager (DSDV tables) where the nodes in the network periodically exchange routing information. The direction of the traffic is chosen based on number of nodes between sender and receiver and not on actually bandwidth for instance.
| Field Summary |
|---|
| Fields inherited from class ist.palcom.routing.RoutingManager |
|---|
manager, pubSubManager, recieverThread, registeredThreads, scheduler |
| Constructor Summary | |
|---|---|
DSDVRoutingManager(PalcomScheduler scheduler,
MediaManager manager,
PubSubManager pubSubManager,
URN deviceURN)
|
|
| Method Summary | |
|---|---|
protected void |
addLocalPeer(URN routingURN,
Selector routingSelector)
Add a peer to the DSDV-table and ensure no duplicates. |
protected DSDVTable |
getDSDVChangedPeers()
|
protected DSDVTable |
getDSDVTable()
|
protected void |
handleRoutingMessage(AbstractRoutingMessage message)
This method handle different types of routing messages |
void |
send(Message message,
URL receiverURL)
|
boolean |
send(Message message,
URN senderURN,
Selector senderSelector,
URN receiverURN,
Selector receiverSelector)
Send message lookups the receiver URN in the DSDV-table and route the message to the next routingManager. |
protected boolean |
sendDirect(Message message,
URN senderURN,
Selector senderSelector,
URN receiverURN,
Selector receiverSelector)
|
protected void |
startRouting()
Main method |
protected void |
updateStatus(URN urn)
|
protected void |
updateTable(DSDVTable original,
DSDVTable updater,
URN updateSenderURN,
Selector updateSenderSelector)
This method takes one original DSDVTable and update it with another DSDVTable. |
| Methods inherited from class ist.palcom.routing.RoutingManager |
|---|
getDefaultGroupAddresses, getDefaultUnicastURL, getRoutingSelector, getRoutingURN, startReceiving, startReceiving, startReceiving2, stop, stopReceiving, stopReceiving, stopReceiving, stopReceiving |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, println, toString |
| Constructor Detail |
|---|
public DSDVRoutingManager(PalcomScheduler scheduler,
MediaManager manager,
PubSubManager pubSubManager,
URN deviceURN)
manager - | Method Detail |
|---|
protected void startRouting()
startRouting in class RoutingManager
public void send(Message message,
URL receiverURL)
send in class RoutingManager
public boolean send(Message message,
URN senderURN,
Selector senderSelector,
URN receiverURN,
Selector receiverSelector)
send in class RoutingManager
protected boolean sendDirect(Message message,
URN senderURN,
Selector senderSelector,
URN receiverURN,
Selector receiverSelector)
protected void handleRoutingMessage(AbstractRoutingMessage message)
handleRoutingMessage in class RoutingManagermessage - - message send between the nodes in the network to update/establish
routing.protected void updateStatus(URN urn)
protected void addLocalPeer(URN routingURN,
Selector routingSelector)
protected void updateTable(DSDVTable original,
DSDVTable updater,
URN updateSenderURN,
Selector updateSenderSelector)
protected DSDVTable getDSDVTable()
protected DSDVTable getDSDVChangedPeers()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||