public class JobRepositoryRestore extends Thread
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected static org.exoplatform.services.log.Log |
LOG
The apache logger.
|
static int |
REPOSITORY_RESTORE_FAIL
REPOSITORY_RESTORE_FAIL.
|
static int |
REPOSITORY_RESTORE_INITIALIZED
REPOSITORY_RESTORE_STARTED.
|
static int |
REPOSITORY_RESTORE_STARTED
REPOSITORY_RESTORE_STARTED.
|
static int |
REPOSITORY_RESTORE_SUCCESSFUL
REPOSITORY_RESTORE_SUCCESSFUL.
|
protected RepositoryEntry |
repositoryEntry |
protected RepositoryService |
repositoryService |
protected Map<String,File> |
workspacesMapping |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
JobRepositoryRestore(RepositoryService repoService,
BackupManagerImpl backupManagerImpl,
RepositoryEntry repositoryEntry,
Map<String,File> workspacesMapping,
File backupChainLog,
boolean removeJobOnceOver) |
| Modifier and Type | Method and Description |
|---|---|
Calendar |
getEndTime()
getEndTime.
|
RepositoryBackupChainLog |
getRepositoryBackupChainLog()
GetRepositoryBackupChainLog.
|
RepositoryEntry |
getRepositoryEntry()
getRepositoryEntry.
|
String |
getRepositoryName()
getRepositoryName.
|
Throwable |
getRestoreException()
getRestoreException.
|
Calendar |
getStartTime()
getBeginTime.
|
int |
getStateRestore()
getStateRestore.
|
protected void |
removeRepository(RepositoryService repositoryService,
String repositoryName)
Remove repository.
|
protected void |
restore()
Restore repository.
|
protected void |
restoreRepository()
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, yieldprotected static final org.exoplatform.services.log.Log LOG
public static final int REPOSITORY_RESTORE_STARTED
public static final int REPOSITORY_RESTORE_SUCCESSFUL
public static final int REPOSITORY_RESTORE_FAIL
public static final int REPOSITORY_RESTORE_INITIALIZED
protected RepositoryService repositoryService
protected RepositoryEntry repositoryEntry
public JobRepositoryRestore(RepositoryService repoService, BackupManagerImpl backupManagerImpl, RepositoryEntry repositoryEntry, Map<String,File> workspacesMapping, File backupChainLog, boolean removeJobOnceOver)
protected final void restore()
throws RepositoryRestoreExeption
RepositoryRestoreExeption - if exception occurred during restoreprotected void restoreRepository()
throws RepositoryRestoreExeption,
BackupOperationException,
ClassNotFoundException
protected void removeRepository(RepositoryService repositoryService, String repositoryName) throws javax.jcr.RepositoryException, RepositoryConfigurationException
repositoryService - RepositoryService, the repository servicerepositoryName - String, the repository namejavax.jcr.RepositoryException - will be generated the RepositoryExceptionRepositoryConfigurationExceptionpublic Throwable getRestoreException()
public int getStateRestore()
public Calendar getStartTime()
public Calendar getEndTime()
public String getRepositoryName()
public RepositoryBackupChainLog getRepositoryBackupChainLog() throws BackupOperationException
BackupOperationExceptionpublic RepositoryEntry getRepositoryEntry()
Copyright © 2020 eXo Platform SAS. All Rights Reserved.