Rice Pastry API

rice.p2p.aggregation
Class Moraine

java.lang.Object
  extended byrice.p2p.aggregation.Moraine
All Implemented Interfaces:
GCPast, Past, VersioningPast

public class Moraine
extends java.lang.Object
implements GCPast, VersioningPast

This Past takes 2 pasts, an old Past and a new Past. It treats the old Past as a backing store for the new Past. Pretty much it's only going to work with glacier, and maybe aggregation A Moraine is the hill of rubble (aggregate as it were) left behind at the edges of a glacier or at the end of a retreating glacier

Version:
$Id: pretty.settings 2305 2005-03-11 20:22:33Z jeffh $
Author:
jstewart

Field Summary
protected  Logger logger
          DESCRIBE THE FIELD
protected  GCPast newPast
          DESCRIBE THE FIELD
protected  GCPast oldPast
          DESCRIBE THE FIELD
protected  VersioningPast vNewPast
          DESCRIBE THE FIELD
protected  VersioningPast vOldPast
          DESCRIBE THE FIELD
 
Fields inherited from interface rice.p2p.past.gc.GCPast
INFINITY_EXPIRATION
 
Constructor Summary
Moraine(GCPast newPast, GCPast oldPast)
          Constructor for Moraine.
 
Method Summary
 void fetch(PastContentHandle handle, Continuation command)
          DESCRIBE THE METHOD
 Environment getEnvironment()
          Gets the Environment attribute of the Moraine object
 java.lang.String getInstance()
          Gets the Instance attribute of the Moraine object
 NodeHandle getLocalNodeHandle()
          Gets the LocalNodeHandle attribute of the Moraine object
 int getReplicationFactor()
          Gets the ReplicationFactor attribute of the Moraine object
 void insert(PastContent obj, Continuation command)
          DESCRIBE THE METHOD
 void insert(PastContent obj, long expiration, Continuation command)
          DESCRIBE THE METHOD
 void lookup(Id id, boolean cache, Continuation command)
          DESCRIBE THE METHOD
 void lookup(Id id, Continuation command)
          DESCRIBE THE METHOD
 void lookup(Id id, long version, Continuation command)
          DESCRIBE THE METHOD
 void lookupHandle(Id id, NodeHandle handle, Continuation command)
          DESCRIBE THE METHOD
 void lookupHandles(Id id, int max, Continuation command)
          DESCRIBE THE METHOD
 void lookupHandles(Id id, long version, int num, Continuation command)
          DESCRIBE THE METHOD
 void refresh(Id[] ids, long[] expirations, Continuation command)
          DESCRIBE THE METHOD
 void refresh(Id[] ids, long[] versions, long[] expirations, Continuation command)
          DESCRIBE THE METHOD
 void refresh(Id[] ids, long expiration, Continuation command)
          DESCRIBE THE METHOD
 void setContentDeserializer(PastContentDeserializer deserializer)
          Sets the ContentDeserializer attribute of the Moraine object
 void setContentHandleDeserializer(PastContentHandleDeserializer deserializer)
          Sets the ContentHandleDeserializer attribute of the Moraine object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

newPast

protected GCPast newPast
DESCRIBE THE FIELD


oldPast

protected GCPast oldPast
DESCRIBE THE FIELD


vNewPast

protected VersioningPast vNewPast
DESCRIBE THE FIELD


vOldPast

protected VersioningPast vOldPast
DESCRIBE THE FIELD


logger

protected Logger logger
DESCRIBE THE FIELD

Constructor Detail

Moraine

public Moraine(GCPast newPast,
               GCPast oldPast)
Constructor for Moraine.

Parameters:
newPast - DESCRIBE THE PARAMETER
oldPast - DESCRIBE THE PARAMETER
Method Detail

getLocalNodeHandle

public NodeHandle getLocalNodeHandle()
Gets the LocalNodeHandle attribute of the Moraine object

Specified by:
getLocalNodeHandle in interface Past
Returns:
The LocalNodeHandle value

getReplicationFactor

public int getReplicationFactor()
Gets the ReplicationFactor attribute of the Moraine object

Specified by:
getReplicationFactor in interface Past
Returns:
The ReplicationFactor value

getEnvironment

public Environment getEnvironment()
Gets the Environment attribute of the Moraine object

Specified by:
getEnvironment in interface Past
Returns:
The Environment value

getInstance

public java.lang.String getInstance()
Gets the Instance attribute of the Moraine object

