https://issues.apache.org/jira/browse/AMQ-3356 - DispatchedQueueCount (messages pending dispatch) should be visible on the jmx connection view

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1130974 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2011-06-03 10:08:22 +00:00
parent 0817f5d5df
commit c255d1ddcb
3 changed files with 16 additions and 1 deletions

View File

@ -62,6 +62,10 @@ public class ConnectionView implements ConnectionViewMBean {
return connection.isActive();
}
public int getDispatchQueueSize() {
return connection.getDispatchQueueSize();
}
/**
* Resets the statistics
*/

View File

@ -52,9 +52,16 @@ public interface ConnectionViewMBean extends Service {
/**
* Returns the source address for this connection
*
* @return the souce address for this connection
* @return the source address for this connection
*/
@MBeanInfo("Source address for this connection")
String getRemoteAddress();
/**
* Returns the number of messages to be dispatched to this connection
* @return the number of messages pending dispatch
*/
@MBeanInfo("The number of messages pending dispatch")
public int getDispatchQueueSize();
}

View File

@ -61,6 +61,10 @@ No connection could be found for ID <c:out value="${requestContext.connectionQue
<td class="label">Slow</td>
<td><c:out value="${row.slow}" /></td>
</tr>
<tr>
<td class="label">Dispatch Queue Size</td>
<td><c:out value="${row.dispatchQueueSize}" /></td>
</tr>
</tbody>
</table>