|
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.Objectorg.exoplatform.services.jcr.ext.backup.impl.BackupManagerImpl
public class BackupManagerImpl
Created by The eXo Platform SAS .
| Field Summary | |
|---|---|
static String |
BACKUP_DIR
Name of backup dir parameter in configuration. |
static String |
BACKUP_PROPERTIES
Name of backup properties parameter in configuration. |
static String |
DEFAULT_INCREMENTAL_JOB_PERIOD
Name of default incremental job period parameter in configuration. |
static String |
DEFAULT_VALUE_FULL_BACKUP_TYPE
Default value of incremental backup type parameter in configuration. |
static String |
DEFAULT_VALUE_INCREMENTAL_BACKUP_TYPE
Default value of incremental backup type parameter in configuration. |
static String |
DEFAULT_VALUE_INCREMENTAL_JOB_PERIOD
Default value of incremental job period parameter in configuration. |
static String |
FULL_BACKUP_TYPE
Name of full backup type parameter in configuration. |
static String |
INCREMENTAL_BACKUP_TYPE
Name of incremental backup type parameter in configuration. |
protected static org.exoplatform.services.log.Log |
LOG
|
protected CopyOnWriteArrayList<JobRepositoryRestore> |
restoreRepositoryJobs
The list of repository restore job. |
| Fields inherited from interface org.exoplatform.services.jcr.ext.backup.BackupManager |
|---|
FULL_AND_INCREMENTAL, FULL_BACKUP_ONLY |
| Constructor Summary | |
|---|---|
BackupManagerImpl(org.exoplatform.container.ExoContainerContext ctx,
org.exoplatform.container.xml.InitParams initParams,
RepositoryService repoService)
BackupManagerImpl constructor. |
|
BackupManagerImpl(org.exoplatform.container.ExoContainerContext ctx,
org.exoplatform.container.xml.InitParams initParams,
RepositoryService repoService,
RegistryService registryService)
BackupManagerImpl constructor. |
|
BackupManagerImpl(org.exoplatform.container.xml.InitParams initParams,
RepositoryService repoService)
BackupManagerImpl constructor. |
|
BackupManagerImpl(org.exoplatform.container.xml.InitParams initParams,
RepositoryService repoService,
RegistryService registryService)
BackupManagerImpl constructor. |
|
| Method Summary | |
|---|---|
BackupChain |
findBackup(String backupId)
Finding current backup by identifier. |
BackupChain |
findBackup(String repository,
String workspace)
Finding current backup by repository and workspace. |
RepositoryBackupChain |
findRepositoryBackup(String repository)
Finding current backup by repository. |
RepositoryBackupChain |
findRepositoryBackupId(String backupId)
Finding current backup by id. |
File |
getBackupDirectory()
Getting backup directory. |
BackupChainLog[] |
getBackupsLogs()
Getting all backup logs . |
Set<BackupChain> |
getCurrentBackups()
Getting current backups. |
Set<RepositoryBackupChain> |
getCurrentRepositoryBackups()
Getting current repository backups. |
long |
getDefaultIncrementalJobPeriod()
Getting default incremental job period. |
String |
getFullBackupType()
Getting full backup type. |
String |
getIncrementalBackupType()
Getting incremental backup type. |
JobRepositoryRestore |
getLastRepositoryRestore(String repositoryName)
Getting last repository restore by repository name. |
JobWorkspaceRestore |
getLastRestore(String repositoryName,
String workspaceName)
Getting last restore by repository and workspace name. |
BackupMessage[] |
getMessages()
Getting the backup messages. |
RepositoryBackupChainLog[] |
getRepositoryBackupsLogs()
Getting all repository backup logs. |
List<JobRepositoryRestore> |
getRepositoryRestores()
Getting list of repository restores. |
List<JobWorkspaceRestore> |
getRestores()
Getting list of restores. |
void |
restore(BackupChainLog log,
String repositoryName,
WorkspaceEntry workspaceEntry,
boolean asynchronous)
Restore from backup. |
void |
restore(RepositoryBackupChainLog log,
RepositoryEntry repositoryEntry,
boolean asynchronous)
Repository restore from backup. |
void |
restore(RepositoryBackupChainLog log,
RepositoryEntry repositoryEntry,
boolean asynchronous,
boolean removeJobOnceOver)
Repository restore from backup. |
void |
restore(RepositoryBackupChainLog rblog,
RepositoryEntry repositoryEntry,
Map<String,String> workspaceNamesCorrespondMap,
boolean asynchronous)
Repository restore from backup. |
void |
restoreExistingRepository(File repositoryBackupSetDir,
boolean asynchronous)
Restore existing repository. |
void |
restoreExistingRepository(RepositoryBackupChainLog rblog,
RepositoryEntry repositoryEntry,
boolean asynchronous)
Restore existing repository. |
void |
restoreExistingRepository(String repositoryBackupIdentifier,
boolean asynchronous)
Restore existing repository. |
void |
restoreExistingRepository(String repositoryBackupIdentifier,
RepositoryEntry repositoryEntry,
boolean asynchronous)
Restore existing repository. |
void |
restoreExistingWorkspace(BackupChainLog log,
String repositoryName,
WorkspaceEntry workspaceEntry,
boolean asynchronous)
Restore existing workspace. |
void |
restoreExistingWorkspace(File workspaceBackupSetDir,
boolean asynchronous)
Restore existing workspace. |
void |
restoreExistingWorkspace(String workspaceBackupIdentifier,
boolean asynchronous)
Restore existing workspace. |
void |
restoreExistingWorkspace(String workspaceBackupIdentifier,
String repositoryName,
WorkspaceEntry workspaceEntry,
boolean asynchronous)
Restore existing workspace. |
protected void |
restoreOverInitializer(BackupChainLog log,
String repositoryName,
WorkspaceEntry workspaceEntry)
|
void |
restoreRepository(File repositoryBackupSetDir,
boolean asynchronous)
ReprositoryEntry for restore should be contains in BackupChainLog. |
void |
restoreRepository(String repositoryBackupIdentifier,
boolean asynchronous)
ReprositoryEntry for restore should be contains in BackupChainLog. |
void |
restoreWorkspace(File workspaceBackupSetDir,
boolean asynchronous)
WorkspaceEntry for restore should be contains in BackupChainLog. |
void |
restoreWorkspace(String workspaceBackupIdentifier,
boolean asynchronous)
WorkspaceEntry for restore should be contains in BackupChainLog. |
void |
start()
|
BackupChain |
startBackup(BackupConfig config)
Starting backup. |
RepositoryBackupChain |
startBackup(RepositoryBackupConfig config)
Starting repository backup. |
void |
stop()
|
void |
stopBackup(BackupChain backup)
Stop backup. |
void |
stopBackup(RepositoryBackupChain backup)
Stop backup. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.exoplatform.services.log.Log LOG
public static final String DEFAULT_INCREMENTAL_JOB_PERIOD
public static final String BACKUP_PROPERTIES
public static final String FULL_BACKUP_TYPE
public static final String INCREMENTAL_BACKUP_TYPE
public static final String DEFAULT_VALUE_INCREMENTAL_JOB_PERIOD
public static final String DEFAULT_VALUE_INCREMENTAL_BACKUP_TYPE
public static final String DEFAULT_VALUE_FULL_BACKUP_TYPE
public static final String BACKUP_DIR
protected CopyOnWriteArrayList<JobRepositoryRestore> restoreRepositoryJobs
| Constructor Detail |
|---|
public BackupManagerImpl(org.exoplatform.container.xml.InitParams initParams,
RepositoryService repoService)
initParams - InitParams, the init parametersrepoService - RepositoryService, the repository service
public BackupManagerImpl(org.exoplatform.container.ExoContainerContext ctx,
org.exoplatform.container.xml.InitParams initParams,
RepositoryService repoService)
initParams - InitParams, the init parametersrepoService - RepositoryService, the repository service
public BackupManagerImpl(org.exoplatform.container.xml.InitParams initParams,
RepositoryService repoService,
RegistryService registryService)
repoService - RepositoryService, the repository serviceregistryService - RegistryService, the registry service
public BackupManagerImpl(org.exoplatform.container.ExoContainerContext ctx,
org.exoplatform.container.xml.InitParams initParams,
RepositoryService repoService,
RegistryService registryService)
repoService - RepositoryService, the repository serviceregistryService - RegistryService, the registry service| Method Detail |
|---|
public Set<BackupChain> getCurrentBackups()
getCurrentBackups in interface BackupManagerpublic BackupMessage[] getMessages()
getMessages in interface BackupManagerpublic BackupChainLog[] getBackupsLogs()
getBackupsLogs in interface BackupManagerpublic RepositoryBackupChainLog[] getRepositoryBackupsLogs()
getRepositoryBackupsLogs in interface BackupManager
protected void restoreOverInitializer(BackupChainLog log,
String repositoryName,
WorkspaceEntry workspaceEntry)
throws BackupOperationException,
javax.jcr.RepositoryException,
RepositoryConfigurationException,
BackupConfigurationException
BackupOperationException
javax.jcr.RepositoryException
RepositoryConfigurationException
BackupConfigurationException
public BackupChain startBackup(BackupConfig config)
throws BackupOperationException,
BackupConfigurationException,
javax.jcr.RepositoryException,
RepositoryConfigurationException
startBackup in interface BackupManagerconfig - BackupConfig, the backup configuration
BackupOperationException - BackupOperationException
will be generate the exception BackupOperationException
BackupConfigurationException - will be generate the exception BackupConfigurationException
javax.jcr.RepositoryException - will be generate the exception RepositoryException
RepositoryConfigurationException - will be generate the exception RepositoryConfigurationExceptionpublic void stopBackup(BackupChain backup)
stopBackup in interface BackupManagerbackup - BackupChain, the backup chainpublic void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startable
public BackupChain findBackup(String repository,
String workspace)
findBackup in interface BackupManagerrepository - String, the repository nameworkspace - String, the workspace name
public BackupChain findBackup(String backupId)
findBackup in interface BackupManagerbackupId - String the backup identifier
public File getBackupDirectory()
getBackupDirectory in interface BackupManagerpublic String getFullBackupType()
getFullBackupType in interface BackupManagerpublic String getIncrementalBackupType()
getIncrementalBackupType in interface BackupManagerpublic long getDefaultIncrementalJobPeriod()
getDefaultIncrementalJobPeriod in interface BackupManagerpublic List<JobWorkspaceRestore> getRestores()
getRestores in interface BackupManager
public JobWorkspaceRestore getLastRestore(String repositoryName,
String workspaceName)
getLastRestore in interface BackupManagerrepositoryName - String, the repository nameworkspaceName - String, the workspace name
public JobRepositoryRestore getLastRepositoryRestore(String repositoryName)
getLastRepositoryRestore in interface BackupManagerrepositoryName - String, the repository name
public List<JobRepositoryRestore> getRepositoryRestores()
BackupManager
getRepositoryRestores in interface BackupManager
public void restore(BackupChainLog log,
String repositoryName,
WorkspaceEntry workspaceEntry,
boolean asynchronous)
throws BackupOperationException,
BackupConfigurationException,
javax.jcr.RepositoryException,
RepositoryConfigurationException
restore in interface BackupManagerlog - BackupChainLog, the backup logrepositoryName - String, repository nameworkspaceEntry - WorkspaceEntry, the workspace entryasynchronous - boolean, in 'true' then asynchronous restore.
BackupOperationException - will be generate the exception BackupOperationException
BackupConfigurationException - will be generate the exception BackupConfigurationException
javax.jcr.RepositoryException - will be generate the exception RepositoryException
RepositoryConfigurationException - will be generate the exception RepositoryConfigurationException
public void restore(RepositoryBackupChainLog log,
RepositoryEntry repositoryEntry,
boolean asynchronous)
throws BackupOperationException,
BackupConfigurationException,
javax.jcr.RepositoryException,
RepositoryConfigurationException
restore in interface BackupManagerlog - RepositoryBackupChainLog, the repository backup logrepositoryEntry - RepositoryEntry, the repository entryasynchronous - boolean, in 'true' then asynchronous restore.
BackupOperationException - will be generate the exception BackupOperationException
BackupConfigurationException - will be generate the exception BackupConfigurationException
javax.jcr.RepositoryException - will be generate the exception RepositoryException
RepositoryConfigurationException - will be generate the exception RepositoryConfigurationException
public void restore(RepositoryBackupChainLog log,
RepositoryEntry repositoryEntry,
boolean asynchronous,
boolean removeJobOnceOver)
throws BackupOperationException,
BackupConfigurationException,
javax.jcr.RepositoryException,
RepositoryConfigurationException
restore in interface BackupManagerlog - RepositoryBackupChainLog, the repository backup logrepositoryEntry - RepositoryEntry, the repository entryasynchronous - boolean, in 'true' then asynchronous restore.removeJobOnceOver - boolean, in 'true' then restore job well remove after restore.
BackupOperationException - will be generate the exception BackupOperationException
BackupConfigurationException - will be generate the exception BackupConfigurationException
javax.jcr.RepositoryException - will be generate the exception RepositoryException
RepositoryConfigurationException - will be generate the exception RepositoryConfigurationException
public void restore(RepositoryBackupChainLog rblog,
RepositoryEntry repositoryEntry,
Map<String,String> workspaceNamesCorrespondMap,
boolean asynchronous)
throws BackupOperationException,
BackupConfigurationException,
javax.jcr.RepositoryException,
RepositoryConfigurationException
restore in interface BackupManagerrblog - RepositoryBackupChainLog, the repository backup logrepositoryEntry - RepositoryEntry, the repository entryworkspaceNamesCorrespondMap - Mapasynchronous - boolean, in 'true' then asynchronous restore.
BackupOperationException - will be generate the exception BackupOperationException
BackupConfigurationException - will be generate the exception BackupConfigurationException
javax.jcr.RepositoryException - will be generate the exception RepositoryException
RepositoryConfigurationException - will be generate the exception RepositoryConfigurationException
public RepositoryBackupChain startBackup(RepositoryBackupConfig config)
throws BackupOperationException,
BackupConfigurationException,
javax.jcr.RepositoryException,
RepositoryConfigurationException
startBackup in interface BackupManagerconfig - RepositoryBackupConfig, the backup configuration to repository
BackupOperationException - BackupOperationException
will be generate the exception BackupOperationException
BackupConfigurationException - will be generate the exception BackupConfigurationException
javax.jcr.RepositoryException - will be generate the exception RepositoryException
RepositoryConfigurationException - will be generate the exception RepositoryConfigurationExceptionpublic void stopBackup(RepositoryBackupChain backup)
stopBackup in interface BackupManagerbackup - RepositoryBackupChain, the repositroy backup chainpublic RepositoryBackupChain findRepositoryBackup(String repository)
findRepositoryBackup in interface BackupManagerpublic Set<RepositoryBackupChain> getCurrentRepositoryBackups()
getCurrentRepositoryBackups in interface BackupManagerpublic RepositoryBackupChain findRepositoryBackupId(String backupId)
findRepositoryBackupId in interface BackupManager
public void restoreExistingRepository(RepositoryBackupChainLog rblog,
RepositoryEntry repositoryEntry,
boolean asynchronous)
throws BackupOperationException,
BackupConfigurationException
restoreExistingRepository in interface ExtendedBackupManagerrblog - repository backup logrepositoryEntry - new repository configurationasynchronous - if 'true' restore will be in asynchronous mode (i.e. in separated thread)
BackupOperationException - if backup operation exception occurred
BackupConfigurationException - if configuration exception occurred
public void restoreExistingRepository(String repositoryBackupIdentifier,
RepositoryEntry repositoryEntry,
boolean asynchronous)
throws BackupOperationException,
BackupConfigurationException
restoreExistingRepository in interface ExtendedBackupManagerrepositoryBackupIdentifier - backup identifierrepositoryEntry - new repository configurationasynchronous - if 'true' restore will be in asynchronous mode (i.e. in separated thread)
BackupOperationException - if backup operation exception occurred
BackupConfigurationException - if configuration exception occurred
public void restoreExistingWorkspace(BackupChainLog log,
String repositoryName,
WorkspaceEntry workspaceEntry,
boolean asynchronous)
throws BackupOperationException,
BackupConfigurationException
restoreExistingWorkspace in interface ExtendedBackupManagerlog - workspace backup logworkspaceEntry - new workspace configurationasynchronous - if 'true' restore will be in asynchronous mode (i.e. in separated thread)
BackupOperationException - if backup operation exception occurred
BackupConfigurationException - if configuration exception occurred
public void restoreExistingWorkspace(String workspaceBackupIdentifier,
String repositoryName,
WorkspaceEntry workspaceEntry,
boolean asynchronous)
throws BackupOperationException,
BackupConfigurationException
restoreExistingWorkspace in interface ExtendedBackupManagerworkspaceBackupIdentifier - backup identifierworkspaceEntry - new workspace configurationasynchronous - if 'true' restore will be in asynchronous mode (i.e. in separated thread)
BackupOperationException - if backup operation exception occurred
BackupConfigurationException - if configuration exception occurred
public void restoreExistingRepository(String repositoryBackupIdentifier,
boolean asynchronous)
throws BackupOperationException,
BackupConfigurationException
restoreExistingRepository in interface ExtendedBackupManagerrepositoryBackupIdentifier - identifier to repository backup.asynchronous - if 'true' restore will be in asynchronous mode (i.e. in separated thread)
BackupOperationException - if backup operation exception occurred
BackupConfigurationException - if configuration exception occurred
public void restoreExistingWorkspace(String workspaceBackupIdentifier,
boolean asynchronous)
throws BackupOperationException,
BackupConfigurationException
restoreExistingWorkspace in interface ExtendedBackupManagerworkspaceBackupIdentifier - identifier to workspace backup.asynchronous - if 'true' restore will be in asynchronous mode (i.e. in separated thread)
BackupOperationException - if backup operation exception occurred
BackupConfigurationException - if configuration exception occurred
public void restoreRepository(String repositoryBackupIdentifier,
boolean asynchronous)
throws BackupOperationException,
BackupConfigurationException
restoreRepository in interface ExtendedBackupManagerrepositoryBackupIdentifier - identifier to repository backup.asynchronous - if 'true' restore will be in asynchronous mode (i.e. in separated thread)
BackupOperationException - if backup operation exception occurred
BackupConfigurationException - if configuration exception occurred
public void restoreWorkspace(String workspaceBackupIdentifier,
boolean asynchronous)
throws BackupOperationException,
BackupConfigurationException
restoreWorkspace in interface ExtendedBackupManagerworkspaceBackupIdentifier - identifier to workspace backup.asynchronous - if 'true' restore will be in asynchronous mode (i.e. in separated thread)
BackupOperationException - if backup operation exception occurred
BackupConfigurationException - if configuration exception occurred
public void restoreExistingRepository(File repositoryBackupSetDir,
boolean asynchronous)
throws BackupOperationException,
BackupConfigurationException
restoreExistingRepository in interface ExtendedBackupManagerrepositoryBackupSetDir - the directory with backup setasynchronous - if 'true' restore will be in asynchronous mode (i.e. in separated thread)
BackupOperationException - if backup operation exception occurred
BackupConfigurationException - if configuration exception occurred
public void restoreExistingWorkspace(File workspaceBackupSetDir,
boolean asynchronous)
throws BackupOperationException,
BackupConfigurationException
restoreExistingWorkspace in interface ExtendedBackupManagerworkspaceBackupSetDir - the directory with backup setasynchronous - if 'true' restore will be in asynchronous mode (i.e. in separated thread)
BackupOperationException - if backup operation exception occurred
BackupConfigurationException - if configuration exception occurred
public void restoreRepository(File repositoryBackupSetDir,
boolean asynchronous)
throws BackupOperationException,
BackupConfigurationException
restoreRepository in interface ExtendedBackupManagerrepositoryBackupSetDir - the directory with backup setasynchronous - if 'true' restore will be in asynchronous mode (i.e. in separated thread)
BackupOperationException - if backup operation exception occurred
BackupConfigurationException - if configuration exception occurred
public void restoreWorkspace(File workspaceBackupSetDir,
boolean asynchronous)
throws BackupOperationException,
BackupConfigurationException
restoreWorkspace in interface ExtendedBackupManagerworkspaceBackupSetDir - the directory with backup setasynchronous - if 'true' restore will be in asynchronous mode (i.e. in separated thread)
BackupOperationException - if backup operation exception occurred
BackupConfigurationException - if configuration exception occurred
|
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 | |||||||||