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