|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.post.storage.PostPastPolicy
public class PostPastPolicy
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 |
---|
public PostPastPolicy()
Method Detail |
---|
public void fetch(Id id, NodeHandle hint, Cache backup, Past past, Continuation command)
fetch
in interface PastPolicy
id
- The id to fetchhint
- A hint where the key may bepast
- The local past instancecommand
- The command to call with the replica to storebackup
- The backup cache, where the object *might* be locatedpublic boolean allowInsert(PastContent content)
allowInsert
in interface PastPolicy
content
- The content about to be stored
|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |