Qpid
  1. Qpid
  2. QPID-4783

Improve Connection statistics in Java Broker QmfManagementAgent

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.23
    • Component/s: Java Broker
    • Labels:
      None

      Description

      org.apache.qpid.server.qmf2.agentdata.Connection provide a bridge between the Java Broker org.apache.qpid.server.model.Connection and QMF.

      I had assumed that bytesIn, bytesOut, messagesIn and messagesOut hadn't been implemented but Robbie Gemmell mentioned that they were actually implemented in the StatisticsAdapter base class extended by ConnectionStatisticsAdapter.

      So I've been able to map those to the related QMF Connection statistics.

      setValue("bytesFromClient", stats.getStatistic("bytesIn"));
      setValue("bytesToClient", stats.getStatistic("bytesOut"));
      setValue("msgsFromClient", stats.getStatistic("messagesIn"));
      setValue("msgsToClient", stats.getStatistic("messagesOut"));

      I've applied a fix and the stats look to be updating fine in the QMF2 GUI.

        Activity

        Fraser Adams created issue -
        Hide
        Fraser Adams added a comment -

        Added change in r1476792

        Show
        Fraser Adams added a comment - Added change in r1476792
        Fraser Adams made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Fraser Adams made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        4m 52s 1 Fraser Adams 28/Apr/13 17:19
        Resolved Resolved Closed Closed
        14s 1 Fraser Adams 28/Apr/13 17:20

          People

          • Assignee:
            Unassigned
            Reporter:
            Fraser Adams
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development