Class AbstractIncrementalBackupJob

java.lang.Object
org.exoplatform.services.jcr.ext.backup.impl.AbstractBackupJob
org.exoplatform.services.jcr.ext.backup.impl.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 Details

    • 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 Details

    • AbstractIncrementalBackupJob

      public AbstractIncrementalBackupJob()
  • Method Details

    • 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
    • run

      public final void run()
      Specified by:
      run in interface Runnable
      See Also:
    • 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