@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 and Description |
---|
LLDPLinkAger(TopologyLldpDiscoveryConfig topologyLldpDiscoveryConfig,
org.opendaylight.controller.sal.binding.api.NotificationProviderService notificationService,
ConfigurationService configurationService,
org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService entityOwnershipService,
org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
default ctor - start timer.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected boolean |
isLinkPresent(LinkDiscovered linkDiscovered) |
boolean |
isLinkToDateEmpty() |
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) |
void |
onPropertyChanged(String propertyName,
String propertyValue)
Method invoked on configuration property change.
|
void |
put(LinkDiscovered link) |
@Inject public LLDPLinkAger(TopologyLldpDiscoveryConfig topologyLldpDiscoveryConfig, org.opendaylight.controller.sal.binding.api.NotificationProviderService notificationService, ConfigurationService configurationService, org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService entityOwnershipService, org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
public void put(LinkDiscovered link)
@PreDestroy public void close() throws Exception
close
in interface AutoCloseable
Exception
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)
onDataTreeChanged
in interface org.opendaylight.mdsal.binding.api.DataTreeChangeListener<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Link>
public boolean isLinkToDateEmpty()
public void onPropertyChanged(@Nonnull String propertyName, @Nonnull String propertyValue)
ConfigurationListener
onPropertyChanged
in interface ConfigurationListener
propertyName
- the property namepropertyValue
- the property valueprotected boolean isLinkPresent(LinkDiscovered linkDiscovered)
Copyright © 2019 OpenDaylight. All rights reserved.