import java.util.List;
import org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType;
+import org.opendaylight.ovsdb.utils.mdsal.utils.ControllerNotifyingDataChangeListener;
import org.opendaylight.ovsdb.utils.mdsal.utils.NotifyingDataChangeListener;
import org.opendaylight.ovsdb.utils.southbound.utils.SouthboundUtils;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.ovsdb.node.attributes.ConnectionInfo;
public long datapathId;
public Node ovsdbNode;
public Node bridgeNode;
- private NotifyingDataChangeListener ovsdbWaiter;
- private NotifyingDataChangeListener bridgeWaiter;
- private final List<NotifyingDataChangeListener> waitList;
+ private ControllerNotifyingDataChangeListener ovsdbWaiter;
+ private ControllerNotifyingDataChangeListener bridgeWaiter;
+ private final List<ControllerNotifyingDataChangeListener> waitList;
private final OvsdbItUtils itUtils;
/**
* @param itUtils OvsdbItUtils instance
* @param waitList for tracking outstanding md-sal events
*/
- NodeInfo(ConnectionInfo connectionInfo, OvsdbItUtils itUtils, List<NotifyingDataChangeListener> waitList) {
+ NodeInfo(ConnectionInfo connectionInfo, OvsdbItUtils itUtils,
+ List<ControllerNotifyingDataChangeListener> waitList) {
this.connectionInfo = connectionInfo;
this.itUtils = itUtils;
this.waitList = waitList;
}
private void addWaiters() {
- ovsdbWaiter = new NotifyingDataChangeListener(LogicalDatastoreType.OPERATIONAL,
- NotifyingDataChangeListener.BIT_CREATE, ovsdbIid, waitList);
+ ovsdbWaiter = new ControllerNotifyingDataChangeListener(LogicalDatastoreType.OPERATIONAL,
+ ControllerNotifyingDataChangeListener.BIT_CREATE, ovsdbIid, waitList);
ovsdbWaiter.registerDataChangeListener(itUtils.dataBroker);
- bridgeWaiter = new NotifyingDataChangeListener(LogicalDatastoreType.OPERATIONAL,
- NotifyingDataChangeListener.BIT_CREATE, bridgeIid, waitList);
+ bridgeWaiter = new ControllerNotifyingDataChangeListener(LogicalDatastoreType.OPERATIONAL,
+ ControllerNotifyingDataChangeListener.BIT_CREATE, bridgeIid, waitList);
bridgeWaiter.registerDataChangeListener(itUtils.dataBroker);
}