Class OpenflowSouthboundPluginBuilder
- java.lang.Object
-
- io.lighty.modules.southbound.openflow.impl.OpenflowSouthboundPluginBuilder
-
public class OpenflowSouthboundPluginBuilder extends Object
Builder forOpenflowSouthboundPlugin.
-
-
Constructor Summary
Constructors Constructor Description OpenflowSouthboundPluginBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenflowSouthboundPluginbuild()Build new instance ofOpenflowSouthboundPluginfromOpenflowSouthboundPluginBuilder.OpenflowSouthboundPluginBuilderfrom(OpenflowpluginConfiguration openflowpluginConfiguration, LightyServices lightyServices)Create new instance ofOpenflowSouthboundPluginBuilderfromOpenflowpluginConfiguration,SwitchConfigandLightyServices.OpenflowSouthboundPluginBuilderwithExecutorService(ExecutorService executorService)Inject executor service to execute futuresOpenflowSouthboundPluginBuilderwithPacketListener(org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingListener ofpPacketListener)Inject Packet Listener, can be used for handling packet-in messages.
-
-
-
Method Detail
-
from
public OpenflowSouthboundPluginBuilder from(OpenflowpluginConfiguration openflowpluginConfiguration, LightyServices lightyServices)
Create new instance ofOpenflowSouthboundPluginBuilderfromOpenflowpluginConfiguration,SwitchConfigandLightyServices.- Parameters:
openflowpluginConfiguration- input openflow configurationlightyServices- services fromLightyController.- Returns:
- instance of
OpenflowSouthboundPluginBuilder.
-
withExecutorService
public OpenflowSouthboundPluginBuilder withExecutorService(ExecutorService executorService)
Inject executor service to execute futures- Parameters:
executorService- instance ofExecutorService.- Returns:
- instance of
OpenflowSouthboundPluginBuilder.
-
withPacketListener
public OpenflowSouthboundPluginBuilder withPacketListener(org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingListener ofpPacketListener)
Inject Packet Listener, can be used for handling packet-in messages.- Parameters:
ofpPacketListener- instance ofPacketProcessingListener.- Returns:
- instance of
OpenflowSouthboundPluginBuilder.
-
build
public OpenflowSouthboundPlugin build()
Build new instance ofOpenflowSouthboundPluginfromOpenflowSouthboundPluginBuilder.- Returns:
- instance of
OpenflowSouthboundPlugin.
-
-