|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jalios.jstore.StampManager
public abstract class StampManager
This interface must be implemented by classes providing stamps.
| Field Summary | |
|---|---|
static String |
REVISION
|
| Constructor Summary | |
|---|---|
StampManager(String urid,
long logicalTime)
Creates a new StampManager |
|
| Method Summary | |
|---|---|
Stamp |
getProgressStamp(String urid)
Returns the greatest stamp for a given urid. |
StampTable |
getProgressTable()
Returns the map of greatest stamp |
abstract Stamp |
getStamp()
Return a new stamp. |
String |
getUrid()
Get the value of urid. |
void |
setUrid(String v)
Set the value of urid. |
void |
update(Stamp stamp,
boolean updatePT)
Updates the clock and the progressTable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String REVISION
| Constructor Detail |
|---|
public StampManager(String urid,
long logicalTime)
urid - Unique Replica IDentifierlogicalTime - the starting logical time| Method Detail |
|---|
public StampTable getProgressTable()
public Stamp getProgressStamp(String urid)
urid - the urid
public abstract Stamp getStamp()
public void update(Stamp stamp,
boolean updatePT)
stamp - the stamp containing the new time (MUST BE greaterupdatePT - if true use this stamp to update the progress table
than the current time, otherwise it is ignored)public String getUrid()
public void setUrid(String v)
v - Value to assign to urid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||