public class BackupService
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
void |
deleteBackupNodes(java.lang.String moduleName,
java.lang.String[] ids)
删除备份
|
BackupConfigBean |
getBackupConfig()
获取全局备份设置
|
static BackupService |
getInstance() |
java.util.Map<java.lang.String,java.lang.Object> |
getModuleBackup(java.lang.String moduleName)
获取模块的备份信息
|
java.util.Map<java.lang.String,java.lang.Object> |
getUpdateProcess()
获取升级进度
|
void |
manualBackup(java.lang.String moduleName,
java.lang.String backupName)
开始一次手动备份
|
void |
renameBackupNode(java.lang.String moduleName,
java.lang.String id,
java.lang.String name)
重命名备份节点
|
void |
rollback(java.lang.String moduleName,
java.lang.String id)
回滚到某个备份节点
|
void |
setAutoBackup(java.lang.String moduleName,
boolean open) |
void |
setBackupConfig(BackupConfigBean bean)
设置全局备份
|
void |
updateJar()
更新jar包
|
public static BackupService getInstance()
public BackupConfigBean getBackupConfig() throws java.lang.Exception
java.lang.Exception
- 异常public void setBackupConfig(BackupConfigBean bean) throws java.lang.Exception
bean
- 备份设置项java.lang.Exception
- 异常public java.util.Map<java.lang.String,java.lang.Object> getModuleBackup(java.lang.String moduleName) throws java.lang.Exception
moduleName
- 备份模块名java.lang.Exception
- 异常public void setAutoBackup(java.lang.String moduleName, boolean open) throws java.lang.Exception
java.lang.Exception
public void deleteBackupNodes(java.lang.String moduleName, java.lang.String[] ids) throws java.lang.Exception
moduleName
- 模块名ids
- 备份ID数组java.lang.Exception
- 异常public void renameBackupNode(java.lang.String moduleName, java.lang.String id, java.lang.String name) throws java.lang.Exception
moduleName
- 模块名id
- 备份IDname
- 新备份名java.lang.Exception
- 异常public void manualBackup(java.lang.String moduleName, java.lang.String backupName) throws java.lang.Exception
moduleName
- 模块名backupName
- 备份名java.lang.Exception
- 异常public void rollback(java.lang.String moduleName, java.lang.String id) throws java.lang.Exception
moduleName
- 模块名id
- 备份IDjava.lang.Exception
- 异常public void updateJar() throws java.lang.Exception
java.lang.Exception
- 异常public java.util.Map<java.lang.String,java.lang.Object> getUpdateProcess() throws java.lang.Exception
java.lang.Exception
- 异常