summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado/repo/replicated
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2009-12-22 01:15:07 +0000
committerBrian S. O'Neill <bronee@gmail.com>2009-12-22 01:15:07 +0000
commit4684549782accd0ffba1aefd15d42918effeddfd (patch)
treee4b44a9c85b8f4a2be60f94268c7f92d55cdf337 /src/main/java/com/amazon/carbonado/repo/replicated
parentca6d4484142d8144f7567a37ed448babe294fda8 (diff)
Added isClosed method to Repository.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/repo/replicated')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/replicated/ReplicatedRepository.java4
1 files changed, 4 insertions, 0 deletions
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 d3414af..e4fdd4c 100644
--- a/src/main/java/com/amazon/carbonado/repo/replicated/ReplicatedRepository.java
+++ b/src/main/java/com/amazon/carbonado/repo/replicated/ReplicatedRepository.java
@@ -266,6 +266,10 @@ class ReplicatedRepository
mMasterRepository.close();
}
+ public boolean isClosed() {
+ return mReplicaRepository.isClosed() || mMasterRepository.isClosed();
+ }
+
public String[] getUserStorableTypeNames() throws RepositoryException {
StorableInfoCapability replicaCap =
mReplicaRepository.getCapability(StorableInfoCapability.class);