summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBhupendra Bhusman Bhardwaj <bhupendrab@apache.org>2007-02-14 15:39:21 +0000
committerBhupendra Bhusman Bhardwaj <bhupendrab@apache.org>2007-02-14 15:39:21 +0000
commit80e9cae3e7fd6bb8216c0b0ddf74a51c48784814 (patch)
tree52a540a53738bc17deb8e697bae671b14f0fe55c
parentad724dd62db0f497e2d84ef3f56af6dd2839892d (diff)
downloadqpid-python-80e9cae3e7fd6bb8216c0b0ddf74a51c48784814.tar.gz
QPID-367
added @Configured annotation to the maximumMessageSize attribute git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@507583 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--java/broker/etc/virtualhosts.xml13
-rw-r--r--java/broker/src/main/java/org/apache/qpid/server/queue/AMQQueue.java13
2 files changed, 13 insertions, 13 deletions
diff --git a/java/broker/etc/virtualhosts.xml b/java/broker/etc/virtualhosts.xml
index a41554f7bc..3601daacc7 100644
--- a/java/broker/etc/virtualhosts.xml
+++ b/java/broker/etc/virtualhosts.xml
@@ -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>
diff --git a/java/broker/src/main/java/org/apache/qpid/server/queue/AMQQueue.java b/java/broker/src/main/java/org/apache/qpid/server/queue/AMQQueue.java
index c114d2d25f..d5a2bb2994 100644
--- a/java/broker/src/main/java/org/apache/qpid/server/queue/AMQQueue.java
+++ b/java/broker/src/main/java/org/apache/qpid/server/queue/AMQQueue.java
@@ -129,7 +129,8 @@ public class AMQQueue implements Managable, Comparable
/**
* 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 @@ public class AMQQueue implements Managable, Comparable
* 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.