public class SyncManager extends java.lang.Object implements StoreListener, StoreConstants
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
REVISION |
ARRAY_FLAG, CLEANING_STATE, COLLECTION_FLAG, CREATE_OP, DELETE_OP, IDLE_STATE, INNER_LOGS, INNER_MILESTONE, INNER_PREFIX, INNER_SYNC, ITEM_ESCAPE_CHAR, ITEM_SEPARATOR, LOADING_STATE, MAP_ASSIGN, MAP_CHARS_TO_ESCAPE, MAP_CLASS_SEPARATOR, MAP_FLAG, NAMESPACE, SH_SUFFIX, STORING_STATE, UPDATE_OP| Constructor and Description |
|---|
SyncManager(Store store,
LogManager logMgr) |
| Modifier and Type | Method and Description |
|---|---|
java.util.TreeMap<java.lang.String,java.util.List<StorableLogEntry>> |
getDataMap() |
Stamp |
getGreatestCommonStamp() |
LogEntry |
getLastSync() |
java.util.Date |
getLastSyncDate() |
java.lang.String |
getLogFilename() |
int |
getOpCount() |
java.util.TreeMap<java.lang.String,java.util.TreeSet<StorableLogEntry>> |
getOpMap() |
Store |
getStore() |
void |
handleCommitUpdate(Storable storable,
Storable oldStorable,
boolean firstTime)
This method gets called when after a storable has been updated.
|
void |
handleCreate(Storable storable,
boolean firstTime)
This method gets called when a storable is created.
|
void |
handleDelete(Storable storable,
boolean firstTime)
This method gets called when a storable is deleted.
|
void |
handlePrepareUpdate(Storable storable,
java.util.Map<java.lang.String,java.lang.String> attributes,
boolean firstTime)
This method gets called when before a storable will be updated.
|
boolean |
isAvailable() |
void |
replaceDivergentSuffix(java.util.TreeSet<StorableLogEntry> newSuffix) |
void |
setLastSyncStamp(Stamp lastSyncStamp) |
public static final java.lang.String REVISION
public SyncManager(Store store, LogManager logMgr)
public boolean isAvailable()
public java.util.Date getLastSyncDate()
public LogEntry getLastSync()
public void setLastSyncStamp(Stamp lastSyncStamp)
public java.util.TreeMap<java.lang.String,java.util.TreeSet<StorableLogEntry>> getOpMap()
public java.util.TreeMap<java.lang.String,java.util.List<StorableLogEntry>> getDataMap()
public int getOpCount()
public Stamp getGreatestCommonStamp()
public java.lang.String getLogFilename()
public Store getStore()
public void replaceDivergentSuffix(java.util.TreeSet<StorableLogEntry> newSuffix) throws java.io.IOException
java.io.IOExceptionpublic void handleCreate(Storable storable, boolean firstTime)
handleCreate in interface StoreListenerstorable - the storablefirstTime - true if it is the first time this operation is processedpublic void handlePrepareUpdate(Storable storable, java.util.Map<java.lang.String,java.lang.String> attributes, boolean firstTime)
handlePrepareUpdate in interface StoreListenerstorable - the storableattributes - the attributes to updatefirstTime - true if it is the first time this operation is processedpublic void handleCommitUpdate(Storable storable, Storable oldStorable, boolean firstTime)
handleCommitUpdate in interface StoreListenerstorable - the storableoldStorable - the previous version of the storablefirstTime - true if it is the first time this operation is processedpublic void handleDelete(Storable storable, boolean firstTime)
handleDelete in interface StoreListenerstorable - the storablefirstTime - true if it is the first time this operation is processedCopyright © 2001-2017 Jalios SA. All Rights Reserved.