|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.p2p.aggregation.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
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 |
protected GCPast newPast
protected GCPast oldPast
protected VersioningPast vNewPast
protected VersioningPast vOldPast
protected Logger logger
Constructor Detail |
public Moraine(GCPast newPast, GCPast oldPast)
newPast
- DESCRIBE THE PARAMETERoldPast
- DESCRIBE THE PARAMETERMethod Detail |
public NodeHandle getLocalNodeHandle()
getLocalNodeHandle
in interface Past
public int getReplicationFactor()
getReplicationFactor
in interface Past
public Environment getEnvironment()
getEnvironment
in interface Past
public java.lang.String getInstance()
getInstance
in interface Past
public void setContentDeserializer(PastContentDeserializer deserializer)
setContentDeserializer
in interface Past
deserializer
- The new ContentDeserializer valuepublic void setContentHandleDeserializer(PastContentHandleDeserializer deserializer)
setContentHandleDeserializer
in interface Past
deserializer
- The new ContentHandleDeserializer valuepublic void insert(PastContent obj, Continuation command)
insert
in interface GCPast
obj
- DESCRIBE THE PARAMETERcommand
- DESCRIBE THE PARAMETERpublic void lookup(Id id, Continuation command)
lookup
in interface Past
id
- DESCRIBE THE PARAMETERcommand
- DESCRIBE THE PARAMETERpublic void lookup(Id id, boolean cache, Continuation command)
lookup
in interface Past
id
- DESCRIBE THE PARAMETERcache
- DESCRIBE THE PARAMETERcommand
- DESCRIBE THE PARAMETERpublic void lookupHandles(Id id, int max, Continuation command)
lookupHandles
in interface Past
id
- DESCRIBE THE PARAMETERmax
- DESCRIBE THE PARAMETERcommand
- DESCRIBE THE PARAMETERpublic void lookupHandle(Id id, NodeHandle handle, Continuation command)
lookupHandle
in interface Past
id
- DESCRIBE THE PARAMETERhandle
- DESCRIBE THE PARAMETERcommand
- DESCRIBE THE PARAMETERpublic void fetch(PastContentHandle handle, Continuation command)
fetch
in interface Past
handle
- DESCRIBE THE PARAMETERcommand
- DESCRIBE THE PARAMETERpublic void insert(PastContent obj, long expiration, Continuation command)
insert
in interface GCPast
obj
- DESCRIBE THE PARAMETERexpiration
- DESCRIBE THE PARAMETERcommand
- DESCRIBE THE PARAMETERpublic void refresh(Id[] ids, long[] expirations, Continuation command)
refresh
in interface GCPast
ids
- DESCRIBE THE PARAMETERexpirations
- DESCRIBE THE PARAMETERcommand
- DESCRIBE THE PARAMETERpublic void refresh(Id[] ids, long expiration, Continuation command)
refresh
in interface GCPast
ids
- DESCRIBE THE PARAMETERexpiration
- DESCRIBE THE PARAMETERcommand
- DESCRIBE THE PARAMETERpublic void lookup(Id id, long version, Continuation command)
lookup
in interface VersioningPast
id
- DESCRIBE THE PARAMETERversion
- DESCRIBE THE PARAMETERcommand
- DESCRIBE THE PARAMETERpublic void lookupHandles(Id id, long version, int num, Continuation command)
lookupHandles
in interface VersioningPast
id
- DESCRIBE THE PARAMETERversion
- DESCRIBE THE PARAMETERnum
- DESCRIBE THE PARAMETERcommand
- DESCRIBE THE PARAMETERpublic void refresh(Id[] ids, long[] versions, long[] expirations, Continuation command)
refresh
in interface VersioningPast
ids
- DESCRIBE THE PARAMETERversions
- DESCRIBE THE PARAMETERexpirations
- DESCRIBE THE PARAMETERcommand
- DESCRIBE THE PARAMETER
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |