Class ControllerNotifyingDataChangeListener
- java.lang.Object
-
- org.opendaylight.ovsdb.utils.mdsal.utils.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.
-
-
Field Summary
Fields Modifier and Type Field Description static int
BIT_ALL
Deprecated.static int
BIT_CREATE
Deprecated.static int
BIT_DELETE
Deprecated.static int
BIT_UPDATE
Deprecated.
-
Constructor Summary
Constructors Constructor Description 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(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.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
clear()
Deprecated.void
close()
Deprecated.boolean
isCreated(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> path)
Deprecated.boolean
isRemoved(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> path)
Deprecated.boolean
isUpdated(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> path)
Deprecated.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.void
onDataTreeChanged(Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<org.opendaylight.yangtools.yang.binding.DataObject>> changes)
Deprecated.void
registerDataChangeListener(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)
Deprecated.void
setlisten(boolean value)
Deprecated.void
setMask(int mask)
Deprecated.void
waitForCreation()
Deprecated.void
waitForCreation(long timeout)
Deprecated.void
waitForDeletion()
Deprecated.void
waitForDeletion(long timeout)
Deprecated.void
waitForUpdate()
Deprecated.void
waitForUpdate(long timeout)
Deprecated.
-
-
-
Field Detail
-
BIT_CREATE
public static final int BIT_CREATE
Deprecated.- See Also:
- Constant Field Values
-
BIT_UPDATE
public static final int BIT_UPDATE
Deprecated.- See Also:
- Constant Field Values
-
BIT_DELETE
public static final int BIT_DELETE
Deprecated.- See Also:
- Constant Field Values
-
BIT_ALL
public static final int BIT_ALL
Deprecated.- See Also:
- Constant Field Values
-
-
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 typeiid
- of the md-sal object we're waiting forwaitList
- 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 typenewIid
- 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 interfaceorg.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.
-
waitForCreation
public void waitForCreation() throws InterruptedException
Deprecated.- Throws:
InterruptedException
-
waitForCreation
public void waitForCreation(long timeout) throws InterruptedException
Deprecated.- Throws:
InterruptedException
-
waitForUpdate
public void waitForUpdate() throws InterruptedException
Deprecated.- Throws:
InterruptedException
-
waitForUpdate
public void waitForUpdate(long timeout) throws InterruptedException
Deprecated.- Throws:
InterruptedException
-
waitForDeletion
public void waitForDeletion() throws InterruptedException
Deprecated.- Throws:
InterruptedException
-
waitForDeletion
public void waitForDeletion(long timeout) throws InterruptedException
Deprecated.- Throws:
InterruptedException
-
close
public void close()
Deprecated.- Specified by:
close
in interfaceAutoCloseable
-
-