ePOST API

rice.post.storage
Class PostPastPolicy

java.lang.Object
  extended by rice.post.storage.PostPastPolicy
All Implemented Interfaces:
PastPolicy

public class PostPastPolicy
extends java.lang.Object
implements PastPolicy

Version:
$Id: PostPastPolicy.java 2808 2005-11-22 14:38:49Z jeffh $
Author:
Alan Mislove

Nested Class Summary
 
Nested classes/interfaces inherited from interface rice.p2p.past.PastPolicy
PastPolicy.DefaultPastPolicy
 
Constructor Summary
PostPastPolicy()
           
 
Method Summary
 boolean allowInsert(PastContent content)
          This method always return true;
 void fetch(Id id, NodeHandle hint, Cache backup, Past past, Continuation command)
          This method fetches the object via a lookup() call.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostPastPolicy

public PostPastPolicy()
Method Detail

fetch

public void fetch(Id id,
                  NodeHandle hint,
                  Cache backup,
                  Past past,
                  Continuation command)
This method fetches the object via a lookup() call.

Specified by:
fetch in interface PastPolicy
Parameters:
id - The id to fetch
hint - A hint where the key may be
past - The local past instance
command - The command to call with the replica to store
backup - The backup cache, where the object *might* be located

allowInsert

public boolean allowInsert(PastContent content)
This method always return true;

Specified by:
allowInsert in interface PastPolicy
Parameters:
content - The content about to be stored
Returns:
Whether the insert should be allowed

ePOST API

Copyright © 2001-2005 - Rice Pastry.