summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/StoreStatus.h
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-03-30 20:57:12 +0000
committerAlan Conway <aconway@apache.org>2010-03-30 20:57:12 +0000
commitd13a8d895087b0a8e5a3535466bd8a5d065ae6be (patch)
treedff4863a629ded4ecd092f43655ff8ebf5663390 /cpp/src/qpid/cluster/StoreStatus.h
parent6fbe67c713215a289e86d32fae48205d8f3062d2 (diff)
downloadqpid-python-d13a8d895087b0a8e5a3535466bd8a5d065ae6be.tar.gz
Cluster logging improvements: log config changes in the deliver thread.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@929274 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/StoreStatus.h')
-rw-r--r--cpp/src/qpid/cluster/StoreStatus.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/src/qpid/cluster/StoreStatus.h b/cpp/src/qpid/cluster/StoreStatus.h
index 2371f0424e..b496fe0dc2 100644
--- a/cpp/src/qpid/cluster/StoreStatus.h
+++ b/cpp/src/qpid/cluster/StoreStatus.h
@@ -42,6 +42,9 @@ class StoreStatus
StoreStatus(const std::string& dir);
framing::cluster::StoreState getState() const { return state; }
+ bool isClean() { return state == framing::cluster::STORE_STATE_CLEAN_STORE; }
+ bool isDirty() { return state == framing::cluster::STORE_STATE_DIRTY_STORE; }
+
const Uuid& getClusterId() const { return clusterId; }
const Uuid& getShutdownId() const { return shutdownId; }
framing::SequenceNumber getConfigSeq() const { return configSeq; }