Rice Pastry API

rice.pastry.standard
Class StandardRouteSetProtocol

java.lang.Object
  |
  +--rice.pastry.standard.StandardRouteSetProtocol
All Implemented Interfaces:
MessageReceiver, java.util.Observer

public class StandardRouteSetProtocol
extends java.lang.Object
implements java.util.Observer, MessageReceiver

An implementation of a simple route set protocol.

Version:
$Id: StandardRouteSetProtocol.java,v 1.13 2002/11/26 06:58:51 druschel Exp $
Author:
Andrew Ladd, Peter Druschel

Constructor Summary
StandardRouteSetProtocol(rice.pastry.NodeHandle lh, rice.pastry.security.PastrySecurityManager sm, rice.pastry.routing.RoutingTable rt)
          Constructor.
 
Method Summary
 rice.pastry.messaging.Address getAddress()
          Gets the address.
 void receiveMessage(rice.pastry.messaging.Message msg)
          Receives a message.
 void update(java.util.Observable obs, java.lang.Object arg)
          Observer update.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardRouteSetProtocol

public StandardRouteSetProtocol(rice.pastry.NodeHandle lh,
                                rice.pastry.security.PastrySecurityManager sm,
                                rice.pastry.routing.RoutingTable rt)
Constructor.

Parameters:
lh - the local handle
sm - the security manager
rt - the routing table
Method Detail

getAddress

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

Returns:
the address.

update

public void update(java.util.Observable obs,
                   java.lang.Object arg)
Observer update.

Specified by:
update in interface java.util.Observer
Parameters:
obs - the observable.
arg - the argument.

receiveMessage

public void receiveMessage(rice.pastry.messaging.Message msg)
Receives a message.

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

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection