public class NettyServer extends Object
Modifier and Type | Field and Description |
---|---|
static io.netty.util.AttributeKey<SaslNettyServer> |
CHANNEL_SASL_NETTY_SERVERS
Used to authenticate with netty clients
|
static int |
MAXIMUM_THREAD_POOL_SIZE_DEFAULT
Default maximum thread pool size
|
Constructor and Description |
---|
NettyServer(ImmutableClassesGiraphConfiguration conf,
RequestServerHandler.Factory requestServerHandlerFactory,
TaskInfo myTaskInfo,
org.apache.hadoop.util.Progressable progressable,
SaslServerHandler.Factory saslServerHandlerFactory,
Thread.UncaughtExceptionHandler exceptionHandler)
Constructor for creating the server
|
NettyServer(ImmutableClassesGiraphConfiguration conf,
RequestServerHandler.Factory requestServerHandlerFactory,
TaskInfo myTaskInfo,
org.apache.hadoop.util.Progressable progressable,
Thread.UncaughtExceptionHandler exceptionHandler)
Constructor for creating the server
|
Modifier and Type | Method and Description |
---|---|
InboundByteCounter |
getInByteCounter()
Returns a handle on the in-bound byte counter.
|
String |
getLocalHostOrIp() |
InetSocketAddress |
getMyAddress() |
void |
setFlowControl(FlowControl flowControl)
Inform the server about the flow control policy used in sending requests
|
void |
start()
Start the server with the appropriate port
|
void |
stop()
Stop the server.
|
public static final int MAXIMUM_THREAD_POOL_SIZE_DEFAULT
public static final io.netty.util.AttributeKey<SaslNettyServer> CHANNEL_SASL_NETTY_SERVERS
public NettyServer(ImmutableClassesGiraphConfiguration conf, RequestServerHandler.Factory requestServerHandlerFactory, TaskInfo myTaskInfo, org.apache.hadoop.util.Progressable progressable, Thread.UncaughtExceptionHandler exceptionHandler)
conf
- Configuration to userequestServerHandlerFactory
- Factory for request handlersmyTaskInfo
- Current task infoprogressable
- Progressable for reporting progressexceptionHandler
- handle uncaught exceptionspublic NettyServer(ImmutableClassesGiraphConfiguration conf, RequestServerHandler.Factory requestServerHandlerFactory, TaskInfo myTaskInfo, org.apache.hadoop.util.Progressable progressable, SaslServerHandler.Factory saslServerHandlerFactory, Thread.UncaughtExceptionHandler exceptionHandler)
conf
- Configuration to userequestServerHandlerFactory
- Factory for request handlersmyTaskInfo
- Current task infoprogressable
- Progressable for reporting progresssaslServerHandlerFactory
- Factory for SASL handlersexceptionHandler
- handle uncaught exceptionspublic InboundByteCounter getInByteCounter()
InboundByteCounter
object for this server.public void start()
public void stop()
public InetSocketAddress getMyAddress()
public String getLocalHostOrIp()
public void setFlowControl(FlowControl flowControl)
flowControl
- reference to the flow control usedCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.