Class ControllerNotifyingDataChangeListener

  • All Implemented Interfaces:
    AutoCloseable, EventListener, org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<org.opendaylight.yangtools.yang.binding.DataObject>

    @Deprecated
    public class ControllerNotifyingDataChangeListener
    extends Object
    implements AutoCloseable, org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<org.opendaylight.yangtools.yang.binding.DataObject>
    Deprecated.
    This class provides methods for checking or waiting for various md-sal operations to complete. Once an instance is created one must invoke the registerDataChangeListener method with a DataBroker.
    • Constructor Detail

      • ControllerNotifyingDataChangeListener

        public ControllerNotifyingDataChangeListener​(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType type,
                                                     int mask,
                                                     org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> iid,
                                                     List<ControllerNotifyingDataChangeListener> waitList)
        Deprecated.
      • ControllerNotifyingDataChangeListener

        public ControllerNotifyingDataChangeListener​(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType type,
                                                     org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> iid,
                                                     List<ControllerNotifyingDataChangeListener> waitList)
        Deprecated.
        Create a new ControllerNotifyingDataChangeListener.
        Parameters:
        type - DataStore type
        iid - of the md-sal object we're waiting for
        waitList - for tracking outstanding changes
    • Method Detail

      • modify

        public void modify​(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType newType,
                           org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> newIid)
        Deprecated.
        Completely reset the state of this ControllerNotifyingDataChangeListener.
        Parameters:
        newType - DataStore type
        newIid - of the md-sal object we're waiting for
      • setlisten

        public void setlisten​(boolean value)
        Deprecated.
      • setMask

        public void setMask​(int mask)
        Deprecated.
      • onDataTreeChanged

        public void onDataTreeChanged​(Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<org.opendaylight.yangtools.yang.binding.DataObject>> changes)
        Deprecated.
        Specified by:
        onDataTreeChanged in interface org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<org.opendaylight.yangtools.yang.binding.DataObject>
      • isCreated

        public boolean isCreated​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> path)
        Deprecated.
      • isUpdated

        public boolean isUpdated​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> path)
        Deprecated.
      • isRemoved

        public boolean isRemoved​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> path)
        Deprecated.
      • clear

        public void clear()
        Deprecated.
      • registerDataChangeListener

        public void registerDataChangeListener​(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)
        Deprecated.
      • close

        public void close()
        Deprecated.
        Specified by:
        close in interface AutoCloseable