Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-690

Add ability to get list of connections through server management agent

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Add a management agent handler that will return a list of connections.
      The following info should be returned:
      state - the state of the connection (Connecting, Opening, Operational, Failed, User)
      host - the host of the connection's container
      port - the post of the connection's container
      container - the name of the remote connection container
      sasl - the sasl mechanism list of the connection's container
      role - the role of the connection's container

      tools/src/py/qdstat should also be updated with a -c command line switch.
      ./qdstat -c -b localhost:20001
      Connections
      state host port container sasl-mechanisms role
      =======================================================================
      Operational 0.0.0.0 20002 QDR.B ANONYMOUS inter-router
      Operational 0.0.0.0 20003 QDR.C ANONYMOUS inter-router
      Operational 0.0.0.0 20004 QDR.D ANONYMOUS inter-router

        Activity

        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 1541689 from Ted Ross in branch 'dispatch/trunk'
        [ https://svn.apache.org/r1541689 ]

        QPID-5319 - Added management access for connections.
        Applied patch from Ernie Allen

        Show
        jira-bot ASF subversion and git services added a comment - Commit 1541689 from Ted Ross in branch 'dispatch/trunk' [ https://svn.apache.org/r1541689 ] QPID-5319 - Added management access for connections. Applied patch from Ernie Allen
        Hide
        eallen Ernest Allen added a comment -

        The attached dispatch.connectors.diff4 addresses Ted's points.

        • Listener connections are now accumulated so incoming connections are now reported (from other routers as well as from qdstat)
        • Invoking qdstat repeatedly no longer removes outgoing connections

        Note: Repeatedly invoking qdstat -c shows that incoming (listener) connections are not always being freed. (https://issues.apache.org/jira/browse/QPID-4853)

        Show
        eallen Ernest Allen added a comment - The attached dispatch.connectors.diff4 addresses Ted's points. Listener connections are now accumulated so incoming connections are now reported (from other routers as well as from qdstat) Invoking qdstat repeatedly no longer removes outgoing connections Note: Repeatedly invoking qdstat -c shows that incoming (listener) connections are not always being freed. ( https://issues.apache.org/jira/browse/QPID-4853 )
        Hide
        tedross Ted Ross added a comment -

        I tested this patch with two routers connected together. If I look at the connections on one router, I see a connection to the other. If I look at the other, I see no connections.

        If repeatedly invoke qdstat -c, the connections eventually disappear. Also, I never see the connection that comes from qdstat itself.

        Show
        tedross Ted Ross added a comment - I tested this patch with two routers connected together. If I look at the connections on one router, I see a connection to the other. If I look at the other, I see no connections. If repeatedly invoke qdstat -c, the connections eventually disappear. Also, I never see the connection that comes from qdstat itself.
        Hide
        eallen Ernest Allen added a comment -

        Modified server to maintain a list of connections.
        Added management agent handler on the server to return the requested info about the connections.
        Modified qdstat python tool to request and display the connections list.

        Show
        eallen Ernest Allen added a comment - Modified server to maintain a list of connections. Added management agent handler on the server to return the requested info about the connections. Modified qdstat python tool to request and display the connections list.

          People

          • Assignee:
            tedross Ted Ross
            Reporter:
            eallen Ernest Allen
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development