2 Replies Latest reply on Dec 10, 2010 12:19 AM by girishadat

    Logical Address to Physical Address Mapping

    girishadat

      In Infinispan, do we have some APIs to access the physical address of a node, passing it's local address?

       

      I am developing a framework which uses Infinispan extensively. When a node goes down and comes up, I am expecting it to use the same identification like IP+Port as we had in pre-2.8 version of JGroups in JBossCache. But as we are using latest version of JGroups, I am not able to get the same logical address always; I mean, on restart of a crashed member. I got a way to get current node's Physical address from Transport.

       

      I tried to put the logical address to physical address mapping in cache itself, but the data will not be available for newly added members, say, when I am getting the newly added member from a ViewChanged event in a Listener.

       

      The application need to uniquely identify the node even after a crash  and restart. Or, is there any alternate way other than using the physical  address?

      Cache Started.
      Free Memory : 1949 MB
      Putting...
      100000
      200000
      300000
      400000
      500000
      600000
      700000
      800000
      900000
      1000000
      Put Completed. i=1000000
      Free Memory : 1692 MB
      Removing...
      Remove Completed.
      Free Memory : 1692 MB
      Free Memory : 1949 MB