[ 
https://issues.apache.org/jira/browse/DISPATCH-284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15258707#comment-15258707
 ] 

Ganesh Murthy commented on DISPATCH-284:
----------------------------------------

Added a new attribute called *connectionId* on the link. This can be tied back 
to the *identity* field on the connection. 

To see this in action, try the following steps

- Start two routers using the configs in tests/config-2 folder (qdrouterd -c 
tests/config-2/A.conf and qdrouterd -c tests/config-2/B.conf)
- run qdmanage QUERY link on the second router
  {noformat}
   [gmurthy@localhost dispatch]$ qdmanage -b 0.0.0.0:20101 QUERY --type=link
[
  {
    "linkType": "router-control", 
    "deliveryCount": 223, 
    "connectionId": 1, 
    "capacity": 100000, 
    "name": "qdlink.pFXpUcx7Jybnb7l", 
    "operStatus": "up", 
    "linkDir": "in", 
    "unsettledCount": 0, 
    "undeliveredCount": 0, 
    "linkName": "qdlink.pFXpUcx7Jybnb7l", 
    "adminStatus": "enabled", 
    "type": "org.apache.qpid.dispatch.router.link", 
    "identity": "4"
  }, 
  {
    "linkType": "router-control", 
    "deliveryCount": 233, 
    "connectionId": 1, 
    "capacity": 100000, 
    "name": "qdlink.jyuXbotTCB+wz+4", 
    "operStatus": "up", 
    "linkDir": "out", 
    "unsettledCount": 0, 
    "owningAddr": "Lqdhello", 
    "undeliveredCount": 0, 
    "linkName": "qdlink.jyuXbotTCB+wz+4", 
    "adminStatus": "enabled", 
    "type": "org.apache.qpid.dispatch.router.link", 
    "identity": "5"
  }, 
  {
    "linkType": "inter-router", 
    "deliveryCount": 0, 
    "connectionId": 1, 
    "capacity": 100000, 
    "name": "qdlink.tnZQAuduJKcVMzq", 
    "operStatus": "up", 
    "linkDir": "in", 
    "unsettledCount": 0, 
    "undeliveredCount": 0, 
    "linkName": "qdlink.tnZQAuduJKcVMzq", 
    "adminStatus": "enabled", 
    "type": "org.apache.qpid.dispatch.router.link", 
    "identity": "6"
  }, 
  {
    "linkType": "inter-router", 
    "deliveryCount": 0, 
    "connectionId": 1, 
    "capacity": 100000, 
    "name": "qdlink.QjFYL9SqlXABCcM", 
    "operStatus": "up", 
    "linkDir": "out", 
    "unsettledCount": 0, 
    "undeliveredCount": 0, 
    "linkName": "qdlink.QjFYL9SqlXABCcM", 
    "adminStatus": "enabled", 
    "type": "org.apache.qpid.dispatch.router.link", 
    "identity": "7"
  }, 
  {
    "linkType": "endpoint", 
    "deliveryCount": 1, 
    "connectionId": 3, 
    "capacity": 250, 
    "name": "d747f271-c40d-4380-b0bb-ab3f5630c5d8-$management", 
    "operStatus": "up", 
    "linkDir": "in", 
    "unsettledCount": 0, 
    "owningAddr": "M0$management", 
    "undeliveredCount": 0, 
    "linkName": "d747f271-c40d-4380-b0bb-ab3f5630c5d8-$management", 
    "adminStatus": "enabled", 
    "type": "org.apache.qpid.dispatch.router.link", 
    "identity": "10"
  }, 
  {
    "linkType": "endpoint", 
    "deliveryCount": 0, 
    "connectionId": 3, 
    "capacity": 0, 
    "name": 
"d747f271-c40d-4380-b0bb-ab3f5630c5d8-f69decab-c1dd-40a9-8a29-b4df9db95b27", 
    "operStatus": "up", 
    "linkDir": "out", 
    "unsettledCount": 0, 
    "owningAddr": "Ltemp.o4BzAuLtJPY7ywR", 
    "undeliveredCount": 0, 
    "linkName": 
"d747f271-c40d-4380-b0bb-ab3f5630c5d8-f69decab-c1dd-40a9-8a29-b4df9db95b27", 
    "adminStatus": "enabled", 
    "type": "org.apache.qpid.dispatch.router.link", 
    "identity": "11"
  }
]
  {noformat} 
  Note the *connectionId* of *1* on some of the above links
- Now run a query to look at the connections 
  {noformat}
  [gmurthy@localhost dispatch]$ qdmanage -b 0.0.0.0:20101 QUERY 
--type=connection
[
  {
    "container": "Qpid.Dispatch.Router.A", 
    "opened": true, 
    "user": "anonymous", 
    "dir": "out", 
    "ssl": false, 
    "host": "0.0.0.0:20102", 
    "isEncrypted": false, 
    "role": "inter-router", 
    "identity": 1, 
    "sasl": "ANONYMOUS", 
    "type": "org.apache.qpid.dispatch.connection", 
    "isAuthenticated": true, 
    "name": "connection/0.0.0.0:20102"
  }, 
  {
    "container": "5b000088-6059-4926-98f2-d318415d0b5b", 
    "opened": true, 
    "user": "anonymous", 
    "dir": "in", 
    "ssl": false, 
    "host": "localhost.localdomain:44664", 
    "isEncrypted": false, 
    "role": "normal", 
    "identity": 4, 
    "sasl": "ANONYMOUS", 
    "type": "org.apache.qpid.dispatch.connection", 
    "isAuthenticated": true, 
    "name": "connection/localhost.localdomain:44664"
  }
]
  {noformat}
  Note the *identity* of *1* on one of the connections. This *1* is the 
*connectionId* from the links query in the previous step

- Also added *Id* and *conn id* columns to the outputs of qdstat -c and qdstat 
-l respectively

  {noformat}[gmurthy@localhost dispatch]$ qdstat -b 0.0.0.0:20101 -c
Connections
  Id  host                         container                             role   
       dir  security     authentication
  
=======================================================================================================================
  1   0.0.0.0:20102                Qpid.Dispatch.Router.A                
inter-router  out  no-security  anonymous-user
  7   localhost.localdomain:44730  f68a277d-69bc-4b5f-ac06-5f9f481ceaec  normal 
       in   no-security  anonymous-user
[gmurthy@localhost dispatch]$ qdstat -b 0.0.0.0:20101 -l
Router Links
  type            dir  conn id  id  peer  class   addr                  phs  
cap     undel  unsettled  deliveries  admin    oper
  
================================================================================================================================
  router-control  in   1        4                                            
100000  0      0          867         enabled  up
  router-control  out  1        5         local   qdhello                    
100000  0      0          878         enabled  up
  inter-router    in   1        6                                            
100000  0      0          0           enabled  up
  inter-router    out  1        7                                            
100000  0      0          0           enabled  up
  endpoint        in   8        20        mobile  $management           0    
250     0      0          1           enabled  up
  endpoint        out  8        21        local   temp.FMHdV9uG6Bvy07G       0  
     0      0          0           enabled  up
[gmurthy@localhost dispatch]$ 

  {noformat}

This should allow Ernie to associate links with their connections

> The management schema no longer exposes a way to associate links with their 
> connections
> ---------------------------------------------------------------------------------------
>
>                 Key: DISPATCH-284
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-284
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Management Agent
>    Affects Versions: 0.6
>            Reporter: Ernest Allen
>            Assignee: Ganesh Murthy
>
> The console needs a way to associate links with their connection. The 
> router.link's remoteContainer field is no longer available.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to