fix for https://issues.apache.org/activemq/browse/AMQ-2302 - enqueue/dequeue count for connections

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@805396 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2009-08-18 12:49:44 +00:00
parent 39e63c0051
commit 0a95b7e309
6 changed files with 0 additions and 101 deletions

View File

@ -62,13 +62,6 @@ public class ConnectionView implements ConnectionViewMBean {
return connection.isActive(); return connection.isActive();
} }
/**
* Returns the number of messages to be dispatched to this connection
*/
public int getDispatchQueueSize() {
return connection.getDispatchQueueSize();
}
/** /**
* Resets the statistics * Resets the statistics
*/ */
@ -76,25 +69,6 @@ public class ConnectionView implements ConnectionViewMBean {
connection.getStatistics().reset(); connection.getStatistics().reset();
} }
/**
* Returns the number of messages enqueued on this connection
*
* @return the number of messages enqueued on this connection
*/
public long getEnqueueCount() {
return connection.getStatistics().getEnqueues().getCount();
}
/**
* Returns the number of messages dequeued on this connection
*
* @return the number of messages dequeued on this connection
*/
public long getDequeueCount() {
return connection.getStatistics().getDequeues().getCount();
}
public String getRemoteAddress() { public String getRemoteAddress() {
return connection.getRemoteAddress(); return connection.getRemoteAddress();
} }

View File

@ -42,34 +42,12 @@ public interface ConnectionViewMBean extends Service {
*/ */
@MBeanInfo("Connection is active (both connected and receiving messages).") @MBeanInfo("Connection is active (both connected and receiving messages).")
boolean isActive(); boolean isActive();
/**
* Returns the number of messages to be dispatched to this connection
*/
@MBeanInfo("The number of messages dispatched to this connection")
int getDispatchQueueSize();
/** /**
* Resets the statistics * Resets the statistics
*/ */
@MBeanInfo("Resets the statistics") @MBeanInfo("Resets the statistics")
void resetStatistics(); void resetStatistics();
/**
* Returns the number of messages enqueued on this connection
*
* @return the number of messages enqueued on this connection
*/
@MBeanInfo("Number of messages enqueued on this connection")
long getEnqueueCount();
/**
* Returns the number of messages dequeued on this connection
*
* @return the number of messages dequeued on this connection
*/
@MBeanInfo("Number of messages dequeued on this connection")
long getDequeueCount();
/** /**
* Returns the source address for this connection * Returns the source address for this connection

View File

@ -77,23 +77,4 @@ public class ConnectorView implements ConnectorViewMBean {
return connector.getStatistics().isEnabled(); return connector.getStatistics().isEnabled();
} }
/**
* Returns the number of messages enqueued on this connector
*
* @return the number of messages enqueued on this connector
*/
public long getEnqueueCount() {
return connector.getStatistics().getEnqueues().getCount();
}
/**
* Returns the number of messages dequeued on this connector
*
* @return the number of messages dequeued on this connector
*/
public long getDequeueCount() {
return connector.getStatistics().getDequeues().getCount();
}
} }

View File

@ -46,20 +46,4 @@ public interface ConnectorViewMBean extends Service {
@MBeanInfo("Statistics gathering enabled") @MBeanInfo("Statistics gathering enabled")
boolean isStatisticsEnabled(); boolean isStatisticsEnabled();
/**
* Returns the number of messages enqueued on this connector
*
* @return the number of messages enqueued on this connector
*/
@MBeanInfo("Number of messages enqueued on this connector")
long getEnqueueCount();
/**
* Returns the number of messages dequeued on this connector
*
* @return the number of messages dequeued on this connector
*/
@MBeanInfo("Number of messages dequeued on this connector")
long getDequeueCount();
} }

View File

@ -61,18 +61,6 @@ No connection could be found for ID ${requestContext.connectionQuery.connectionI
<td class="label">Slow</td> <td class="label">Slow</td>
<td>${row.slow}</td> <td>${row.slow}</td>
</tr> </tr>
<tr>
<td class="label">Enqueue Count</td>
<td>${row.enqueueCount}</td>
</tr>
<tr>
<td class="label">Dequeue Count</td>
<td>${row.dequeueCount}</td>
</tr>
<tr>
<td class="label">Dispatch Queue Size</td>
<td>${row.dispatchQueueSize}</td>
</tr>
</tbody> </tbody>
</table> </table>

View File

@ -30,9 +30,6 @@
<tr> <tr>
<th>Name</th> <th>Name</th>
<th>Remote Address</th> <th>Remote Address</th>
<th>Enqueue Count</th>
<th>Dequeue Count</th>
<th>Dispatch Queue Size</th>
<th>Active</th> <th>Active</th>
<th>Slow</th> <th>Slow</th>
</tr> </tr>
@ -43,9 +40,6 @@
<tr> <tr>
<td><a href="connection.jsp?connectionID=${conName}">${conName}</a></td> <td><a href="connection.jsp?connectionID=${conName}">${conName}</a></td>
<td>${con.remoteAddress}</td> <td>${con.remoteAddress}</td>
<td>${con.enqueueCount}</td>
<td>${con.dequeueCount}</td>
<td>${con.dispatchQueueSize}</td>
<td>${con.active}</td> <td>${con.active}</td>
<td>${con.slow}</td> <td>${con.slow}</td>
</tr> </tr>