Author: bhupendrab
Date: Wed Feb 14 07:39:21 2007
New Revision: 507583
URL: http://svn.apache.org/viewvc?view=rev&rev=507583
Log:
QPID-367
added @Configured annotation to the maximumMessageSize attribute
Modified:
incubator/qpid/trunk/qpid/java/broker/etc/virtualhosts.xml
incubator/qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/AMQQueue.java
Modified: incubator/qpid/trunk/qpid/java/broker/etc/virtualhosts.xml
URL:
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/broker/etc/virtualhosts.xml?view=diff&rev=507583&r1=507582&r2=507583
==============================================================================
--- incubator/qpid/trunk/qpid/java/broker/etc/virtualhosts.xml (original)
+++ incubator/qpid/trunk/qpid/java/broker/etc/virtualhosts.xml Wed Feb 14
07:39:21 2007
@@ -23,7 +23,6 @@
<default>test</default>
<virtualhost>
<name>localhost</name>
-
<localhost>
<minimumAlertRepeatGap>30000</minimumAlertRepeatGap>
<maximumMessageCount>5000</maximumMessageCount>
@@ -47,11 +46,11 @@
</queue>
</localhost>
</virtualhost>
- <virtualhost>
+ <virtualhost>
<name>development</name>
- <minimumAlertRepeatGap>30000</minimumAlertRepeatGap>
- <maximumMessageCount>5000</maximumMessageCount>
<development>
+ <minimumAlertRepeatGap>30000</minimumAlertRepeatGap>
+ <maximumMessageCount>5000</maximumMessageCount>
<queue>
<name>queue</name>
<queue>
@@ -72,11 +71,11 @@
</queue>
</development>
</virtualhost>
- <virtualhost>
+ <virtualhost>
<name>test</name>
- <minimumAlertRepeatGap>30000</minimumAlertRepeatGap>
- <maximumMessageCount>5000</maximumMessageCount>
<test>
+ <minimumAlertRepeatGap>30000</minimumAlertRepeatGap>
+ <maximumMessageCount>5000</maximumMessageCount>
<queue>
<name>queue</name>
<queue>
Modified:
incubator/qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/AMQQueue.java
URL:
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/AMQQueue.java?view=diff&rev=507583&r1=507582&r2=507583
==============================================================================
---
incubator/qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/AMQQueue.java
(original)
+++
incubator/qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/AMQQueue.java
Wed Feb 14 07:39:21 2007
@@ -129,7 +129,8 @@
/**
* max allowed size(KB) of a single message
*/
- private long _maximumMessageSize = 10000;
+ @Configured(path = "maximumMessageSize", defaultValue = "0")
+ public long _maximumMessageSize;
/**
* max allowed number of messages on a queue.
@@ -141,19 +142,19 @@
* max queue depth for the queue
*/
@Configured(path = "maximumQueueDepth", defaultValue = "0")
- public long _maximumQueueDepth = 10000000;
+ public long _maximumQueueDepth;
-/*
+ /**
* maximum message age before alerts occur
*/
@Configured(path = "maximumMessageAge", defaultValue = "0")
- public long _maximumMessageAge = 30000; //0
+ public long _maximumMessageAge;
- /*
+ /**
* the minimum interval between sending out consequetive alerts of the
same type
*/
@Configured(path = "minimumAlertRepeatGap", defaultValue = "0")
- public long _minimumAlertRepeatGap = 30000;
+ public long _minimumAlertRepeatGap;
/**
* total messages received by the queue since startup.