Class AbstractIncrementalBackupJob

  • All Implemented Interfaces:
    Runnable, org.exoplatform.services.jcr.dataflow.persistent.ItemsPersistenceListener, BackupJob
    Direct Known Subclasses:
    IncrementalBackupJob

    public abstract class AbstractIncrementalBackupJob
    extends AbstractBackupJob
    implements org.exoplatform.services.jcr.dataflow.persistent.ItemsPersistenceListener
    Created by The eXo Platform SARL .
    Version:
    $Id: $
    Author:
    Gennady Azarenkov
    • Field Detail

      • suspendBuffer

        protected final List<org.exoplatform.services.jcr.dataflow.ItemStateChangesLog> suspendBuffer
        Should be synchronized collection.
      • workingThreads

        protected AtomicInteger workingThreads
        The amount of current working threads.
      • latcher

        protected CountDownLatch latcher
        Allows to make all threads waiting.
    • Constructor Detail

      • AbstractIncrementalBackupJob

        public AbstractIncrementalBackupJob()
    • Method Detail

      • getType

        public final int getType()
        Description copied from interface: BackupJob
        Getting the type of job.
        Specified by:
        getType in interface BackupJob
        Returns:
        int return the type of job
      • onSaveItems

        public void onSaveItems​(org.exoplatform.services.jcr.dataflow.ItemStateChangesLog chlog)
        Specified by:
        onSaveItems in interface org.exoplatform.services.jcr.dataflow.persistent.ItemsPersistenceListener
      • suspend

        public final void suspend()
      • resume

        public final URL resume()
      • save

        protected abstract void save​(org.exoplatform.services.jcr.dataflow.ItemStateChangesLog log)
                              throws IOException
        Implementation specific saving
        Parameters:
        log -
        Throws:
        IOException