summaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/amazon/carbonado/capability/ResyncCapability.java7
-rw-r--r--src/main/java/com/amazon/carbonado/repo/replicated/ReplicatedRepository.java6
2 files changed, 8 insertions, 5 deletions
diff --git a/src/main/java/com/amazon/carbonado/capability/ResyncCapability.java b/src/main/java/com/amazon/carbonado/capability/ResyncCapability.java
index d3e7c82..502fc5c 100644
--- a/src/main/java/com/amazon/carbonado/capability/ResyncCapability.java
+++ b/src/main/java/com/amazon/carbonado/capability/ResyncCapability.java
@@ -18,6 +18,7 @@
package com.amazon.carbonado.capability;
+import com.amazon.carbonado.Repository;
import com.amazon.carbonado.RepositoryException;
import com.amazon.carbonado.Storable;
@@ -43,4 +44,10 @@ public interface ResyncCapability extends Capability {
String filter,
Object... filterValues)
throws RepositoryException;
+
+ /**
+ * Returns the immediate master Repository, for manual comparison. Direct
+ * updates to the master will likely create inconsistencies.
+ */
+ Repository getMasterRepository();
}
diff --git a/src/main/java/com/amazon/carbonado/repo/replicated/ReplicatedRepository.java b/src/main/java/com/amazon/carbonado/repo/replicated/ReplicatedRepository.java
index e76ee9a..38ce358 100644
--- a/src/main/java/com/amazon/carbonado/repo/replicated/ReplicatedRepository.java
+++ b/src/main/java/com/amazon/carbonado/repo/replicated/ReplicatedRepository.java
@@ -168,11 +168,7 @@ class ReplicatedRepository
return mName;
}
- Repository getReplicaRepository() {
- return mReplicaRepository;
- }
-
- Repository getMasterRepository() {
+ public Repository getMasterRepository() {
return mMasterRepository;
}