eXo JCR :: Component :: Extension Service 1.15.1-CP01

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

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

public class RepositoryBackupChainImpl
extends Object
implements RepositoryBackupChain

Created by The eXo Platform SAS.
Date: 2010

Version:
$Id$
Author:
Alex Reshetnyak

Field Summary
 
Fields inherited from interface org.exoplatform.services.jcr.ext.backup.RepositoryBackupChain
FINISHED, FULL_BACKUP_FINISHED_INCREMENTAL_BACKUP_WORKING, INITIALIZED, WORKING
 
Constructor Summary
RepositoryBackupChainImpl(RepositoryBackupConfig config, File logDirectory, RepositoryService repositoryService, String fullBackupType, String incrementalBackupType, String repositoryBackupId)
           
 
Method Summary
 RepositoryBackupConfig getBackupConfig()
          Getting repository backup config.
 String getBackupId()
          Getting identifier of 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 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

RepositoryBackupChainImpl

public RepositoryBackupChainImpl(RepositoryBackupConfig config,
                                 File logDirectory,
                                 RepositoryService repositoryService,
                                 String fullBackupType,
                                 String incrementalBackupType,
                                 String repositoryBackupId)
                          throws BackupOperationException,
                                 BackupConfigurationException
Throws:
BackupOperationException
BackupConfigurationException
Method Detail

getLogFilePath

public String getLogFilePath()
Getting path to backup log.

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

getState

public int getState()
Getting state of backup.

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

isFinished

public boolean isFinished()
isFinished.

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

startBackup

public void startBackup()
Call start backup.

Specified by:
startBackup in interface RepositoryBackupChain

stopBackup

public void stopBackup()
Call stop backup.

Specified by:
stopBackup in interface RepositoryBackupChain

getBackupId

public String getBackupId()
Getting identifier of backup.

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

getStartedTime

public Calendar getStartedTime()
Getting started time of backup.

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

getBackupConfig

public RepositoryBackupConfig getBackupConfig()
Getting repository backup config.

Specified by:
getBackupConfig in interface RepositoryBackupChain
Returns:
RepositoryBackupConfig return the repository backup config

eXo JCR :: Component :: Extension Service 1.15.1-CP01

Copyright © 2013 eXo Platform SAS. All Rights Reserved.