diff options
| author | Justin Ross <jross@apache.org> | 2015-02-11 20:43:53 +0000 |
|---|---|---|
| committer | Justin Ross <jross@apache.org> | 2015-02-11 20:43:53 +0000 |
| commit | 08f5f85f8e306c4dc20e75d976270c59753f54a4 (patch) | |
| tree | 5fdd001c92407b95fdc24272d95d4c02ed3bdd3d | |
| parent | 647d21b7ce2bae2174a22019c6cc2e2fd0a2e13d (diff) | |
| download | qpid-python-08f5f85f8e306c4dc20e75d976270c59753f54a4.tar.gz | |
QPID-6347: Remove the now obsolete queue_event_generation option; this is a patch from Irina Boverman
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1659063 13f79535-47bb-0310-9956-ffa450edef68
6 files changed, 1 insertions, 92 deletions
diff --git a/qpid/cpp/src/qpid/client/QueueOptions.cpp b/qpid/cpp/src/qpid/client/QueueOptions.cpp index e589bd76cd..f7705afeb0 100644 --- a/qpid/cpp/src/qpid/client/QueueOptions.cpp +++ b/qpid/cpp/src/qpid/client/QueueOptions.cpp @@ -40,8 +40,6 @@ const std::string QueueOptions::strRING_STRICT("ring_strict"); const std::string QueueOptions::strLastValueQueue("qpid.last_value_queue"); const std::string QueueOptions::strLVQMatchProperty("qpid.LVQ_key"); const std::string QueueOptions::strLastValueQueueNoBrowse("qpid.last_value_queue_no_browse"); -const std::string QueueOptions::strQueueEventMode("qpid.queue_event_generation"); - QueueOptions::~QueueOptions() {} @@ -101,11 +99,6 @@ void QueueOptions::clearOrdering() erase(strLastValueQueue); } -void QueueOptions::enableQueueEvents(bool enqueueOnly) -{ - setInt(strQueueEventMode, enqueueOnly ? ENQUEUE_ONLY : ENQUEUE_AND_DEQUEUE); -} - } } diff --git a/qpid/cpp/src/qpid/client/QueueOptions.h b/qpid/cpp/src/qpid/client/QueueOptions.h index a2f30a50b5..f7ace15ff9 100644 --- a/qpid/cpp/src/qpid/client/QueueOptions.h +++ b/qpid/cpp/src/qpid/client/QueueOptions.h @@ -75,28 +75,6 @@ class QPID_CLIENT_CLASS_EXTERN QueueOptions: public framing::FieldTable */ QPID_CLIENT_EXTERN void clearOrdering(); - /** - * Turns on event generation for this queue (either enqueue only - * or for enqueue and dequeue events); the events can then be - * processed by a regsitered broker plugin. - * - * DEPRECATED - * - * This is confusing to anyone who sees only the function call - * and not the variable name / doxygen. Consider the following call: - * - * options.enableQueueEvents(false); - * - * It looks like it disables queue events, but what it really does is - * enable both enqueue and dequeue events. - * - * Use setInt() instead: - * - * options.setInt("qpid.queue_event_generation", 2); - */ - - QPID_CLIENT_EXTERN void enableQueueEvents(bool enqueueOnly); - static QPID_CLIENT_EXTERN const std::string strMaxCountKey; static QPID_CLIENT_EXTERN const std::string strMaxSizeKey; static QPID_CLIENT_EXTERN const std::string strTypeKey; diff --git a/qpid/doc/book/src/cpp-broker/Cheat-Sheet-for-configuring-Queue-Options.xml b/qpid/doc/book/src/cpp-broker/Cheat-Sheet-for-configuring-Queue-Options.xml index e693ee463b..125372e463 100644 --- a/qpid/doc/book/src/cpp-broker/Cheat-Sheet-for-configuring-Queue-Options.xml +++ b/qpid/doc/book/src/cpp-broker/Cheat-Sheet-for-configuring-Queue-Options.xml @@ -179,34 +179,7 @@ <section role="h3" id="CheatSheetforconfiguringQueueOptions-Settingadditionalbehaviors"><title> Setting additional behaviors </title> - <section role="h4" id="CheatSheetforconfiguringQueueOptions-Queueeventgeneration"><title> - Queue - event generation - </title> - <para> - This option is used to determine whether enqueue/dequeue events - representing changes made to queue state are generated. These - events can then be processed by plugins such as that used for - <xref linkend="queue-state-replication"/>. - </para><para> - Example: - </para> - <programlisting> -#include "qpid/client/QueueOptions.h" - - QueueOptions options; - options.enableQueueEvents(1); - session.queueDeclare(arg::queue="my-queue", arg::arguments=options); -</programlisting> - <para> - The boolean option indicates whether only enqueue events should - be generated. The key set by this is - 'qpid.queue_event_generation' and the value is and integer value - of 1 (to replicate only enqueue events) or 2 (to replicate both - enqueue and dequeue events). - </para> <!--h3--></section> - <!--h4--></section> <section role="h3" id="CheatSheetforconfiguringQueueOptions-OtherClients"><title> Other Clients diff --git a/qpid/java/client/src/main/java/org/apache/qpid/client/messaging/address/QpidQueueOptions.java b/qpid/java/client/src/main/java/org/apache/qpid/client/messaging/address/QpidQueueOptions.java index 5b6c027f4a..24295a0832 100644 --- a/qpid/java/client/src/main/java/org/apache/qpid/client/messaging/address/QpidQueueOptions.java +++ b/qpid/java/client/src/main/java/org/apache/qpid/client/messaging/address/QpidQueueOptions.java @@ -30,7 +30,6 @@ public class QpidQueueOptions extends HashMap<String,Object> public static final String QPID_LVQ_KEY = "qpid.LVQ_key"; public static final String QPID_LAST_VALUE_QUEUE = "qpid.last_value_queue"; public static final String QPID_LAST_VALUE_QUEUE_NO_BROWSE = "qpid.last_value_queue_no_browse"; - public static final String QPID_QUEUE_EVENT_GENERATION = "qpid.queue_event_generation"; public void validatePolicyType(String type) { @@ -83,16 +82,4 @@ public class QpidQueueOptions extends HashMap<String,Object> this.put(QPID_LVQ_KEY, key); } - public void setQueueEvents(String value) - { - if (value != null && (value.equals("1") || value.equals("2"))) - { - this.put(QPID_QUEUE_EVENT_GENERATION, value); - } - else - { - throw new IllegalArgumentException("Invalid value for " + - QPID_QUEUE_EVENT_GENERATION + " should be one of {1|2}"); - } - } } diff --git a/qpid/tools/src/java/qpid-qmf2-tools/src/main/java/org/apache/qpid/qmf2/tools/QpidConfig.java b/qpid/tools/src/java/qpid-qmf2-tools/src/main/java/org/apache/qpid/qmf2/tools/QpidConfig.java index 04a0642e2e..8cca763e4c 100644 --- a/qpid/tools/src/java/qpid-qmf2-tools/src/main/java/org/apache/qpid/qmf2/tools/QpidConfig.java +++ b/qpid/tools/src/java/qpid-qmf2-tools/src/main/java/org/apache/qpid/qmf2/tools/QpidConfig.java @@ -344,7 +344,6 @@ public final class QpidConfig private String _order = "fifo"; private boolean _msgSequence = false; private boolean _ive = false; - private long _eventGeneration = 0; private String _file = null; // New to Qpid 0.10 qpid-config @@ -364,7 +363,6 @@ public final class QpidConfig private static final String LVQNB = "qpid.last_value_queue_no_browse"; private static final String MSG_SEQUENCE = "qpid.msg_sequence"; private static final String IVE = "qpid.ive"; - private static final String QUEUE_EVENT_GENERATION = "qpid.queue_event_generation"; private static final String FLOW_STOP_COUNT = "qpid.flow_stop_count"; private static final String FLOW_RESUME_COUNT = "qpid.flow_resume_count"; private static final String FLOW_STOP_SIZE = "qpid.flow_stop_size"; @@ -387,7 +385,6 @@ public final class QpidConfig SPECIAL_ARGS.add(LVQNB); SPECIAL_ARGS.add(MSG_SEQUENCE); SPECIAL_ARGS.add(IVE); - SPECIAL_ARGS.add(QUEUE_EVENT_GENERATION); SPECIAL_ARGS.add(FLOW_STOP_COUNT); SPECIAL_ARGS.add(FLOW_RESUME_COUNT); SPECIAL_ARGS.add(FLOW_STOP_SIZE); @@ -714,11 +711,6 @@ for (Map.Entry<String, Object> entry : args.entrySet()) { System.out.printf("--order lvq-no-browse "); } - if (args.containsKey(QUEUE_EVENT_GENERATION)) - { - System.out.printf("--generate-queue-events=%d ", QmfData.getLong(args.get(QUEUE_EVENT_GENERATION))); - } - if (queue.hasValue("altExchange")) { ObjectId altExchangeRef = queue.getRefValue("altExchange"); @@ -936,11 +928,6 @@ for (Map.Entry<String, Object> entry : args.entrySet()) { properties.put(LVQNB, 1l); } - if (_eventGeneration > 0) - { - properties.put(QUEUE_EVENT_GENERATION, _eventGeneration); - } - if (_altExchange != null) { properties.put("alternate-exchange", _altExchange); @@ -1393,11 +1380,6 @@ for (Map.Entry<String, Object> entry : args.entrySet()) { _ive = true; } - if (opt[0].equals("--generate-queue-events")) - { - _eventGeneration = Long.parseLong(opt[1]); - } - if (opt[0].equals("--force")) { _ifEmpty = false; diff --git a/qpid/tools/src/py/qpid-config b/qpid/tools/src/py/qpid-config index 8d38b1a342..816e0f0a08 100755 --- a/qpid/tools/src/py/qpid-config +++ b/qpid/tools/src/py/qpid-config @@ -147,7 +147,6 @@ POLICY_TYPE = "qpid.policy_type" LVQ_KEY = "qpid.last_value_queue_key" MSG_SEQUENCE = "qpid.msg_sequence" IVE = "qpid.ive" -QUEUE_EVENT_GENERATION = "qpid.queue_event_generation" FLOW_STOP_COUNT = "qpid.flow_stop_count" FLOW_RESUME_COUNT = "qpid.flow_resume_count" FLOW_STOP_SIZE = "qpid.flow_stop_size" @@ -164,7 +163,7 @@ REPLICATE = "qpid.replicate" SPECIAL_ARGS=[ FILECOUNT,FILESIZE,EFP_PARTITION_NUM,EFP_POOL_FILE_SIZE, MAX_QUEUE_SIZE,MAX_QUEUE_COUNT,POLICY_TYPE, - LVQ_KEY,MSG_SEQUENCE,IVE,QUEUE_EVENT_GENERATION, + LVQ_KEY,MSG_SEQUENCE,IVE, FLOW_STOP_COUNT,FLOW_RESUME_COUNT,FLOW_STOP_SIZE,FLOW_RESUME_SIZE, MSG_GROUP_HDR_KEY,SHARED_MSG_GROUP,REPLICATE] @@ -541,7 +540,6 @@ class BrokerManager: if MAX_QUEUE_COUNT in args: print "--max-queue-count=%s" % args[MAX_QUEUE_COUNT], if POLICY_TYPE in args: print "--limit-policy=%s" % args[POLICY_TYPE].replace("_", "-"), if LVQ_KEY in args: print "--lvq-key=%s" % args[LVQ_KEY], - if QUEUE_EVENT_GENERATION in args: print "--generate-queue-events=%s" % args[QUEUE_EVENT_GENERATION], if q.altExchange: print "--alternate-exchange=%s" % q.altExchange, if FLOW_STOP_SIZE in args: print "--flow-stop-size=%s" % args[FLOW_STOP_SIZE], @@ -638,8 +636,6 @@ class BrokerManager: if config._lvq_key: declArgs[LVQ_KEY] = config._lvq_key - if config._eventGeneration: - declArgs[QUEUE_EVENT_GENERATION] = config._eventGeneration if config._flowStopSize is not None: declArgs[FLOW_STOP_SIZE] = config._flowStopSize |
