Rice Pastry API

rice.pastry.standard
Class StandardRouter

java.lang.Object
  |
  +--rice.pastry.standard.StandardRouter
All Implemented Interfaces:
MessageReceiver

public class StandardRouter
extends java.lang.Object
implements MessageReceiver

An implementation of the standard Pastry routing algorithm.

Version:
$Id: StandardRouter.java,v 1.22 2003/05/11 05:34:19 amislove Exp $
Author:
Andrew Ladd, Rongmei Zhang/Y.Charlie Hu

Constructor Summary
StandardRouter(rice.pastry.NodeHandle handle, rice.pastry.routing.RoutingTable rt, rice.pastry.leafset.LeafSet ls, rice.pastry.security.PastrySecurityManager sm)
          Constructor.
 
Method Summary
 rice.pastry.messaging.Address getAddress()
          Gets the address of this component.
 void receiveMessage(rice.pastry.messaging.Message msg)
          Receive a message from a remote node.
 void receiveRouteMessage(rice.pastry.routing.RouteMessage msg)
          Receive and process a route message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardRouter

public StandardRouter(rice.pastry.NodeHandle handle,
                      rice.pastry.routing.RoutingTable rt,
                      rice.pastry.leafset.LeafSet ls,
                      rice.pastry.security.PastrySecurityManager sm)
Constructor.

Parameters:
rt - the routing table.
ls - the leaf set.
Method Detail

getAddress

public rice.pastry.messaging.Address getAddress()
Gets the address of this component.

Returns:
the address.

receiveMessage

public void receiveMessage(rice.pastry.messaging.Message msg)
Receive a message from a remote node.

Specified by:
receiveMessage in interface MessageReceiver
Parameters:
msg - the message.

receiveRouteMessage

public void receiveRouteMessage(rice.pastry.routing.RouteMessage msg)
Receive and process a route message.

Parameters:
msg - the message.

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection