|
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(...);
}
|