public class LLDPSpeaker extends Object implements NodeConnectorEventsObserver, Runnable, AutoCloseable
Constructor and Description |
---|
LLDPSpeaker(PacketProcessingService packetProcessingService,
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress addressDestionation,
org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService entityOwnershipService) |
LLDPSpeaker(PacketProcessingService packetProcessingService,
ScheduledExecutorService scheduledExecutorService,
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress addressDestionation,
org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService entityOwnershipService) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this resource, relinquishing any underlying resources.
|
long |
getLldpFloodInterval() |
OperStatus |
getOperationalStatus() |
void |
nodeConnectorAdded(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.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.
|
void |
nodeConnectorRemoved(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.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.
|
void |
run()
Send LLDPDU frames to all known openflow switch ports.
|
void |
setLldpFloodInterval(long time) |
void |
setOperationalStatus(OperStatus operationalStatus) |
public LLDPSpeaker(PacketProcessingService packetProcessingService, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress addressDestionation, org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService entityOwnershipService)
public LLDPSpeaker(PacketProcessingService packetProcessingService, ScheduledExecutorService scheduledExecutorService, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress addressDestionation, org.opendaylight.mdsal.eos.binding.api.EntityOwnershipService entityOwnershipService)
public void setOperationalStatus(OperStatus operationalStatus)
public OperStatus getOperationalStatus()
public void setLldpFloodInterval(long time)
public long getLldpFloodInterval()
public void close()
close
in interface AutoCloseable
public void run()
public void nodeConnectorAdded(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.NodeConnector> nodeConnectorInstanceId, FlowCapableNodeConnector flowConnector)
nodeConnectorAdded
in interface NodeConnectorEventsObserver
nodeConnectorInstanceId
- Object that uniquely identify added node connectorflowConnector
- object containing almost all of details about node connectorpublic void nodeConnectorRemoved(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.NodeConnector> nodeConnectorInstanceId)
nodeConnectorRemoved
in interface NodeConnectorEventsObserver
nodeConnectorInstanceId
- Object that uniquely identify added node connectorCopyright © 2018 OpenDaylight. All rights reserved.