eXo JCR :: Component :: Extension Service 1.15.0-CR2

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, RepositoryBackupChain

public class BackupChainImpl
extends Object
implements BackupChain

Created by The eXo Platform SARL .

Version:
$Id: $
Author:
Gennady Azarenkov

Field Summary
 
Fields inherited from interface org.exoplatform.services.jcr.ext.backup.BackupChain
FULL_WORKING, INCREMENTAL_WORKING, TIMEOUT
 
Fields inherited from interface org.exoplatform.services.jcr.ext.backup.RepositoryBackupChain
FINISHED, FULL_BACKUP_FINISHED_INCREMENTAL_BACKUP_WORKING, INITIALIZED, WORKING
 
Constructor Summary
BackupChainImpl(BackupConfig config, File logDirectory, RepositoryService repositoryService, String fullBackupType, String incrementalBackupType, String backupId, File rootDir, Calendar startTime)
           
 
Method Summary
 void addListener(BackupJobListener listener)
          Add listener to all existing and will be created in future jobs.
 BackupConfig getBackupConfig()
          Getting backup config.
 String getBackupId()
          Getting identifier of backup.
 List<BackupJob> getBackupJobs()
          Getting current backup jobs.
 int getFullBackupState()
          Getting the state of full backup.
 int getIncrementalBackupState()
          Getting the state of incremental backup.
 String getLogFilePath()
          Getting path to backup log.
 Calendar getStartedTime()
          Getting started time of backup.
 int getState()
          Getting state of backup.
 boolean isFinished()
          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()
          Call start backup.
 void stopBackup()
          Call stop backup.
 
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,
                       File logDirectory,
                       RepositoryService repositoryService,
                       String fullBackupType,
                       String incrementalBackupType,
                       String backupId,
                       File rootDir,
                       Calendar startTime)
                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
Parameters:
listener - BackupJobListener, the backup job listener

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
Parameters:
listener - BackupJobListener, the backup job listener

getBackupJobs

public List<BackupJob> getBackupJobs()
Description copied from interface: BackupChain
Getting current backup jobs.

Specified by:
getBackupJobs in interface BackupChain
Returns:
List return list of current backup jobs.

startBackup

public final void startBackup()
Description copied from interface: RepositoryBackupChain
Call start backup.

Specified by:
startBackup in interface RepositoryBackupChain

stopBackup

public final void stopBackup()
Description copied from interface: RepositoryBackupChain
Call stop backup.

Specified by:
stopBackup in interface RepositoryBackupChain

restartIncrementalBackup

public void restartIncrementalBackup()

getBackupConfig

public BackupConfig getBackupConfig()
Description copied from interface: BackupChain
Getting backup config.

Specified by:
getBackupConfig in interface BackupChain
Specified by:
getBackupConfig in interface RepositoryBackupChain
Returns:
BackupConfig return the backup config

getFullBackupState

public int getFullBackupState()
Description copied from interface: BackupChain
Getting the state of full backup.

Specified by:
getFullBackupState in interface BackupChain
Returns:
int return state of full backup

getIncrementalBackupState

public int getIncrementalBackupState()
Description copied from interface: BackupChain
Getting the state of incremental backup.

Specified by:
getIncrementalBackupState in interface BackupChain
Returns:
int return state of full backup

getLogFilePath

public String getLogFilePath()
Description copied from interface: RepositoryBackupChain
Getting path to backup log.

Specified by:
getLogFilePath in interface RepositoryBackupChain
Returns:
String return path to backup log

getState

public int getState()
Description copied from interface: RepositoryBackupChain
Getting state of backup.

Specified by:
getState in interface RepositoryBackupChain
Returns:
int return state of backup

isFinished

public boolean isFinished()
Description copied from interface: RepositoryBackupChain
isFinished.

Specified by:
isFinished in interface RepositoryBackupChain
Returns:
boolean return 'true' if backup was finished.

getBackupId

public String getBackupId()
Description copied from interface: RepositoryBackupChain
Getting identifier of backup.

Specified by:
getBackupId in interface RepositoryBackupChain
Returns:
String return identifier of backup

getStartedTime

public Calendar getStartedTime()
Description copied from interface: RepositoryBackupChain
Getting started time of backup.

Specified by:
getStartedTime in interface RepositoryBackupChain
Returns:
Calendar return started time of backup

eXo JCR :: Component :: Extension Service 1.15.0-CR2

Copyright © 2012 eXo Platform SAS. All Rights Reserved.