Rice Pastry API

rice.rm
Interface RM

All Known Implementing Classes:
RMImpl

public interface RM

Version:
$Id: RM.java,v 1.10 2003/05/25 19:20:33 animesh Exp $
Author:
Animesh Nandi

Method Summary
 void lookupForward(rice.pastry.routing.RouteMessage msg)
          Called by client(RMClient) to enable optimizations to route to the nearest replica.
 void registerKey(rice.pastry.Id key)
          Called by client(RMClient) to notify the RM substrate of the presence of a key corresponding to a object that was 'recently' inserted at itself.
 

Method Detail

registerKey

public void registerKey(rice.pastry.Id key)
Called by client(RMClient) to notify the RM substrate of the presence of a key corresponding to a object that was 'recently' inserted at itself. The RM substrate algorithm is designed on a Pull model. This call however gives the RM substrate to implement the Push model if it desires so in future. The current implementation this method is non-operational since we believe that the Pull model behaves sufficiently well.

Parameters:
key - the object identifier

lookupForward

public void lookupForward(rice.pastry.routing.RouteMessage msg)
Called by client(RMClient) to enable optimizations to route to the nearest replica. Should be called by client in the context of the forward method of a lookup message. Should only be called if the local client does not have the desired object. This call could change the nextHop field in the RouteMessage.

Parameters:
msg - the RouteMessage

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection