Class IncrementalBackupJob
- java.lang.Object
-
- org.exoplatform.services.jcr.ext.backup.impl.AbstractBackupJob
-
- org.exoplatform.services.jcr.ext.backup.impl.AbstractIncrementalBackupJob
-
- org.exoplatform.services.jcr.ext.backup.impl.fs.IncrementalBackupJob
-
- All Implemented Interfaces:
Runnable,org.exoplatform.services.jcr.dataflow.persistent.ItemsPersistenceListener,BackupJob
public class IncrementalBackupJob extends AbstractIncrementalBackupJob
Created by The eXo Platform SARL Author : Alex Reshetnyak alex.reshetnyak@exoplatform.com.ua Nov 20, 2007
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.exoplatform.services.log.LogLOG-
Fields inherited from class org.exoplatform.services.jcr.ext.backup.impl.AbstractIncrementalBackupJob
latcher, suspendBuffer, workingThreads
-
Fields inherited from class org.exoplatform.services.jcr.ext.backup.impl.AbstractBackupJob
config, id, repository, state, timeStamp, url, workspaceName
-
-
Constructor Summary
Constructors Constructor Description IncrementalBackupJob()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected URLcreateStorage()This method is called by run() and resume() Backup implementation knows how to create new storagevoidinit(org.exoplatform.services.jcr.core.ManageableRepository repository, String workspaceName, BackupConfig config, Calendar timeStamp)Initialize.booleanisTXAware()protected voidsave(org.exoplatform.services.jcr.dataflow.ItemStateChangesLog persistentLog)Implementation specific savingvoidstop()Call stop of job.voidwriteExternal(ObjectOutputStream out, org.exoplatform.services.jcr.dataflow.TransactionChangesLog changesLog, org.exoplatform.services.jcr.impl.util.io.FileCleaner fileCleaner)-
Methods inherited from class org.exoplatform.services.jcr.ext.backup.impl.AbstractIncrementalBackupJob
getType, onSaveItems, resume, run, suspend
-
Methods inherited from class org.exoplatform.services.jcr.ext.backup.impl.AbstractBackupJob
addListener, getId, getState, getStorageURL, notifyError, notifyListeners, removeListener
-
-
-
-
Method Detail
-
init
public void init(org.exoplatform.services.jcr.core.ManageableRepository repository, String workspaceName, BackupConfig config, Calendar timeStamp)Description copied from interface:BackupJobInitialize.- Parameters:
repository- ManageableRepository, the manageable repositoryworkspaceName- String, the workspace nameconfig- BackupConfig, the backup configtimeStamp- Calendar, the time stamp
-
stop
public void stop()
Description copied from interface:BackupJobCall stop of job.
-
createStorage
protected URL createStorage() throws FileNotFoundException, IOException
Description copied from class:AbstractBackupJobThis method is called by run() and resume() Backup implementation knows how to create new storage- Specified by:
createStoragein classAbstractBackupJob- Returns:
- URL of new storage
- Throws:
FileNotFoundExceptionIOException
-
save
protected void save(org.exoplatform.services.jcr.dataflow.ItemStateChangesLog persistentLog) throws IOExceptionDescription copied from class:AbstractIncrementalBackupJobImplementation specific saving- Specified by:
savein classAbstractIncrementalBackupJob- Throws:
IOException
-
writeExternal
public void writeExternal(ObjectOutputStream out, org.exoplatform.services.jcr.dataflow.TransactionChangesLog changesLog, org.exoplatform.services.jcr.impl.util.io.FileCleaner fileCleaner) throws IOException
- Throws:
IOException
-
isTXAware
public boolean isTXAware()
-
-