Class UdpHandler
- java.lang.Object
- 
- org.opendaylight.openflowjava.protocol.impl.core.UdpHandler
 
- 
- All Implemented Interfaces:
- Runnable,- OnlineProvider,- ServerFacade,- ShutdownProvider
 
 public final class UdpHandler extends Object implements ServerFacade Class implementing server over UDP for handling incoming connections.- Author:
- michal.polkorab
 
- 
- 
Constructor SummaryConstructors Constructor Description UdpHandler(int port, Runnable readyRunnable)Constructor of UdpHandler that listens on selected port.UdpHandler(InetAddress address, int port, Runnable readyRunnable)Constructor of UdpHandler that listens on selected address and port.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.util.concurrent.ListenableFuture<Boolean>getIsOnlineFuture()intgetPort()protected voidinitiateEpollEventLoopGroups(ThreadConfiguration threadConfiguration)Initiate Epoll event loop groups with Nio as fall back.voidinitiateEventLoopGroups(ThreadConfiguration threadConfiguration, boolean isEpollEnabled)Initiate event loop groups.voidinitiateNioEventLoopGroups(ThreadConfiguration threadConfiguration)Initiate Nio event loop groups.voidrun()voidsetChannelInitializer(UdpChannelInitializer channelInitializer)voidsetThreadConfig(ThreadConfiguration threadConfig)Sets thread configuration.com.google.common.util.concurrent.ListenableFuture<Boolean>shutdown()
 
- 
- 
- 
Constructor Detail- 
UdpHandlerpublic UdpHandler(int port, Runnable readyRunnable)Constructor of UdpHandler that listens on selected port.- Parameters:
- port- listening port of UdpHandler server
 
 - 
UdpHandlerpublic UdpHandler(InetAddress address, int port, Runnable readyRunnable) Constructor of UdpHandler that listens on selected address and port.- Parameters:
- address- listening address of UdpHandler server
- port- listening port of UdpHandler server
 
 
- 
 - 
Method Detail- 
shutdownpublic com.google.common.util.concurrent.ListenableFuture<Boolean> shutdown() - Specified by:
- shutdownin interface- ShutdownProvider
 
 - 
getIsOnlineFuturepublic com.google.common.util.concurrent.ListenableFuture<Boolean> getIsOnlineFuture() - Specified by:
- getIsOnlineFuturein interface- OnlineProvider
 
 - 
getPortpublic int getPort() 
 - 
setChannelInitializerpublic void setChannelInitializer(UdpChannelInitializer channelInitializer) 
 - 
setThreadConfigpublic void setThreadConfig(ThreadConfiguration threadConfig) Description copied from interface:ServerFacadeSets thread configuration.- Specified by:
- setThreadConfigin interface- ServerFacade
- Parameters:
- threadConfig- desired thread configuration
 
 - 
initiateEventLoopGroupspublic void initiateEventLoopGroups(ThreadConfiguration threadConfiguration, boolean isEpollEnabled) Initiate event loop groups.- Parameters:
- threadConfiguration- number of threads to be created, if not specified in threadConfig
 
 - 
initiateNioEventLoopGroupspublic void initiateNioEventLoopGroups(ThreadConfiguration threadConfiguration) Initiate Nio event loop groups.- Parameters:
- threadConfiguration- number of threads to be created, if not specified in threadConfig
 
 - 
initiateEpollEventLoopGroupsprotected void initiateEpollEventLoopGroups(ThreadConfiguration threadConfiguration) Initiate Epoll event loop groups with Nio as fall back.- Parameters:
- threadConfiguration- the ThreadConfiguration
 
 
- 
 
-