com.jalios.jstore
Class LogicalStampManager

java.lang.Object
  extended by com.jalios.jstore.StampManager
      extended by com.jalios.jstore.LogicalStampManager

public class LogicalStampManager
extends StampManager

This class provides logical stamps.

Version:
$Revision: 27753 $
Author:
Olivier Dedieu

Field Summary
static String REVISION
           
 
Constructor Summary
LogicalStampManager(String urid)
          Creates a new StampManager
LogicalStampManager(String urid, long logicalTime)
          Creates a new StampManager
 
Method Summary
 Stamp getStamp()
          Return a new stamp.
 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

REVISION

public static final String REVISION
See Also:
Constant Field Values
Constructor Detail

LogicalStampManager

public LogicalStampManager(String urid,
                           long logicalTime)
Creates a new StampManager

Parameters:
urid - Unique Replica IDentifier
logicalTime - the starting logical time

LogicalStampManager

public LogicalStampManager(String urid)
Creates a new StampManager

Parameters:
urid - Unique Replica IDentifier
Method Detail

getStamp

public Stamp getStamp()
Return a new stamp. Ensures their strict monotonicity.

Specified by:
getStamp in class StampManager
Returns:
a new stamp

update

public void update(Stamp stamp,
                   boolean updatePT)
Updates the clock

Overrides:
update in class StampManager
Parameters:
stamp - the stamp containing the new time (MUST BE greater
updatePT - if true use this stamp to update the progress table than the current time, otherwise it is ignored)
Since:
jcms-5.0.6


Copyright © 2001-2010 Jalios SA. All Rights Reserved.