eXo JCR :: Component :: Extension Service 1.16.0-CR2

org.exoplatform.services.jcr.ext.backup.impl
Class JobExistingWorkspaceRestore

java.lang.Object
  extended by java.lang.Thread
      extended by org.exoplatform.services.jcr.ext.backup.impl.JobWorkspaceRestore
          extended by org.exoplatform.services.jcr.ext.backup.impl.JobExistingWorkspaceRestore
All Implemented Interfaces:
Runnable

public class JobExistingWorkspaceRestore
extends JobWorkspaceRestore

Created by The eXo Platform SAS.
Date: 2010

Version:
$Id$
Author:
Alex Reshetnyak

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class org.exoplatform.services.jcr.ext.backup.impl.JobWorkspaceRestore
backupChainLogFile, repositoryName, repositoryService, RESTORE_FAIL, RESTORE_INITIALIZED, RESTORE_STARTED, RESTORE_SUCCESSFUL, wEntry
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
JobExistingWorkspaceRestore(RepositoryService repositoryService, BackupManager backupManager, String repositoryName, File logFile, WorkspaceEntry wEntry)
          JobExistingWorkspaceRestore constructor.
 
Method Summary
protected  void removeWorkspace(ManageableRepository mr, String workspaceName)
          Remove workspace.
protected  void restoreWorkspace()
          Will be restored the workspace.
 
Methods inherited from class org.exoplatform.services.jcr.ext.backup.impl.JobWorkspaceRestore
getBackupChainLog, getEndTime, getRepositoryName, getRestoreException, getStartTime, getStateRestore, getWorkspaceEntry, getWorkspaceName, restore, 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
 

Constructor Detail

JobExistingWorkspaceRestore

public JobExistingWorkspaceRestore(RepositoryService repositoryService,
                                   BackupManager backupManager,
                                   String repositoryName,
                                   File logFile,
                                   WorkspaceEntry wEntry)
JobExistingWorkspaceRestore constructor.

Method Detail

restoreWorkspace

protected void restoreWorkspace()
                         throws WorkspaceRestoreException
Will be restored the workspace.

Overrides:
restoreWorkspace in class JobWorkspaceRestore
Throws:
WorkspaceRestoreException

removeWorkspace

protected void removeWorkspace(ManageableRepository mr,
                               String workspaceName)
                        throws javax.jcr.RepositoryException
Remove workspace.

Overrides:
removeWorkspace in class JobWorkspaceRestore
Parameters:
mr - ManageableRepository, the manageable repository
workspaceName - String, the workspace name
Throws:
javax.jcr.RepositoryException - will be generated the RepositoryException

eXo JCR :: Component :: Extension Service 1.16.0-CR2

Copyright © 2014 eXo Platform SAS. All Rights Reserved.