org.exoplatform.services.jcr.ext.backup.impl
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, ItemsPersistenceListener, BackupJob
- Direct Known Subclasses:
- IncrementalBackupJob
public abstract class AbstractIncrementalBackupJob
- extends AbstractBackupJob
- implements ItemsPersistenceListener
Created by The eXo Platform SARL .
- Version:
- $Id: $
- Author:
- Gennady Azarenkov
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.exoplatform.services.jcr.ext.backup.BackupJob |
init, stop |
suspendBuffer
protected final List<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.
AbstractIncrementalBackupJob
public AbstractIncrementalBackupJob()
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(ItemStateChangesLog chlog)
-
- Specified by:
onSaveItems in interface ItemsPersistenceListener
run
public final void run()
- Specified by:
run in interface Runnable
- See Also:
Runnable.run()
suspend
public final void suspend()
resume
public final URL resume()
save
protected abstract void save(ItemStateChangesLog log)
throws IOException
- Implementation specific saving
- Parameters:
log -
- Throws:
IOException
Copyright © 2012 eXo Platform SAS. All Rights Reserved.