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

java.lang.Object
  extended by org.exoplatform.services.jcr.ext.backup.impl.BackupManagerImpl
All Implemented Interfaces:
BackupManager, org.picocontainer.Startable

public class BackupManagerImpl
extends java.lang.Object
implements BackupManager, org.picocontainer.Startable

Created by The eXo Platform SAS .

Version:
$Id: BackupManagerImpl.java 39448 2009-10-30 14:44:20Z rainf0x $
Author:
Gennady Azarenkov

Field Summary
protected static org.apache.commons.logging.Log log
           
 
Fields inherited from interface org.exoplatform.services.jcr.ext.backup.BackupManager
FULL_AND_INCREMENTAL, FULL_BACKUP_ONLY
 
Constructor Summary
BackupManagerImpl(org.exoplatform.container.xml.InitParams initParams, RepositoryService repoService)
           
BackupManagerImpl(org.exoplatform.container.xml.InitParams initParams, RepositoryService repoService, RegistryService registryService)
           
 
Method Summary
 BackupChain findBackup(java.lang.String repository, java.lang.String workspace)
           
 java.io.File getBackupDirectory()
           
 BackupChainLog[] getBackupsLogs()
           
 java.util.Set<BackupChain> getCurrentBackups()
           
 java.lang.String getFullBackupType()
           
 java.lang.String getIncrementalBackupType()
           
 BackupMessage[] getMessages()
           
 BackupScheduler getScheduler()
           
 void restore(BackupChainLog log, RepositoryEntry repository, WorkspaceEntry workspaceEntry)
           
 void start()
           
 BackupChain startBackup(BackupConfig config)
           
 void stop()
           
 void stopBackup(BackupChain backup)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Constructor Detail

BackupManagerImpl

public BackupManagerImpl(org.exoplatform.container.xml.InitParams initParams,
                         RepositoryService repoService)

BackupManagerImpl

public BackupManagerImpl(org.exoplatform.container.xml.InitParams initParams,
                         RepositoryService repoService,
                         RegistryService registryService)
Method Detail

getCurrentBackups

public java.util.Set<BackupChain> getCurrentBackups()
Specified by:
getCurrentBackups in interface BackupManager

getMessages

public BackupMessage[] getMessages()
Specified by:
getMessages in interface BackupManager

getBackupsLogs

public BackupChainLog[] getBackupsLogs()
Specified by:
getBackupsLogs in interface BackupManager

restore

public void restore(BackupChainLog log,
                    RepositoryEntry repository,
                    WorkspaceEntry workspaceEntry)
             throws BackupOperationException,
                    javax.jcr.RepositoryException,
                    RepositoryConfigurationException,
                    BackupConfigurationException
Specified by:
restore in interface BackupManager
Throws:
BackupOperationException
javax.jcr.RepositoryException
RepositoryConfigurationException
BackupConfigurationException

startBackup

public BackupChain startBackup(BackupConfig config)
                        throws BackupOperationException,
                               BackupConfigurationException,
                               javax.jcr.RepositoryException,
                               RepositoryConfigurationException
Specified by:
startBackup in interface BackupManager
Throws:
BackupOperationException
BackupConfigurationException
javax.jcr.RepositoryException
RepositoryConfigurationException

stopBackup

public void stopBackup(BackupChain backup)
Specified by:
stopBackup in interface BackupManager

start

public void start()
Specified by:
start in interface org.picocontainer.Startable

stop

public void stop()
Specified by:
stop in interface org.picocontainer.Startable

findBackup

public BackupChain findBackup(java.lang.String repository,
                              java.lang.String workspace)
Specified by:
findBackup in interface BackupManager

getScheduler

public BackupScheduler getScheduler()
Specified by:
getScheduler in interface BackupManager

getBackupDirectory

public java.io.File getBackupDirectory()
Specified by:
getBackupDirectory in interface BackupManager

getFullBackupType

public java.lang.String getFullBackupType()
Specified by:
getFullBackupType in interface BackupManager

getIncrementalBackupType

public java.lang.String getIncrementalBackupType()
Specified by:
getIncrementalBackupType in interface BackupManager


Copyright © 2010 eXo Platform SAS. All Rights Reserved.