public abstract class AbstractIncrementalBackupJob extends AbstractBackupJob implements org.exoplatform.services.jcr.dataflow.persistent.ItemsPersistenceListener
| Modifier and Type | Field and Description |
|---|---|
protected CountDownLatch |
latcher
Allows to make all threads waiting.
|
protected List<org.exoplatform.services.jcr.dataflow.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(org.exoplatform.services.jcr.dataflow.ItemStateChangesLog chlog) |
URL |
resume() |
void |
run() |
protected abstract void |
save(org.exoplatform.services.jcr.dataflow.ItemStateChangesLog log)
Implementation specific saving
|
void |
suspend() |
addListener, createStorage, getId, getState, getStorageURL, notifyError, notifyListeners, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected final List<org.exoplatform.services.jcr.dataflow.ItemStateChangesLog> suspendBuffer
protected AtomicInteger workingThreads
protected CountDownLatch latcher
public final int getType()
BackupJobpublic void onSaveItems(org.exoplatform.services.jcr.dataflow.ItemStateChangesLog chlog)
onSaveItems in interface org.exoplatform.services.jcr.dataflow.persistent.ItemsPersistenceListenerpublic final void run()
run in interface RunnableRunnable.run()public final void suspend()
public final URL resume()
protected abstract void save(org.exoplatform.services.jcr.dataflow.ItemStateChangesLog log)
throws IOException
log - IOExceptionCopyright © 2003–2021 eXo Platform SAS. All rights reserved.