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
Created by The eXo Platform SAS.
Date: 2010
Date: 2010
- Version:
- $Id$
- Author:
- Alex Reshetnyak
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, 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, workspacesMappingFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionJobExistingRepositoryRestore(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
Modifier and TypeMethodDescriptionprotected voidremoveRepository(org.exoplatform.services.jcr.RepositoryService repositoryService, String repositoryName) Remove repository.protected voidWill be restored the workspace.Methods inherited from class org.exoplatform.services.jcr.ext.backup.impl.JobRepositoryRestore
getEndTime, getRepositoryBackupChainLog, getRepositoryEntry, getRepositoryName, getRestoreException, getStartTime, getStateRestore, restore, runMethods 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, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Constructor Details
-
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 Details
-
restoreRepository
Description copied from class:JobRepositoryRestoreWill be restored the workspace.- Overrides:
restoreRepositoryin classJobRepositoryRestore- Throws:
RepositoryRestoreExeptionRepositoryRestoreExeption
-
removeRepository
protected void removeRepository(org.exoplatform.services.jcr.RepositoryService repositoryService, String repositoryName) throws javax.jcr.RepositoryException, org.exoplatform.services.jcr.config.RepositoryConfigurationException Remove 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
-