|
eXo JCR :: Component :: Extension Service 1.15.1-CP01 | |||||||||
| 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.JobWorkspaceRestore
public class JobWorkspaceRestore
Created by The eXo Platform SAS.
Date: 24.02.2009
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
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. |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
JobWorkspaceRestore(RepositoryService repositoryService,
BackupManager backupManager,
String repositoryName,
File logFile,
WorkspaceEntry wEntry)
JobWorkspaceRestore constructor. |
|
| Method Summary | |
|---|---|
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()
|
| 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 |
|---|
public 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
| Constructor Detail |
|---|
public JobWorkspaceRestore(RepositoryService repositoryService,
BackupManager backupManager,
String repositoryName,
File logFile,
WorkspaceEntry wEntry)
repositoryService - the RepositoryServicebackupManager - the BackupManagerrepositoryName - the destination repositorylog - the backup chain logwEntry - the workspace entry| Method Detail |
|---|
public void run()
run in interface Runnablerun in class Thread
protected final void restore()
throws Throwable
Throwable - will be generated the Throwable
protected void restoreWorkspace()
throws Throwable
Throwable - will be generated the Throwable
protected void removeWorkspace(ManageableRepository mr,
String workspaceName)
throws javax.jcr.RepositoryException
mr - ManageableRepository, the manageable repositoryworkspaceName - String, the workspace name
javax.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()
|
eXo JCR :: Component :: Extension Service 1.15.1-CP01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||