From 9fb03414506c055d3195debb78ad017094fcea97 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Wed, 6 Dec 2006 20:27:33 +0000 Subject: Added master repository access in resync capability. --- .../java/com/amazon/carbonado/capability/ResyncCapability.java | 7 +++++++ .../com/amazon/carbonado/repo/replicated/ReplicatedRepository.java | 6 +----- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3