Class PCEPDispatcherImpl
java.lang.Object
org.opendaylight.protocol.pcep.impl.PCEPDispatcherImpl
- All Implemented Interfaces:
Closeable,AutoCloseable,org.opendaylight.protocol.pcep.PCEPDispatcher
public class PCEPDispatcherImpl
extends Object
implements org.opendaylight.protocol.pcep.PCEPDispatcher, Closeable
Implementation of PCEPDispatcher.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static interface -
Constructor Summary
ConstructorsConstructorDescriptionPCEPDispatcherImpl(@NonNull org.opendaylight.protocol.pcep.spi.MessageRegistry registry, @NonNull org.opendaylight.protocol.pcep.PCEPSessionNegotiatorFactory<PCEPSessionImpl> negotiatorFactory, @NonNull io.netty.channel.EventLoopGroup bossGroup, @NonNull io.netty.channel.EventLoopGroup workerGroup) Creates an instance of PCEPDispatcherImpl, gets the default selector and opens it. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidclose()final io.netty.channel.ChannelFuturecreateServer(org.opendaylight.protocol.pcep.PCEPDispatcherDependencies dispatcherDependencies) final org.opendaylight.protocol.pcep.PCEPSessionNegotiatorFactory<PCEPSessionImpl>
-
Constructor Details
-
PCEPDispatcherImpl
public PCEPDispatcherImpl(@NonNull org.opendaylight.protocol.pcep.spi.MessageRegistry registry, @NonNull org.opendaylight.protocol.pcep.PCEPSessionNegotiatorFactory<PCEPSessionImpl> negotiatorFactory, @NonNull io.netty.channel.EventLoopGroup bossGroup, @NonNull io.netty.channel.EventLoopGroup workerGroup) Creates an instance of PCEPDispatcherImpl, gets the default selector and opens it.- Parameters:
registry- a message registrynegotiatorFactory- a negotiation factorybossGroup- accepts an incoming connectionworkerGroup- handles the traffic of accepted connection
-
-
Method Details
-
createServer
public final io.netty.channel.ChannelFuture createServer(org.opendaylight.protocol.pcep.PCEPDispatcherDependencies dispatcherDependencies) - Specified by:
createServerin interfaceorg.opendaylight.protocol.pcep.PCEPDispatcher
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getPCEPSessionNegotiatorFactory
public final org.opendaylight.protocol.pcep.PCEPSessionNegotiatorFactory<PCEPSessionImpl> getPCEPSessionNegotiatorFactory()- Specified by:
getPCEPSessionNegotiatorFactoryin interfaceorg.opendaylight.protocol.pcep.PCEPDispatcher
-