Uploaded image for project: 'ovsdb'
  1. ovsdb
  2. OVSDB-33

OVSDB needs to iterate over all of the OVSBDInventoryListeners

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Resolution: Done
    • unspecified
    • None
    • API
    • None
    • Operating System: Mac OS
      Platform: PC

    Description

      OVSDB seems to inform about inventory changes to just one listener. For example,
      when a row is removed from a table

      OVSDBInventoryListener inventoryListener = (OVSDBInventoryListener)ServiceHelper.getGlobalInstance(OVSDBInventoryListener.class, this);
      inventoryListener.rowRemoved(...)

      Instead it would be more useful if OVSDB informed all of the listeners about
      the inventory changes. For example, the above code could be enhanced to

      Object[] listeners = ServiceHelper.getGlobalInstances(OVSDBInventoryListener.class, this, null);
      OVSDBInventoryListener inventoryListeners[] = Arrays.copyOf(listeners, listeners.length, OVSDBInventoryListener[].class);
      for (OVSDBInventoryListener inventoryListener: inventoryListeners)

      { inventoryListener.rowRemoved(...); }

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            vishpat@gmail.com Vishal Patil
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: