Class SyncManager

    • Constructor Detail

    • Method Detail

      • isAvailable

        public boolean isAvailable()
      • getLastSyncDate

        public java.util.Date getLastSyncDate()
      • getLastSync

        public LogEntry getLastSync()
      • setLastSyncStamp

        public void setLastSyncStamp​(Stamp lastSyncStamp)
      • getOpMap

        public java.util.TreeMap<java.lang.String,​java.util.TreeSet<StorableLogEntry>> getOpMap()
      • getDataMap

        public java.util.TreeMap<java.lang.String,​java.util.List<StorableLogEntry>> getDataMap()
      • getOpCount

        public int getOpCount()
      • getGreatestCommonStamp

        public Stamp getGreatestCommonStamp()
      • getLogFilename

        public java.lang.String getLogFilename()
      • getStore

        public Store getStore()
      • replaceDivergentSuffix

        public void replaceDivergentSuffix​(java.util.TreeSet<StorableLogEntry> newSuffix)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • handleCreate

        public void handleCreate​(Storable storable,
                                 boolean firstTime)
        This method gets called when a storable is created.
        Specified by:
        handleCreate in interface StoreListener
        Parameters:
        storable - the storable
        firstTime - true if it is the first time this operation is processed
      • handlePrepareUpdate

        public 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.
        Specified by:
        handlePrepareUpdate in interface StoreListener
        Parameters:
        storable - the storable
        attributes - the attributes to update
        firstTime - true if it is the first time this operation is processed
      • handleCommitUpdate

        public void handleCommitUpdate​(Storable storable,
                                       Storable oldStorable,
                                       boolean firstTime)
        This method gets called when after a storable has been updated.
        Specified by:
        handleCommitUpdate in interface StoreListener
        Parameters:
        storable - the storable
        oldStorable - the previous version of the storable
        firstTime - true if it is the first time this operation is processed
      • handleDelete

        public void handleDelete​(Storable storable,
                                 boolean firstTime)
        This method gets called when a storable is deleted.
        Specified by:
        handleDelete in interface StoreListener
        Parameters:
        storable - the storable
        firstTime - true if it is the first time this operation is processed