import javax.inject.Inject;
import javax.inject.Singleton;
import org.opendaylight.genius.datastoreutils.hwvtep.HwvtepClusteredDataTreeChangeListener;
-import org.opendaylight.genius.utils.hwvtep.HwvtepNodeHACache;
+import org.opendaylight.genius.utils.hwvtep.HwvtepHACache;
import org.opendaylight.genius.utils.hwvtep.HwvtepSouthboundConstants;
import org.opendaylight.genius.utils.hwvtep.HwvtepSouthboundUtils;
import org.opendaylight.genius.utils.hwvtep.HwvtepUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-
/**
* Listener for physical locator presence in operational datastore.
*/
@Inject
public HwvtepTerminationPointListener(DataBroker broker, ElanL2GatewayUtils elanL2GatewayUtils,
- ElanClusterUtils elanClusterUtils, L2GatewayCache l2GatewayCache,
- HwvtepNodeHACache hwvtepNodeHACache) {
+ ElanClusterUtils elanClusterUtils, L2GatewayCache l2GatewayCache) {
//super(TerminationPoint.class, HwvtepTerminationPointListener.class, hwvtepNodeHACache);
super(broker, DataTreeIdentifier.create(LogicalDatastoreType.OPERATIONAL,
.child(Topology.class, new TopologyKey(HwvtepSouthboundConstants.HWVTEP_TOPOLOGY_ID)).child(Node.class)
.child(TerminationPoint.class)),
Executors.newListeningSingleThreadExecutor("HwvtepTerminationPointListener", LOG),
- hwvtepNodeHACache);
+ HwvtepHACache.getInstance());
this.broker = broker;
this.txRunner = new ManagedNewTransactionRunnerImpl(broker);
this.elanL2GatewayUtils = elanL2GatewayUtils;