|
Berkeley DB Java Edition version 5.0.34 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.rep.NetworkRestoreConfig
public class NetworkRestoreConfig
NetworkRestoreConfig defines the configuration parameters used to configure a NetworkRestore operation.
NetworkRestore
Constructor Summary | |
---|---|
NetworkRestoreConfig()
|
Method Summary | |
---|---|
List<ReplicationNode> |
getLogProviders()
Returns the candidate list of members that may be used to obtain log files. |
boolean |
getRetainLogFiles()
Returns a boolean indicating whether existing log files should be retained or deleted. |
NetworkRestoreConfig |
setLogProviders(List<ReplicationNode> providers)
Sets the prioritized list of members used to select a node from which to obtain log files for the NetworkRestore operation. |
NetworkRestoreConfig |
setRetainLogFiles(boolean retainLogFiles)
If true retains obsolete log files, by renaming them instead of deleting them. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NetworkRestoreConfig()
Method Detail |
---|
public boolean getRetainLogFiles()
public NetworkRestoreConfig setRetainLogFiles(boolean retainLogFiles)
A renamed file has its .jdb
suffix replaced by
.bup
and an additional numeric monotonically increasing
numeric suffix. All files that were renamed as part of the same
NetworkRestore attempt will have the same numeric suffix.
For example, if files 00000001.jdb and files 00000002.jdb were rendered obsolete, and 4 was the highest suffix in use for this environment when the operation was initiated, then the files would be renamed as 00000001.bup.5 and 00000002.bup.5.
retainLogFiles
- if true retains obsolete log files
public List<ReplicationNode> getLogProviders()
public NetworkRestoreConfig setLogProviders(List<ReplicationNode> providers)
The default value is null. If a null value is configured for NetworkRestore, it will choose the least busy member with a current set of logs, as the provider of log files.
providers
- the list of members in priority order, or null
|
Berkeley DB Java Edition version 5.0.34 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |