Class LearningSwitchHandlerSimpleImpl
java.lang.Object
org.opendaylight.openflowplugin.learningswitch.LearningSwitchHandlerSimpleImpl
- All Implemented Interfaces:
org.opendaylight.mdsal.binding.api.NotificationService.Listener<PacketReceived>
,LearningSwitchHandler
public class LearningSwitchHandlerSimpleImpl
extends Object
implements LearningSwitchHandler, org.opendaylight.mdsal.binding.api.NotificationService.Listener<PacketReceived>
Simple Learning Switch implementation which does mac learning for one switch.
-
Constructor Summary
ConstructorDescriptionLearningSwitchHandlerSimpleImpl
(@NonNull FlowCommitWrapper dataStoreAccessor, @NonNull TransmitPacket transmitPacket, @Nullable DataTreeChangeListenerRegistrationHolder registrationPublisher) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onNotification
(PacketReceived notification) void
onSwitchAppeared
(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Table> appearedTablePath) Invoked when a switch appears.
-
Constructor Details
-
LearningSwitchHandlerSimpleImpl
public LearningSwitchHandlerSimpleImpl(@NonNull FlowCommitWrapper dataStoreAccessor, @NonNull TransmitPacket transmitPacket, @Nullable DataTreeChangeListenerRegistrationHolder registrationPublisher)
-
-
Method Details
-
onSwitchAppeared
public void onSwitchAppeared(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Table> appearedTablePath) Description copied from interface:LearningSwitchHandler
Invoked when a switch appears.- Specified by:
onSwitchAppeared
in interfaceLearningSwitchHandler
- Parameters:
appearedTablePath
- the table path
-
onNotification
- Specified by:
onNotification
in interfaceorg.opendaylight.mdsal.binding.api.NotificationService.Listener<PacketReceived>
-