package org.opendaylight.genius.datastoreutils.hwvtep;
import java.util.concurrent.ExecutorService;
-import org.opendaylight.genius.utils.hwvtep.HwvtepNodeHACache;
+import org.opendaylight.genius.utils.hwvtep.HwvtepHACache;
import org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener;
import org.opendaylight.mdsal.binding.api.DataBroker;
import org.opendaylight.mdsal.binding.api.DataTreeIdentifier;
T extends DataObject, K extends ClusteredDataTreeChangeListener<T>>
extends AbstractClusteredAsyncDataTreeChangeListener<T> {
- private final HwvtepNodeHACache hwvtepNodeHACache;
+ private final HwvtepHACache hwvtepHACache;
public HwvtepClusteredDataTreeChangeListener(DataBroker dataBroker, DataTreeIdentifier dataTreeIdentifier,
- ExecutorService executorService, HwvtepNodeHACache hwvtepNodeHACache) {
+ ExecutorService executorService, HwvtepHACache hwvtepHACache) {
super(dataBroker, dataTreeIdentifier, executorService);
- this.hwvtepNodeHACache = hwvtepNodeHACache;
+ this.hwvtepHACache = hwvtepHACache;
}
@Override
public void remove(InstanceIdentifier<T> identifier, T del) {
- if (hwvtepNodeHACache.isHAEnabledDevice(identifier)) {
+ if (hwvtepHACache.isHAEnabledDevice(identifier)) {
return;
}
removed(identifier,del);
@Override
public void update(InstanceIdentifier<T> identifier, T original, T update) {
- if (hwvtepNodeHACache.isHAEnabledDevice(identifier)) {
+ if (hwvtepHACache.isHAEnabledDevice(identifier)) {
return;
}
updated(identifier,original, update);
@Override
public void add(InstanceIdentifier<T> identifier, T add) {
- if (hwvtepNodeHACache.isHAEnabledDevice(identifier)) {
+ if (hwvtepHACache.isHAEnabledDevice(identifier)) {
return;
}
added(identifier, add);