Class NodeConnectorInventoryEventTranslator<T extends org.opendaylight.yangtools.yang.binding.DataObject>

java.lang.Object
org.opendaylight.openflowplugin.applications.lldpspeaker.NodeConnectorInventoryEventTranslator<T>
All Implemented Interfaces:
AutoCloseable, EventListener, org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener<T>, org.opendaylight.mdsal.binding.api.DataTreeChangeListener<T>

public final class NodeConnectorInventoryEventTranslator<T extends org.opendaylight.yangtools.yang.binding.DataObject> extends Object implements org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener<T>, AutoCloseable
NodeConnectorInventoryEventTranslator is listening for changes in inventory operational DOM tree and update LLDPSpeaker and topology.
  • Constructor Details

    • NodeConnectorInventoryEventTranslator

      public NodeConnectorInventoryEventTranslator(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, NodeConnectorEventsObserver... observers)
  • Method Details

    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • onDataTreeChanged

      public void onDataTreeChanged(@NonNull Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<T>> modifications)
      Specified by:
      onDataTreeChanged in interface org.opendaylight.mdsal.binding.api.DataTreeChangeListener<T extends org.opendaylight.yangtools.yang.binding.DataObject>