diff options
| author | Robert Gemmell <robbie@apache.org> | 2009-12-08 04:03:50 +0000 |
|---|---|---|
| committer | Robert Gemmell <robbie@apache.org> | 2009-12-08 04:03:50 +0000 |
| commit | 329094fe3cee90244ccd42c064161ec322aba756 (patch) | |
| tree | 062a79893f72afd97d8e5fd0afe33aa131cb83b6 /qpid/java/management/common/src | |
| parent | 89592d8cd08393dbafc730cc096410b521541343 (diff) | |
| download | qpid-python-329094fe3cee90244ccd42c064161ec322aba756.tar.gz | |
QPID-2177: expose Capacity, FlowResumeCapacity, and FlowOverfull as attributes of the Queue MBeans
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@888248 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/management/common/src')
2 files changed, 57 insertions, 2 deletions
diff --git a/qpid/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ManagedQueue.java b/qpid/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ManagedQueue.java index ff4edb4ddd..7838400cd1 100644 --- a/qpid/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ManagedQueue.java +++ b/qpid/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ManagedQueue.java @@ -68,6 +68,9 @@ public interface ManagedQueue String ATTR_MSG_COUNT = "MessageCount"; String ATTR_QUEUE_DEPTH = "QueueDepth"; String ATTR_RCVD_MSG_COUNT = "ReceivedMessageCount"; + String ATTR_CAPACITY = "Capacity"; + String ATTR_FLOW_OVERFULL = "FlowOverfull"; + String ATTR_FLOW_RESUME_CAPACITY = "FlowResumeCapacity"; //All attribute names constant String[] QUEUE_ATTRIBUTES = new String[]{ @@ -83,7 +86,10 @@ public interface ManagedQueue ATTR_ACTIVE_CONSUMER_COUNT, ATTR_MSG_COUNT, ATTR_QUEUE_DEPTH, - ATTR_RCVD_MSG_COUNT + ATTR_RCVD_MSG_COUNT, + ATTR_CAPACITY, + ATTR_FLOW_OVERFULL, + ATTR_FLOW_RESUME_CAPACITY }; /** @@ -230,7 +236,56 @@ public interface ManagedQueue */ @MBeanAttribute(name="MaximumQueueDepth", description="The threshold high value(Bytes) for Queue Depth") void setMaximumQueueDepth(Long value) throws IOException; + + + /** + * Returns the current flow control Capacity of the queue in bytes. + * + * @since Qpid JMX API 1.6 + * @return Capacity at which flow control is enforced + * @throws IOException + */ + Long getCapacity() throws IOException; + /** + * Sets the Capacity in bytes above which flow is blocked. + * + * @since Qpid JMX API 1.6 + * @param value the capacity in bytes + * @throws IOException + * @throws IllegalArgumentException If the given value is less than the queue FloeResumeCapacity + */ + @MBeanAttribute(name="Capacity", description="The flow control Capacity (Bytes) of the queue") + void setCapacity(Long value) throws IOException, IllegalArgumentException; + + /** + * Returns the current flow control FlowResumeCapacity of the queue in bytes. + * + * @since Qpid JMX API 1.6 + * @return Capacity below which flow resumes in bytes + * @throws IOException + */ + Long getFlowResumeCapacity() throws IOException; + + /** + * Sets the FlowResumeCapacity in bytes below which flow resumes. + * + * @since Qpid JMX API 1.6 + * @param value of the resume capacity in bytes + * @throws IOException + * @throws IllegalArgumentException If the given value exceeds the queue Capacity + */ + @MBeanAttribute(name="FlowResumeCapacity", description="The flow resume Capacity (Bytes) of the queue") + void setFlowResumeCapacity(Long value) throws IOException, IllegalArgumentException; + + /** + * Indicates whether the Queue is currently considered overfull by the FlowControl system + * + * @since Qpid JMX API 1.6 + * @throws IOException + */ + @MBeanAttribute(name="FlowOverfull", description="true if the queue is considered overfull by the Flow Control system") + boolean isFlowOverfull() throws IOException; //********** Operations *****************// diff --git a/qpid/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ServerInformation.java b/qpid/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ServerInformation.java index 68ecd670c2..9b75945d53 100644 --- a/qpid/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ServerInformation.java +++ b/qpid/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ServerInformation.java @@ -43,7 +43,7 @@ public interface ServerInformation * Qpid JMX API 1.1 can be assumed. */ int QPID_JMX_API_MAJOR_VERSION = 1; - int QPID_JMX_API_MINOR_VERSION = 5; + int QPID_JMX_API_MINOR_VERSION = 6; /** |