Specified by:
getInstance in interface Past
Returns:
The Instance value

setContentDeserializer

public void setContentDeserializer(PastContentDeserializer deserializer)
Sets the ContentDeserializer attribute of the Moraine object

Specified by:
setContentDeserializer in interface Past
Parameters:
deserializer - The new ContentDeserializer value

setContentHandleDeserializer

public void setContentHandleDeserializer(PastContentHandleDeserializer deserializer)
Sets the ContentHandleDeserializer attribute of the Moraine object

Specified by:
setContentHandleDeserializer in interface Past
Parameters:
deserializer - The new ContentHandleDeserializer value

insert

public void insert(PastContent obj,
                   Continuation command)
DESCRIBE THE METHOD

Specified by:
insert in interface GCPast
Parameters:
obj - DESCRIBE THE PARAMETER
command - DESCRIBE THE PARAMETER

lookup

public void lookup(Id id,
                   Continuation command)
DESCRIBE THE METHOD

Specified by:
lookup in interface Past
Parameters:
id - DESCRIBE THE PARAMETER
command - DESCRIBE THE PARAMETER

lookup

public void lookup(Id id,
                   boolean cache,
                   Continuation command)
DESCRIBE THE METHOD

Specified by:
lookup in interface Past
Parameters:
id - DESCRIBE THE PARAMETER
cache - DESCRIBE THE PARAMETER
command - DESCRIBE THE PARAMETER

lookupHandles

public void lookupHandles(Id id,
                          int max,
                          Continuation command)
DESCRIBE THE METHOD

Specified by:
lookupHandles in interface Past
Parameters:
id - DESCRIBE THE PARAMETER
max - DESCRIBE THE PARAMETER
command - DESCRIBE THE PARAMETER

lookupHandle

public void lookupHandle(Id id,
                         NodeHandle handle,
                         Continuation command)
DESCRIBE THE METHOD

Specified by:
lookupHandle in interface Past
Parameters:
id - DESCRIBE THE PARAMETER
handle - DESCRIBE THE PARAMETER
command - DESCRIBE THE PARAMETER

fetch

public void fetch(PastContentHandle handle,
                  Continuation command)
DESCRIBE THE METHOD

Specified by:
fetch in interface Past
Parameters:
handle - DESCRIBE THE PARAMETER
command - DESCRIBE THE PARAMETER

insert

public void insert(PastContent obj,
                   long expiration,
                   Continuation command)
DESCRIBE THE METHOD

Specified by:
insert in interface GCPast
Parameters:
obj - DESCRIBE THE PARAMETER
expiration - DESCRIBE THE PARAMETER
command - DESCRIBE THE PARAMETER

refresh

public void refresh(Id[] ids,
                    long[] expirations,
                    Continuation command)
DESCRIBE THE METHOD

Specified by:
refresh in interface GCPast
Parameters:
ids - DESCRIBE THE PARAMETER
expirations - DESCRIBE THE PARAMETER
command - DESCRIBE THE PARAMETER

refresh

public void refresh(Id[] ids,
                    long expiration,
                    Continuation command)
DESCRIBE THE METHOD

Specified by:
refresh in interface GCPast
Parameters:
ids - DESCRIBE THE PARAMETER
expiration - DESCRIBE THE PARAMETER
command - DESCRIBE THE PARAMETER

lookup

public void lookup(Id id,
                   long version,
                   Continuation command)
DESCRIBE THE METHOD

Specified by:
lookup in interface VersioningPast
Parameters:
id - DESCRIBE THE PARAMETER
version - DESCRIBE THE PARAMETER
command - DESCRIBE THE PARAMETER

lookupHandles

public void lookupHandles(Id id,
                          long version,
                          int num,
                          Continuation command)
DESCRIBE THE METHOD

Specified by:
lookupHandles in interface VersioningPast
Parameters:
id - DESCRIBE THE PARAMETER
version - DESCRIBE THE PARAMETER
num - DESCRIBE THE PARAMETER
command - DESCRIBE THE PARAMETER

refresh

public void refresh(Id[] ids,
                    long[] versions,
                    long[] expirations,
                    Continuation command)
DESCRIBE THE METHOD

Specified by:
refresh in interface VersioningPast
Parameters:
ids - DESCRIBE THE PARAMETER
versions - DESCRIBE THE PARAMETER
expirations - DESCRIBE THE PARAMETER
command - DESCRIBE THE PARAMETER

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection