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 org.exoplatform.services.jcr.config.RepositoryEntry |
repositoryEntry |
protected org.exoplatform.services.jcr.RepositoryService |
repositoryService |
protected Map<String,File> |
workspacesMapping |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
JobRepositoryRestore(org.exoplatform.services.jcr.RepositoryService repoService,
BackupManagerImpl backupManagerImpl,
org.exoplatform.services.jcr.config.RepositoryEntry repositoryEntry,
Map<String,File> workspacesMapping,
File backupChainLog,
boolean removeJobOnceOver) |
| Modifier and Type | Method and Description |
|---|---|
Calendar |
getEndTime()
getEndTime.
|
RepositoryBackupChainLog |
getRepositoryBackupChainLog()
GetRepositoryBackupChainLog.
|
org.exoplatform.services.jcr.config.RepositoryEntry |
getRepositoryEntry()
getRepositoryEntry.
|
String |
getRepositoryName()
getRepositoryName.
|
Throwable |
getRestoreException()
getRestoreException.
|
Calendar |
getStartTime()
getBeginTime.
|
int |
getStateRestore()
getStateRestore.
|
protected void |
removeRepository(org.exoplatform.services.jcr.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 org.exoplatform.services.jcr.RepositoryService repositoryService
protected org.exoplatform.services.jcr.config.RepositoryEntry repositoryEntry
public JobRepositoryRestore(org.exoplatform.services.jcr.RepositoryService repoService,
BackupManagerImpl backupManagerImpl,
org.exoplatform.services.jcr.config.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(org.exoplatform.services.jcr.RepositoryService repositoryService,
String repositoryName)
throws javax.jcr.RepositoryException,
org.exoplatform.services.jcr.config.RepositoryConfigurationException
repositoryService - RepositoryService, the repository servicerepositoryName - String, the repository namejavax.jcr.RepositoryException - will be generated the RepositoryExceptionorg.exoplatform.services.jcr.config.RepositoryConfigurationExceptionpublic Throwable getRestoreException()
public int getStateRestore()
public Calendar getStartTime()
public Calendar getEndTime()
public String getRepositoryName()
public RepositoryBackupChainLog getRepositoryBackupChainLog() throws BackupOperationException
BackupOperationExceptionpublic org.exoplatform.services.jcr.config.RepositoryEntry getRepositoryEntry()
Copyright © 2003–2021 eXo Platform SAS. All rights reserved.