Class JobExistingRepositoryRestore
- java.lang.Object
-
- java.lang.Thread
-
- org.exoplatform.services.jcr.ext.backup.impl.JobRepositoryRestore
-
- 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
Constructors Constructor Description JobExistingRepositoryRestore(org.exoplatform.services.jcr.RepositoryService repoService, BackupManagerImpl backupManagerImpl, org.exoplatform.services.jcr.config.RepositoryEntry repositoryEntry, Map<String,File> workspacesMapping, File backupChainLogFile)JobExistingRepositoryRestore constructor.JobExistingRepositoryRestore(org.exoplatform.services.jcr.RepositoryService repoService, BackupManagerImpl backupManagerImpl, org.exoplatform.services.jcr.config.RepositoryEntry repositoryEntry, Map<String,File> workspacesMapping, File backupChainLogFile, boolean removeJobOnceOver)JobExistingRepositoryRestore constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidremoveRepository(org.exoplatform.services.jcr.RepositoryService repositoryService, String repositoryName)Remove repository.protected voidrestoreRepository()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, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Constructor Detail
-
JobExistingRepositoryRestore
public JobExistingRepositoryRestore(org.exoplatform.services.jcr.RepositoryService repoService, BackupManagerImpl backupManagerImpl, org.exoplatform.services.jcr.config.RepositoryEntry repositoryEntry, Map<String,File> workspacesMapping, File backupChainLogFile)JobExistingRepositoryRestore constructor.
-
JobExistingRepositoryRestore
public JobExistingRepositoryRestore(org.exoplatform.services.jcr.RepositoryService repoService, BackupManagerImpl backupManagerImpl, org.exoplatform.services.jcr.config.RepositoryEntry repositoryEntry, Map<String,File> workspacesMapping, File backupChainLogFile, boolean removeJobOnceOver)JobExistingRepositoryRestore constructor.
-
-
Method Detail
-
restoreRepository
protected void restoreRepository() throws RepositoryRestoreExeptionDescription copied from class:JobRepositoryRestoreWill be restored the workspace.- Overrides:
restoreRepositoryin classJobRepositoryRestore- Throws:
RepositoryRestoreExeption
-
removeRepository
protected void removeRepository(org.exoplatform.services.jcr.RepositoryService repositoryService, String repositoryName) throws javax.jcr.RepositoryException, org.exoplatform.services.jcr.config.RepositoryConfigurationExceptionRemove repository.- Overrides:
removeRepositoryin classJobRepositoryRestore- Parameters:
repositoryService- RepositoryService, the repository servicerepositoryName- String, the repository name- Throws:
javax.jcr.RepositoryException- will be generated the RepositoryExceptionorg.exoplatform.services.jcr.config.RepositoryConfigurationException
-
-