public class NotifyingDataChangeListener extends Object implements AutoCloseable, org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<org.opendaylight.yangtools.yang.binding.DataObject>
Modifier and Type | Field and Description |
---|---|
static int |
BIT_ALL |
static int |
BIT_CREATE |
static int |
BIT_DELETE |
static int |
BIT_UPDATE |
Constructor and Description |
---|
NotifyingDataChangeListener(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType type,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> iid,
List<NotifyingDataChangeListener> waitList)
Create a new NotifyingDataChangeListener
|
NotifyingDataChangeListener(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType type,
int mask,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> iid,
List<NotifyingDataChangeListener> waitList) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
close() |
boolean |
isCreated(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> iid) |
boolean |
isRemoved(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> iid) |
boolean |
isUpdated(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> iid) |
void |
modify(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType type,
org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> iid)
Completely reset the state of this NotifyingDataChangeListener.
|
void |
onDataTreeChanged(Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<org.opendaylight.yangtools.yang.binding.DataObject>> changes) |
void |
registerDataChangeListener(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker) |
void |
setlisten(Boolean listen) |
void |
setMask(int mask) |
void |
waitForCreation() |
void |
waitForCreation(long timeout) |
void |
waitForDeletion() |
void |
waitForDeletion(long timeout) |
void |
waitForUpdate() |
void |
waitForUpdate(long timeout) |
public static final int BIT_CREATE
public static final int BIT_UPDATE
public static final int BIT_DELETE
public static final int BIT_ALL
public NotifyingDataChangeListener(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType type, int mask, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> iid, List<NotifyingDataChangeListener> waitList)
public NotifyingDataChangeListener(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType type, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> iid, List<NotifyingDataChangeListener> waitList)
type
- DataStore typeiid
- of the md-sal object we're waiting forwaitList
- for tracking outstanding changespublic void modify(org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType type, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> iid) throws Exception
type
- DataStore typeiid
- of the md-sal object we're waiting forException
public void setlisten(Boolean listen)
public void setMask(int mask)
public void onDataTreeChanged(Collection<org.opendaylight.controller.md.sal.binding.api.DataTreeModification<org.opendaylight.yangtools.yang.binding.DataObject>> changes)
onDataTreeChanged
in interface org.opendaylight.controller.md.sal.binding.api.DataTreeChangeListener<org.opendaylight.yangtools.yang.binding.DataObject>
public boolean isCreated(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> iid)
public boolean isUpdated(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> iid)
public boolean isRemoved(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> iid)
public void clear()
public void registerDataChangeListener(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker)
public void waitForCreation() throws InterruptedException
InterruptedException
public void waitForCreation(long timeout) throws InterruptedException
InterruptedException
public void waitForUpdate() throws InterruptedException
InterruptedException
public void waitForUpdate(long timeout) throws InterruptedException
InterruptedException
public void waitForDeletion() throws InterruptedException
InterruptedException
public void waitForDeletion(long timeout) throws InterruptedException
InterruptedException
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2018 OpenDaylight. All rights reserved.