Class JobExistingWorkspaceRestore
java.lang.Object
java.lang.Thread
org.exoplatform.services.jcr.ext.backup.impl.JobWorkspaceRestore
org.exoplatform.services.jcr.ext.backup.impl.JobExistingWorkspaceRestore
- 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.JobWorkspaceRestore
backupChainLogFile, repositoryName, repositoryService, RESTORE_FAIL, RESTORE_INITIALIZED, RESTORE_STARTED, RESTORE_SUCCESSFUL, wEntryFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionJobExistingWorkspaceRestore(org.exoplatform.services.jcr.RepositoryService repositoryService, BackupManager backupManager, String repositoryName, File logFile, org.exoplatform.services.jcr.config.WorkspaceEntry wEntry) JobExistingWorkspaceRestore constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidremoveWorkspace(org.exoplatform.services.jcr.core.ManageableRepository mr, String workspaceName) Remove workspace.protected voidWill be restored the workspace.Methods inherited from class org.exoplatform.services.jcr.ext.backup.impl.JobWorkspaceRestore
getBackupChainLog, getEndTime, getRepositoryName, getRestoreException, getStartTime, getStateRestore, getWorkspaceEntry, getWorkspaceName, 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
-
JobExistingWorkspaceRestore
public JobExistingWorkspaceRestore(org.exoplatform.services.jcr.RepositoryService repositoryService, BackupManager backupManager, String repositoryName, File logFile, org.exoplatform.services.jcr.config.WorkspaceEntry wEntry) JobExistingWorkspaceRestore constructor.
-
-
Method Details
-
restoreWorkspace
Will be restored the workspace.- Overrides:
restoreWorkspacein classJobWorkspaceRestore- Throws:
WorkspaceRestoreException
-
removeWorkspace
protected void removeWorkspace(org.exoplatform.services.jcr.core.ManageableRepository mr, String workspaceName) throws javax.jcr.RepositoryException Remove workspace.- Overrides:
removeWorkspacein classJobWorkspaceRestore- Parameters:
mr- ManageableRepository, the manageable repositoryworkspaceName- String, the workspace name- Throws:
javax.jcr.RepositoryException- will be generated the RepositoryException
-