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

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

java.lang.Object
  extended by java.lang.Thread
      extended by org.exoplatform.services.jcr.ext.backup.impl.JobRepositoryRestore
          extended by org.exoplatform.services.jcr.ext.backup.impl.JobExistingRepositoryRestore
All Implemented Interfaces:
Runnable

public class JobExistingRepositoryRestore
extends JobRepositoryRestore

Created by The eXo Platform SAS.
Date: 2010

Version:
$Id$
Author:
Alex Reshetnyak

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class org.exoplatform.services.jcr.ext.backup.impl.JobRepositoryRestore
LOG, REPOSITORY_RESTORE_FAIL, REPOSITORY_RESTORE_INITIALIZED, REPOSITORY_RESTORE_STARTED, REPOSITORY_RESTORE_SUCCESSFUL, repositoryEntry, repositoryService, workspacesMapping
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
JobExistingRepositoryRestore(RepositoryService repoService, BackupManagerImpl backupManagerImpl, RepositoryEntry repositoryEntry, Map<String,File> workspacesMapping, File backupChainLogFile)
          JobExistingRepositoryRestore constructor.
JobExistingRepositoryRestore(RepositoryService repoService, BackupManagerImpl backupManagerImpl, RepositoryEntry repositoryEntry, Map<String,File> workspacesMapping, File backupChainLogFile, boolean removeJobOnceOver)
          JobExistingRepositoryRestore constructor.
 
Method Summary
protected  void removeRepository(RepositoryService repositoryService, String repositoryName)
          Remove repository.
protected  void restoreRepository()
          Will be restored the workspace.
 
Methods inherited from class org.exoplatform.services.jcr.ext.backup.impl.JobRepositoryRestore
getEndTime, getRepositoryBackupChainLog, getRepositoryEntry, getRepositoryName, getRestoreException, getStartTime, getStateRestore, restore, run
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JobExistingRepositoryRestore

public JobExistingRepositoryRestore(RepositoryService repoService,
                                    BackupManagerImpl backupManagerImpl,
                                    RepositoryEntry repositoryEntry,
                                    Map<String,File> workspacesMapping,
                                    File backupChainLogFile)
JobExistingRepositoryRestore constructor.


JobExistingRepositoryRestore

public JobExistingRepositoryRestore(RepositoryService repoService,
                                    BackupManagerImpl backupManagerImpl,
                                    RepositoryEntry repositoryEntry,
                                    Map<String,File> workspacesMapping,
                                    File backupChainLogFile,
                                    boolean removeJobOnceOver)
JobExistingRepositoryRestore constructor.

Method Detail

restoreRepository

protected void restoreRepository()
                          throws RepositoryRestoreExeption
Description copied from class: JobRepositoryRestore
Will be restored the workspace.

Overrides:
restoreRepository in class JobRepositoryRestore
Throws:
RepositoryRestoreExeption

removeRepository

protected void removeRepository(RepositoryService repositoryService,
                                String repositoryName)
                         throws javax.jcr.RepositoryException,
                                RepositoryConfigurationException
Remove repository.

Overrides:
removeRepository in class JobRepositoryRestore
Parameters:
repositoryService - RepositoryService, the repository service
repositoryName - String, the repository name
Throws:
javax.jcr.RepositoryException - will be generated the RepositoryException
RepositoryConfigurationException

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

Copyright © 2013 eXo Platform SAS. All Rights Reserved.