org.exoplatform.services.jcr.ext.backup.impl
Class AbstractIncrementalBackupJob

java.lang.Object
  extended by org.exoplatform.services.jcr.ext.backup.impl.AbstractBackupJob
      extended by org.exoplatform.services.jcr.ext.backup.impl.AbstractIncrementalBackupJob
All Implemented Interfaces:
java.lang.Runnable, ItemsPersistenceListener, BackupJob
Direct Known Subclasses:
IncrementalBackupJob

public abstract class AbstractIncrementalBackupJob
extends AbstractBackupJob
implements ItemsPersistenceListener

Created by The eXo Platform SARL .

Version:
$Id: AbstractIncrementalBackupJob.java 35186 2009-08-07 14:23:43Z pnedonosko $
Author:
Gennady Azarenkov

Field Summary
protected  java.util.List<ItemStateChangesLog> suspendBuffer
           
 
Fields inherited from class org.exoplatform.services.jcr.ext.backup.impl.AbstractBackupJob
config, id, repository, state, timeStamp, url, workspaceName
 
Fields inherited from interface org.exoplatform.services.jcr.ext.backup.BackupJob
FINISHED, FULL, INCREMENTAL, STARTING, WAITING, WORKING
 
Constructor Summary
AbstractIncrementalBackupJob()
           
 
Method Summary
 int getType()
          FULL or INCREMENTAL
 void onSaveItems(ItemStateChangesLog chlog)
           
 java.net.URL resume()
           
 void run()
           
protected abstract  void save(ItemStateChangesLog log)
          Implementation specific saving
 void suspend()
           
 
Methods inherited from class org.exoplatform.services.jcr.ext.backup.impl.AbstractBackupJob
addListener, createStorage, getId, getState, getStorageURL, notifyError, notifyListeners, removeListener
 
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
 

Field Detail

suspendBuffer

protected final java.util.List<ItemStateChangesLog> suspendBuffer
Constructor Detail

AbstractIncrementalBackupJob

public AbstractIncrementalBackupJob()
Method Detail

getType

public final int getType()
Description copied from interface: BackupJob
FULL or INCREMENTAL

Specified by:
getType in interface BackupJob
Returns:

onSaveItems

public void onSaveItems(ItemStateChangesLog chlog)
Specified by:
onSaveItems in interface ItemsPersistenceListener
See Also:
ItemsPersistenceListener.onSaveItems(org.exoplatform.services.jcr.dataflow.ItemStateChangesLog)

run

public final void run()
Specified by:
run in interface java.lang.Runnable
See Also:
Runnable.run()

suspend

public final void suspend()

resume

public final java.net.URL resume()

save

protected abstract void save(ItemStateChangesLog log)
                      throws java.io.IOException
Implementation specific saving

Parameters:
log -
Throws:
java.io.IOException


Copyright © 2012 eXo Platform SAS. All Rights Reserved.