Rice Pastry API

rice.rm
Interface RMClient

All Known Implementing Classes:
PastImpl, PASTServiceImpl, RMRegrTestApp

public interface RMClient

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

Method Summary
 void fetch(rice.pastry.IdSet keySet)
          This upcall is invoked to notify the application that is should fetch the cooresponding keys in this set, since the node is now responsible for these keys also.
 void isResponsible(rice.pastry.IdRange range)
          This upcall is to notify the application of the range of keys for which it is responsible.
 void rmIsReady(rice.rm.RM rm)
          This upcall is simply to denote that the underlying replica manager (rm) is ready.
 rice.pastry.IdSet scan(rice.pastry.IdRange range)
          This upcall should return the set of keys that the application currently stores in this range.
 

Method Detail

fetch

public void fetch(rice.pastry.IdSet keySet)
This upcall is invoked to notify the application that is should fetch the cooresponding keys in this set, since the node is now responsible for these keys also.

Parameters:
keySet - set containing the keys that needs to be fetched

rmIsReady

public void rmIsReady(rice.rm.RM rm)
This upcall is simply to denote that the underlying replica manager (rm) is ready. The 'rm' should henceforth be used by this RMClient to issue the downcalls on the RM interface.

Parameters:
rm - the instance of the Replica Manager

isResponsible

public void isResponsible(rice.pastry.IdRange range)
This upcall is to notify the application of the range of keys for which it is responsible. The application might choose to react to call by calling a scan(complement of this range) to the persistance manager and get the keys for which it is not responsible and call delete on the persistance manager for those objects.

Parameters:
range - the range of keys for which the local node is currently responsible

scan

public rice.pastry.IdSet scan(rice.pastry.IdRange range)
This upcall should return the set of keys that the application currently stores in this range. Should return a empty IdSet (not null), in the case that no keys belong to this range.

Parameters:
range - the requested range

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection