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

java.lang.Object
  extended by org.exoplatform.services.jcr.ext.backup.impl.BackupChainImpl
All Implemented Interfaces:
BackupChain

public class BackupChainImpl
extends java.lang.Object
implements BackupChain

Created by The eXo Platform SARL .

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

Field Summary
 
Fields inherited from interface org.exoplatform.services.jcr.ext.backup.BackupChain
FINISHED, FULL_WORKING, INCREMENTAL_WORKING, INITIALIZED, TIMEOUT
 
Constructor Summary
BackupChainImpl(BackupConfig config, java.io.File logDirectory, ManageableRepository repository, java.lang.String fullBackupType, java.lang.String incrementalBackupType)
           
 
Method Summary
 void addListener(BackupJobListener listener)
          Add listener to all existing and will be created in future jobs
 BackupConfig getBackupConfig()
           
 java.util.List<BackupJob> getBackupJobs()
           
 int getFullBackupState()
           
 java.lang.String getLogFilePath()
           
 int getState()
           
 boolean isFinished()
           
 void removeListener(BackupJobListener listener)
          Remove listener from all existing and don't add it to a created in future jobs
 void restartIncrementalBackup()
           
 void startBackup()
           
 void stopBackup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BackupChainImpl

public BackupChainImpl(BackupConfig config,
                       java.io.File logDirectory,
                       ManageableRepository repository,
                       java.lang.String fullBackupType,
                       java.lang.String incrementalBackupType)
                throws BackupOperationException,
                       BackupConfigurationException
Throws:
BackupOperationException
BackupConfigurationException
Method Detail

addListener

public void addListener(BackupJobListener listener)
Description copied from interface: BackupChain
Add listener to all existing and will be created in future jobs

Specified by:
addListener in interface BackupChain

removeListener

public void removeListener(BackupJobListener listener)
Description copied from interface: BackupChain
Remove listener from all existing and don't add it to a created in future jobs

Specified by:
removeListener in interface BackupChain

getBackupJobs

public java.util.List<BackupJob> getBackupJobs()
Specified by:
getBackupJobs in interface BackupChain

startBackup

public final void startBackup()
Specified by:
startBackup in interface BackupChain

stopBackup

public final void stopBackup()
Specified by:
stopBackup in interface BackupChain

restartIncrementalBackup

public void restartIncrementalBackup()

getBackupConfig

public BackupConfig getBackupConfig()
Specified by:
getBackupConfig in interface BackupChain

getFullBackupState

public int getFullBackupState()
Specified by:
getFullBackupState in interface BackupChain

getLogFilePath

public java.lang.String getLogFilePath()
Specified by:
getLogFilePath in interface BackupChain

getState

public int getState()
Specified by:
getState in interface BackupChain

isFinished

public boolean isFinished()
Specified by:
isFinished in interface BackupChain


Copyright © 2012 eXo Platform SAS. All Rights Reserved.