X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fhosttracker%2Fimplementation%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fhosttracker%2Finternal%2FActivator.java;h=e60b02d83b881a06f215644d7af8216369921357;hb=c5630f2945eb5370f9829514ef72de41d41eb2be;hp=65cb8225c856ef9d5c0a693284e3266e72c0a2ae;hpb=9c8108faabf300747a2a5529dc7a8ef76e79c2bc;p=controller.git diff --git a/opendaylight/hosttracker/implementation/src/main/java/org/opendaylight/controller/hosttracker/internal/Activator.java b/opendaylight/hosttracker/implementation/src/main/java/org/opendaylight/controller/hosttracker/internal/Activator.java index 65cb8225c8..e60b02d83b 100644 --- a/opendaylight/hosttracker/implementation/src/main/java/org/opendaylight/controller/hosttracker/internal/Activator.java +++ b/opendaylight/hosttracker/implementation/src/main/java/org/opendaylight/controller/hosttracker/internal/Activator.java @@ -8,7 +8,13 @@ package org.opendaylight.controller.hosttracker.internal; +import java.util.Dictionary; +import java.util.HashSet; +import java.util.Hashtable; +import java.util.Set; + import org.apache.felix.dm.Component; +import org.opendaylight.controller.clustering.services.ICacheUpdateAware; import org.opendaylight.controller.clustering.services.IClusterContainerServices; import org.opendaylight.controller.hosttracker.IfHostListener; import org.opendaylight.controller.hosttracker.IfIptoHost; @@ -74,13 +80,19 @@ public class Activator extends ComponentActivatorAbstractBase { */ public void configureInstance(Component c, Object imp, String containerName) { if (imp.equals(HostTracker.class)) { + Dictionary props = new Hashtable(); + Set propSet = new HashSet(); + propSet.add(HostTracker.ACTIVE_HOST_CACHE); + props.put("cachenames", propSet); + // export the service c.setInterface( new String[] { ISwitchManagerAware.class.getName(), IInventoryListener.class.getName(), IfIptoHost.class.getName(), IfHostListener.class.getName(), - ITopologyManagerAware.class.getName() }, null); + ITopologyManagerAware.class.getName(), + ICacheUpdateAware.class.getName() }, props); c.add(createContainerServiceDependency(containerName) .setService(ISwitchManager.class)