Class LearningSwitchHandlerSimpleImpl
- java.lang.Object
-
- org.opendaylight.openflowplugin.learningswitch.LearningSwitchHandlerSimpleImpl
-
- All Implemented Interfaces:
EventListener,LearningSwitchHandler,PacketProcessingListener,org.opendaylight.yangtools.yang.binding.NotificationListener
public class LearningSwitchHandlerSimpleImpl extends Object implements LearningSwitchHandler, PacketProcessingListener
Simple Learning Switch implementation which does mac learning for one switch.
-
-
Constructor Summary
Constructors Constructor Description LearningSwitchHandlerSimpleImpl(@NonNull FlowCommitWrapper dataStoreAccessor, @NonNull PacketProcessingService packetProcessingService, @Nullable DataTreeChangeListenerRegistrationHolder registrationPublisher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonPacketReceived(PacketReceived notification)voidonSwitchAppeared(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Table> appearedTablePath)Invoked when a switch appears.
-
-
-
Constructor Detail
-
LearningSwitchHandlerSimpleImpl
public LearningSwitchHandlerSimpleImpl(@NonNull FlowCommitWrapper dataStoreAccessor, @NonNull PacketProcessingService packetProcessingService, @Nullable DataTreeChangeListenerRegistrationHolder registrationPublisher)
-
-
Method Detail
-
onSwitchAppeared
public void onSwitchAppeared(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Table> appearedTablePath)
Description copied from interface:LearningSwitchHandlerInvoked when a switch appears.- Specified by:
onSwitchAppearedin interfaceLearningSwitchHandler- Parameters:
appearedTablePath- the table path
-
onPacketReceived
public void onPacketReceived(PacketReceived notification)
- Specified by:
onPacketReceivedin interfacePacketProcessingListener
-
-