|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.p2p.aggregation.Moraine
public class Moraine
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
| Field Summary | |
|---|---|
protected Logger |
logger
|
protected GCPast |
newPast
|
protected GCPast |
oldPast
|
protected VersioningPast |
vNewPast
|
protected VersioningPast |
vOldPast
|
| Fields inherited from interface rice.p2p.past.gc.GCPast |
|---|
INFINITY_EXPIRATION |
| Constructor Summary | |
|---|---|
Moraine(GCPast newPast,
GCPast oldPast)
|
|
| Method Summary | |
|---|---|
void |
fetch(PastContentHandle handle,
Continuation command)
Retrieves the object associated with a given content handle. |
Environment |
getEnvironment()
|
java.lang.String |
getInstance()
|
NodeHandle |
getLocalNodeHandle()
get the nodeHandle of the local Past node |
int |
getReplicationFactor()
Returns the number of replicas used in this Past |
void |
insert(PastContent obj,
Continuation command)
Inserts an object with the given ID into this instance of Past. |
void |
insert(PastContent obj,
long expiration,
Continuation command)
Inserts an object with the given ID into this instance of Past. |
void |
lookup(Id id,
boolean cache,
Continuation command)
Retrieves the object stored in this instance of Past with the given ID. |
void |
lookup(Id id,
Continuation command)
Retrieves the object stored in this instance of Past with the given ID. |
void |
lookup(Id id,
long version,
Continuation command)
Retrieves the object stored in this instance of Past with the given ID and the specified version. |
void |
lookupHandle(Id id,
NodeHandle handle,
Continuation command)
Retrieves the handle for the given object stored on the requested node. |
void |
lookupHandles(Id id,
int max,
Continuation command)
Retrieves the handles of up to max replicas of the object stored in this instance of Past with the given ID. |
void |
lookupHandles(Id id,
long version,
int num,
Continuation command)
Retrieves the handles of up to max replicas of the object stored in this instance of Past with the given ID. |
void |
refresh(Id[] ids,
long[] expirations,
Continuation command)
Updates the objects stored under the provided keys id to expire no earlier than the provided expiration time. |
void |
refresh(Id[] ids,
long[] versions,
long[] expirations,
Continuation command)
Updates the objects stored under the provided keys id to expire no earlier than the provided expiration time. |
void |
refresh(Id[] ids,
long expiration,
Continuation command)
Updates the objects stored under the provided keys id to expire no earlier than the provided expiration time. |
void |
setContentDeserializer(PastContentDeserializer deserializer)
|
void |
setContentHandleDeserializer(PastContentHandleDeserializer deserializer)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected GCPast newPast
protected GCPast oldPast
protected VersioningPast vNewPast
protected VersioningPast vOldPast
protected Logger logger
| Constructor Detail |
|---|
public Moraine(GCPast newPast,
GCPast oldPast)
| Method Detail |
|---|
public void insert(PastContent obj,
Continuation command)
GCPast
insert in interface GCPastinsert in interface Pastobj - the object to be insertedcommand - Command to be performed when the result is received
public void lookup(Id id,
Continuation command)
Past
lookup in interface Pastid - the key to be queriedcommand - Command to be performed when the result is received
public void lookup(Id id,
boolean cache,
Continuation command)
Past
lookup in interface Pastid - the key to be queriedcache - Whether or not the result should be cachedcommand - Command to be performed when the result is received
public void lookupHandles(Id id,
int max,
Continuation command)
Past
lookupHandles in interface Pastid - the key to be queriedmax - the maximal number of replicas requestedcommand - Command to be performed when the result is received
public void lookupHandle(Id id,
NodeHandle handle,
Continuation command)
Past
lookupHandle in interface Pastid - the key to be queriedhandle - The node on which the handle is requestedcommand - Command to be performed when the result is received
public void fetch(PastContentHandle handle,
Continuation command)
Past
fetch in interface Pasthandle - the key to be queriedcommand - Command to be performed when the result is receivedpublic NodeHandle getLocalNodeHandle()
Past
getLocalNodeHandle in interface Pastpublic int getReplicationFactor()
Past
getReplicationFactor in interface Pastpublic Environment getEnvironment()
getEnvironment in interface Pastpublic java.lang.String getInstance()
getInstance in interface Pastpublic void setContentDeserializer(PastContentDeserializer deserializer)
setContentDeserializer in interface Pastpublic void setContentHandleDeserializer(PastContentHandleDeserializer deserializer)
setContentHandleDeserializer in interface Past
public void insert(PastContent obj,
long expiration,
Continuation command)
GCPast
insert in interface GCPastobj - the object to be insertedexpiration - the time until which the object must be storedcommand - Command to be performed when the result is received
public void refresh(Id[] ids,
long[] expirations,
Continuation command)
GCPast
refresh in interface GCPastexpirations - The time to extend the lifetime tocommand - Command to be performed when the result is received
public void refresh(Id[] ids,
long expiration,
Continuation command)
GCPast
refresh in interface GCPastexpiration - The time to extend the lifetime to (applies to all keys)command - Command to be performed when the result is received
public void lookup(Id id,
long version,
Continuation command)
VersioningPast
lookup in interface VersioningPastid - the key to be queriedcommand - Command to be performed when the result is received
public void lookupHandles(Id id,
long version,
int num,
Continuation command)
VersioningPast
lookupHandles in interface VersioningPastid - the key to be queriedversion - the requested versioncommand - Command to be performed when the result is received
public void refresh(Id[] ids,
long[] versions,
long[] expirations,
Continuation command)
VersioningPast
refresh in interface VersioningPastcommand - Command to be performed when the result is received
|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||