public abstract class AbstractIncrementalBackupJob extends AbstractBackupJob implements ItemsPersistenceListener
| Modifier and Type | Field and Description |
|---|---|
protected CountDownLatch |
latcher
Allows to make all threads waiting.
|
protected List<ItemStateChangesLog> |
suspendBuffer
Should be synchronized collection.
|
protected AtomicInteger |
workingThreads
The amount of current working threads.
|
config, id, repository, state, timeStamp, url, workspaceName| Constructor and Description |
|---|
AbstractIncrementalBackupJob() |
| Modifier and Type | Method and Description |
|---|---|
int |
getType()
Getting the type of job.
|
void |
onSaveItems(ItemStateChangesLog chlog) |
URL |
resume() |
void |
run() |
protected abstract void |
save(ItemStateChangesLog log)
Implementation specific saving
|
void |
suspend() |
addListener, createStorage, getId, getState, getStorageURL, notifyError, notifyListeners, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisTXAwareprotected final List<ItemStateChangesLog> suspendBuffer
protected AtomicInteger workingThreads
protected CountDownLatch latcher
public final int getType()
BackupJobpublic void onSaveItems(ItemStateChangesLog chlog)
onSaveItems in interface ItemsPersistenceListenerpublic final void run()
run in interface RunnableRunnable.run()public final void suspend()
public final URL resume()
protected abstract void save(ItemStateChangesLog log) throws IOException
log - IOExceptionCopyright © 2020 eXo Platform SAS. All Rights Reserved.