summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2006-12-06 20:27:33 +0000
committerBrian S. O'Neill <bronee@gmail.com>2006-12-06 20:27:33 +0000
commit9fb03414506c055d3195debb78ad017094fcea97 (patch)
treecdc2748c7c57de0ca1aaf0a2f44249691933ac91 /src
parentbef06b7d532dc7939836d6c6d9f9a4ad822da618 (diff)
Added master repository access in resync capability.
Diffstat (limited to 'src')
-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;
}