| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jalios.jstore.StampManager
com.jalios.jstore.TemporalStampManager
public class TemporalStampManager
This class provides pseudo-temporal stamps.
| Field Summary | |
|---|---|
static String | 
REVISION
 | 
| Constructor Summary | |
|---|---|
TemporalStampManager(String urid)
Creates a new StampManager  | 
|
TemporalStampManager(String urid,
                     long logicalTime)
Creates a new StampManager  | 
|
| Method Summary | |
|---|---|
 Stamp | 
getStamp()
Return a new stamp.  | 
 void | 
setGranularity(long granularity)
Set the logical clock time granularity  | 
 void | 
update(Stamp stamp,
       boolean updatePT)
Updates the clock  | 
| Methods inherited from class com.jalios.jstore.StampManager | 
|---|
getProgressStamp, getProgressTable, getUrid, setUrid | 
| 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 TemporalStampManager(String urid,
                            long logicalTime)
urid - Unique Replica IDentifierlogicalTime - the starting logical timepublic TemporalStampManager(String urid)
urid - Unique Replica IDentifier| Method Detail | 
|---|
public void setGranularity(long granularity)
granularity - - the granularity in millisecspublic Stamp getStamp()
getStamp in class StampManager
public void update(Stamp stamp,
                   boolean updatePT)
update in class StampManagerstamp - 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)
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||