public class BackupConfig extends Configuration
构造器和说明 |
---|
BackupConfig() |
限定符和类型 | 方法和说明 |
---|---|
int |
getBackupMemory() |
int |
getBackupNumber() |
java.lang.String |
getBackupPath() |
int |
getCustomKeyLength() |
int |
getFrequency() |
static BackupConfig |
getInstance() |
ModuleBackupConfig |
getModuleBackupConfig(java.lang.String moduleName) |
java.lang.String |
getNameSpace()
配置类的自定义前缀(配置类的命名空间),需要自己实现
|
protected void |
initialize()
子类可以实现具体的initialize方法,比如注册一些非基本类型对象的读写方式等
这个方法会在调用 ConfigContext.getConfigInstance(XXX)的时候调用
|
void |
setBackupMemory(int backupMemory) |
void |
setBackupNumber(int backupNumber) |
void |
setBackupPath(java.lang.String backupPath) |
void |
setCustomKeyLength(int length) |
void |
setFrequency(int frequency) |
void |
setModuleBackupConfig(ModuleBackupConfig config) |
clone, mirror
public java.lang.String getNameSpace()
Configuration
getNameSpace
在类中 Configuration
public static BackupConfig getInstance()
protected void initialize()
Configuration
initialize
在类中 Configuration
public java.lang.String getBackupPath()
public void setBackupPath(java.lang.String backupPath)
public int getFrequency()
public void setFrequency(int frequency)
public int getBackupNumber()
public void setBackupNumber(int backupNumber)
public int getBackupMemory()
public void setBackupMemory(int backupMemory)
public ModuleBackupConfig getModuleBackupConfig(java.lang.String moduleName)
public void setModuleBackupConfig(ModuleBackupConfig config)
public void setCustomKeyLength(int length)
public int getCustomKeyLength()