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 Summary
FieldsModifier and TypeFieldDescriptionprotected CountDownLatchAllows to make all threads waiting.protected final List<org.exoplatform.services.jcr.dataflow.ItemStateChangesLog> Should be synchronized collection.protected AtomicIntegerThe amount of current working threads.Fields inherited from class org.exoplatform.services.jcr.ext.backup.impl.AbstractBackupJob
config, id, repository, state, timeStamp, url, workspaceName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal intgetType()Getting the type of job.voidonSaveItems(org.exoplatform.services.jcr.dataflow.ItemStateChangesLog chlog) final URLresume()final voidrun()protected abstract voidsave(org.exoplatform.services.jcr.dataflow.ItemStateChangesLog log) Implementation specific savingfinal voidsuspend()Methods inherited from class org.exoplatform.services.jcr.ext.backup.impl.AbstractBackupJob
addListener, createStorage, getId, getState, getStorageURL, notifyError, notifyListeners, removeListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.services.jcr.dataflow.persistent.ItemsPersistenceListener
isTXAware
-
Field Details
-
suspendBuffer
Should be synchronized collection. -
workingThreads
The amount of current working threads. -
latcher
Allows to make all threads waiting.
-
-
Constructor Details
-
AbstractIncrementalBackupJob
public AbstractIncrementalBackupJob()
-
-
Method Details
-
getType
public final int getType()Description copied from interface:BackupJobGetting the type of job. -
onSaveItems
public void onSaveItems(org.exoplatform.services.jcr.dataflow.ItemStateChangesLog chlog) - Specified by:
onSaveItemsin interfaceorg.exoplatform.services.jcr.dataflow.persistent.ItemsPersistenceListener
-
run
public final void run() -
suspend
public final void suspend() -
resume
-
save
protected abstract void save(org.exoplatform.services.jcr.dataflow.ItemStateChangesLog log) throws IOException Implementation specific saving- Parameters:
log-- Throws:
IOException
-