mirror of https://github.com/apache/activemq.git
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:
parent
0817f5d5df
commit
c255d1ddcb
|
@ -62,6 +62,10 @@ public class ConnectionView implements ConnectionViewMBean {
|
|||
return connection.isActive();
|
||||
}
|
||||
|
||||
public int getDispatchQueueSize() {
|
||||
return connection.getDispatchQueueSize();
|
||||
}
|
||||
|
||||
/**
|
||||
* Resets the statistics
|
||||
*/
|
||||
|
|
|
@ -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();
|
||||
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue