Class LLDPLinkAger
- java.lang.Object
-
- org.opendaylight.openflowplugin.applications.topology.lldp.LLDPLinkAger
-
- All Implemented Interfaces:
AutoCloseable,EventListener,org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Link>,org.opendaylight.mdsal.binding.api.DataTreeChangeListener<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Link>,ConfigurationListener
@Singleton public class LLDPLinkAger extends Object implements ConfigurationListener, org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Link>, AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description LLDPLinkAger(TopologyLldpDiscoveryConfig topologyLldpDiscoveryConfig, org.opendaylight.mdsal.binding.api.NotificationPublishService notificationService, ConfigurationService configurationService, org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService entityOwnershipService, org.opendaylight.mdsal.binding.api.DataBroker dataBroker)default ctor - start timer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected booleanisLinkPresent(LinkDiscovered linkDiscovered)booleanisLinkToDateEmpty()voidonDataTreeChanged(@NonNull Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Link>> changes)voidonPropertyChanged(@NonNull String propertyName, @NonNull String propertyValue)Method invoked on configuration property change.voidput(LinkDiscovered link)
-
-
-
Constructor Detail
-
LLDPLinkAger
@Inject public LLDPLinkAger(TopologyLldpDiscoveryConfig topologyLldpDiscoveryConfig, org.opendaylight.mdsal.binding.api.NotificationPublishService notificationService, ConfigurationService configurationService, org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService entityOwnershipService, org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
default ctor - start timer.
-
-
Method Detail
-
put
public void put(LinkDiscovered link)
-
close
@PreDestroy public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
onDataTreeChanged
public void onDataTreeChanged(@NonNull Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Link>> changes)
- Specified by:
onDataTreeChangedin interfaceorg.opendaylight.mdsal.binding.api.DataTreeChangeListener<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Link>
-
isLinkToDateEmpty
public boolean isLinkToDateEmpty()
-
onPropertyChanged
public void onPropertyChanged(@NonNull String propertyName, @NonNull String propertyValue)
Description copied from interface:ConfigurationListenerMethod invoked on configuration property change.- Specified by:
onPropertyChangedin interfaceConfigurationListener- Parameters:
propertyName- the property namepropertyValue- the property value
-
isLinkPresent
protected boolean isLinkPresent(LinkDiscovered linkDiscovered)
-
-