Class LLDPSpeaker
java.lang.Object
org.opendaylight.openflowplugin.applications.lldpspeaker.LLDPSpeaker
- All Implemented Interfaces:
- AutoCloseable,- Runnable,- NodeConnectorEventsObserver
public class LLDPSpeaker
extends Object
implements NodeConnectorEventsObserver, Runnable, AutoCloseable
Objects of this class send LLDP frames over all flow-capable ports that can
 be discovered through inventory.
- 
Constructor SummaryConstructorsConstructorDescriptionLLDPSpeaker(PacketProcessingService packetProcessingService, ScheduledExecutorService scheduledExecutorService, LldpSpeakerConfig lldpSpeakerConfig, DeviceOwnershipService deviceOwnershipStatusService) LLDPSpeaker(PacketProcessingService packetProcessingService, LldpSpeakerConfig lldpSpeakerConfig, DeviceOwnershipService deviceOwnershipService) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Closes this resource, relinquishing any underlying resources.longvoidnodeConnectorAdded(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<NodeConnector> nodeConnectorInstanceId, FlowCapableNodeConnector flowConnector) This method is called when new node connector is added to inventory or when existing node connector changed it's status to UP.voidnodeConnectorRemoved(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<NodeConnector> nodeConnectorInstanceId) This method is called when some node connector is removed from inventory or when existing node connector changed it's status to DOWN.voidrun()Send LLDPDU frames to all known openflow switch ports.voidsetLldpFloodInterval(long time) voidsetOperationalStatus(OperStatus operationalStatus) 
- 
Constructor Details- 
LLDPSpeakerpublic LLDPSpeaker(PacketProcessingService packetProcessingService, LldpSpeakerConfig lldpSpeakerConfig, DeviceOwnershipService deviceOwnershipService) 
- 
LLDPSpeakerpublic LLDPSpeaker(PacketProcessingService packetProcessingService, ScheduledExecutorService scheduledExecutorService, LldpSpeakerConfig lldpSpeakerConfig, DeviceOwnershipService deviceOwnershipStatusService) 
 
- 
- 
Method Details- 
setOperationalStatus
- 
getOperationalStatus
- 
setLldpFloodIntervalpublic void setLldpFloodInterval(long time) 
- 
getLldpFloodIntervalpublic long getLldpFloodInterval()
- 
closepublic void close()Closes this resource, relinquishing any underlying resources.- Specified by:
- closein interface- AutoCloseable
 
- 
runpublic void run()Send LLDPDU frames to all known openflow switch ports.
- 
nodeConnectorAddedpublic void nodeConnectorAdded(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<NodeConnector> nodeConnectorInstanceId, FlowCapableNodeConnector flowConnector) Description copied from interface:NodeConnectorEventsObserverThis method is called when new node connector is added to inventory or when existing node connector changed it's status to UP. This method can be called multiple times for the same creation event.- Specified by:
- nodeConnectorAddedin interface- NodeConnectorEventsObserver
- Parameters:
- nodeConnectorInstanceId- Object that uniquely identify added node connector
- flowConnector- object containing almost all of details about node connector
 
- 
nodeConnectorRemovedpublic void nodeConnectorRemoved(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<NodeConnector> nodeConnectorInstanceId) Description copied from interface:NodeConnectorEventsObserverThis method is called when some node connector is removed from inventory or when existing node connector changed it's status to DOWN. This method can be called multiple times for the same removal event.- Specified by:
- nodeConnectorRemovedin interface- NodeConnectorEventsObserver
- Parameters:
- nodeConnectorInstanceId- Object that uniquely identify added node connector
 
 
-