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
Created by The eXo Platform SARL Author : Alex Reshetnyak alex.reshetnyak@exoplatform.com.ua Nov
20, 2007
-
Field Summary
FieldsFields inherited from class org.exoplatform.services.jcr.ext.backup.impl.AbstractIncrementalBackupJob
latcher, suspendBuffer, workingThreadsFields 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 TypeMethodDescriptionprotected URLThis 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.booleanprotected 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, suspendMethods inherited from class org.exoplatform.services.jcr.ext.backup.impl.AbstractBackupJob
addListener, getId, getState, getStorageURL, notifyError, notifyListeners, removeListener
-
Field Details
-
LOG
protected static final org.exoplatform.services.log.Log LOG
-
-
Constructor Details
-
IncrementalBackupJob
public IncrementalBackupJob()
-
-
Method Details
-
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
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 IOException Description 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()
-