Package org.apache.hadoop.oncrpc
Class SimpleUdpServer
java.lang.Object
org.apache.hadoop.oncrpc.SimpleUdpServer
Simple UDP server implemented based on netty.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intstatic final org.slf4j.Loggerprotected final intprotected final io.netty.channel.ChannelInboundHandlerAdapterprotected final int -
Constructor Summary
ConstructorsConstructorDescriptionSimpleUdpServer(int port, io.netty.channel.ChannelInboundHandlerAdapter program, int workerCount) -
Method Summary
-
Field Details
-
LOG
public static final org.slf4j.Logger LOG -
port
protected final int port -
rpcProgram
protected final io.netty.channel.ChannelInboundHandlerAdapter rpcProgram -
workerCount
protected final int workerCount -
boundPort
protected int boundPort
-
-
Constructor Details
-
SimpleUdpServer
public SimpleUdpServer(int port, io.netty.channel.ChannelInboundHandlerAdapter program, int workerCount)
-
-
Method Details
-
run
- Throws:
InterruptedException
-
getBoundPort
public int getBoundPort() -
shutdown
public void shutdown()
-