|
Berkeley DB Java Edition version 5.0.58 |
|||||||||
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. |
int |
getReceiveBufferSize()
Returns the size of the receive buffer associated with the socket used to transfer files during the NetworkRestore operation. |
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 |
setReceiveBufferSize(int receiveBufferSize)
Sets the size of the receive buffer associated with the socket used to transfer files during 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 int getReceiveBufferSize()
public NetworkRestoreConfig setReceiveBufferSize(int receiveBufferSize)
Note that if the size specified is larger than the operating system constrained maximum, it will be limited to this maximum value. For example, on Linux you may need to set the kernel parameter: net.core.rmem_max property using the command: sysctl -w net.core.rmem_max=1048576 to increase the operating system imposed limit.
receiveBufferSize
- the size of the receive buffer. If it's zero,
the operating system default value is used..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.58 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |