public class JobWorkspaceRestore extends Thread
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected File |
backupChainLogFile
The file with BackupChainLog for restore.
|
protected String |
repositoryName
The destination repository.
|
protected RepositoryService |
repositoryService
The repository service.
|
static int |
RESTORE_FAIL
RESTORE_FAIL.
|
static int |
RESTORE_INITIALIZED
RESTORE_STARTED.
|
static int |
RESTORE_STARTED
RESTORE_STARTED.
|
static int |
RESTORE_SUCCESSFUL
RESTORE_SUCCESSFUL.
|
protected WorkspaceEntry |
wEntry
The WorkspaceEntry to restored workspace.
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
JobWorkspaceRestore(RepositoryService repositoryService,
BackupManager backupManager,
String repositoryName,
File logFile,
WorkspaceEntry wEntry)
JobWorkspaceRestore constructor.
|
| Modifier and Type | Method and Description |
|---|---|
BackupChainLog |
getBackupChainLog()
getBackupChainLog.
|
Calendar |
getEndTime()
getEndTime.
|
String |
getRepositoryName()
getRepositoryName.
|
Throwable |
getRestoreException()
getRestoreException.
|
Calendar |
getStartTime()
getBeginTime.
|
int |
getStateRestore()
getStateRestore.
|
WorkspaceEntry |
getWorkspaceEntry()
getWorkspaceEntry
|
String |
getWorkspaceName()
getWorkspaceName.
|
protected void |
removeWorkspace(ManageableRepository mr,
String workspaceName)
Remove workspace.
|
protected void |
restore()
Will be restored the workspace.
|
protected void |
restoreWorkspace()
Will be restored the workspace.
|
void |
run() |
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, yieldpublic static final int RESTORE_STARTED
public static final int RESTORE_SUCCESSFUL
public static final int RESTORE_FAIL
public static final int RESTORE_INITIALIZED
protected final String repositoryName
protected final WorkspaceEntry wEntry
protected final RepositoryService repositoryService
protected final File backupChainLogFile
public JobWorkspaceRestore(RepositoryService repositoryService, BackupManager backupManager, String repositoryName, File logFile, WorkspaceEntry wEntry)
repositoryService - the RepositoryServicebackupManager - the BackupManagerrepositoryName - the destination repositorylogFile - the backup chain logwEntry - the workspace entryprotected final void restore()
throws Throwable
Throwable - will be generated the Throwableprotected void restoreWorkspace()
throws Throwable
Throwable - will be generated the Throwableprotected void removeWorkspace(ManageableRepository mr, String workspaceName) throws javax.jcr.RepositoryException
mr - ManageableRepository, the manageable repositoryworkspaceName - String, the workspace namejavax.jcr.RepositoryException - will be generated the RepositoryExceptionpublic Throwable getRestoreException()
public int getStateRestore()
public Calendar getStartTime()
public Calendar getEndTime()
public BackupChainLog getBackupChainLog() throws BackupOperationException
BackupOperationExceptionpublic String getRepositoryName()
public String getWorkspaceName()
public WorkspaceEntry getWorkspaceEntry()
Copyright © 2016 eXo Platform SAS. All Rights Reserved.