summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2011-04-02 16:41:50 +0000
committerBrian S. O'Neill <bronee@gmail.com>2011-04-02 16:41:50 +0000
commite4e0840f17b1961ad1826699a8993d06ccfbc75a (patch)
tree6469368c7d65f364d1a26c1703dee1998ca0f7ce /src
parent84fcfe9ab82e3399380dae70eee7c0d7649e98db (diff)
Add support to specify log region size. Patch provided by Michael Roberts.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepositoryBuilder.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepositoryBuilder.java b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepositoryBuilder.java
index 4df17f5..6def603 100644
--- a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepositoryBuilder.java
+++ b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepositoryBuilder.java
@@ -94,6 +94,7 @@ public final class BDBRepositoryBuilder extends AbstractRepositoryBuilder {
private boolean mReadOnly;
private Long mCacheSize;
private Integer mCachePercent;
+ private Integer mLogRegionSize;
private double mLockTimeout = 0.5;
private Integer mMaxLocks;
private double mTxnTimeout = 300.0;
@@ -522,6 +523,28 @@ public final class BDBRepositoryBuilder extends AbstractRepositoryBuilder {
}
/**
+ * Set the repository log region size, in bytes.
+ */
+ public void setLogRegionSize(int logRegionSize) {
+ mLogRegionSize = logRegionSize;
+ }
+
+ /**
+ * Set the repository log region size, in bytes.
+ */
+ public void setLogRegionSize(Integer logRegionSize) {
+ mLogRegionSize = logRegionSize;
+ }
+
+ /**
+ * Returns the repository log region size, or null if the default
+ * should be selected.
+ */
+ public Integer getLogRegionSize() {
+ return mLogRegionSize;
+ }
+
+ /**
* Set the percent of JVM heap used by the repository cache. Actual
* BDB implementation will select a suitable default if this is not
* set. This is overridden by setting an explicit cacheSize.