diff options
author | Charles E. Rolke <chug@apache.org> | 2012-09-07 17:22:44 +0000 |
---|---|---|
committer | Charles E. Rolke <chug@apache.org> | 2012-09-07 17:22:44 +0000 |
commit | e9dba69b49ad4943dab4cee05dc88c5f4ff97462 (patch) | |
tree | c23848ccba888531d2fb73da168939d659decf15 /cpp/src/qpid/broker/QueueSettings.cpp | |
parent | 858ba75378dd8e1834aaa71aaab4a451d911a129 (diff) | |
download | qpid-python-e9dba69b49ad4943dab4cee05dc88c5f4ff97462.tar.gz |
QPID-4268 C++ Broker Acl support for limiting on-disk store file size and count
Reviewed at https://reviews.apache.org/r/6838/
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1382095 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/QueueSettings.cpp')
-rw-r--r-- | cpp/src/qpid/broker/QueueSettings.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/QueueSettings.cpp b/cpp/src/qpid/broker/QueueSettings.cpp index 91616636f1..b180a89e43 100644 --- a/cpp/src/qpid/broker/QueueSettings.cpp +++ b/cpp/src/qpid/broker/QueueSettings.cpp @@ -33,6 +33,8 @@ namespace broker { namespace { const std::string MAX_COUNT("qpid.max_count"); const std::string MAX_SIZE("qpid.max_size"); +const std::string MAX_FILE_COUNT("qpid.file_count"); +const std::string MAX_FILE_SIZE("qpid.file_size"); const std::string POLICY_TYPE("qpid.policy_type"); const std::string POLICY_TYPE_REJECT("reject"); const std::string POLICY_TYPE_RING("ring"); @@ -163,6 +165,12 @@ bool QueueSettings::handle(const std::string& key, const qpid::types::Variant& v } else if (key == ALERT_SIZE) { alertThreshold.setSize(value); return true; + } else if (key == MAX_FILE_COUNT && value.asUint64() > 0) { + maxFileCount = value.asUint64(); + return false; // 'handle' here and also pass to store + } else if (key == MAX_FILE_SIZE && value.asUint64() > 0) { + maxFileSize = value.asUint64(); + return false; // 'handle' here and also pass to store } else { return false; } |