|
eXo JCR :: Component :: Extension Service 1.16.0-CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.exoplatform.services.jcr.ext.backup.impl.JobRepositoryRestore
public class JobRepositoryRestore
Created by The eXo Platform SAS.
Date: 2010
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
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
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
JobRepositoryRestore(RepositoryService repoService,
BackupManagerImpl backupManagerImpl,
RepositoryEntry repositoryEntry,
Map<String,File> workspacesMapping,
File backupChainLog,
boolean removeJobOnceOver)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Thread |
|---|
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, yield |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected 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
protected Map<String,File> workspacesMapping
| Constructor Detail |
|---|
public JobRepositoryRestore(RepositoryService repoService,
BackupManagerImpl backupManagerImpl,
RepositoryEntry repositoryEntry,
Map<String,File> workspacesMapping,
File backupChainLog,
boolean removeJobOnceOver)
| Method Detail |
|---|
protected final void restore()
throws RepositoryRestoreExeption
RepositoryRestoreExeption - if exception occurred during restore
protected void restoreRepository()
throws RepositoryRestoreExeption,
BackupOperationException,
ClassNotFoundException
RepositoryRestoreExeption
ClassNotFoundException
BackupOperationException
Throwable - will be generated the Throwable
protected void removeRepository(RepositoryService repositoryService,
String repositoryName)
throws javax.jcr.RepositoryException,
RepositoryConfigurationException
repositoryService - RepositoryService, the repository servicerepositoryName - String, the repository name
javax.jcr.RepositoryException - will be generated the RepositoryException
RepositoryConfigurationExceptionpublic void run()
run in interface Runnablerun in class Threadpublic Throwable getRestoreException()
public int getStateRestore()
public Calendar getStartTime()
public Calendar getEndTime()
public String getRepositoryName()
public RepositoryBackupChainLog getRepositoryBackupChainLog()
throws BackupOperationException
BackupOperationExceptionpublic RepositoryEntry getRepositoryEntry()
|
eXo JCR :: Component :: Extension Service 1.16.0-CR2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||