public class NettyConnectionManager extends Object implements ConnectionManager
| Constructor and Description |
|---|
NettyConnectionManager(NettyConfig nettyConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeOpenChannelConnections(ConnectionID connectionId)
Closes opened ChannelConnections in case of a resource release
|
PartitionRequestClient |
createPartitionRequestClient(ConnectionID connectionId)
Creates a
PartitionRequestClient instance for the given ConnectionID. |
int |
getNumberOfActiveConnections() |
void |
shutdown() |
void |
start(ResultPartitionProvider partitionProvider,
TaskEventDispatcher taskEventDispatcher,
NetworkBufferPool networkbufferPool) |
public NettyConnectionManager(NettyConfig nettyConfig)
public void start(ResultPartitionProvider partitionProvider, TaskEventDispatcher taskEventDispatcher, NetworkBufferPool networkbufferPool) throws IOException
start in interface ConnectionManagerIOExceptionpublic PartitionRequestClient createPartitionRequestClient(ConnectionID connectionId) throws IOException, InterruptedException
ConnectionManagerPartitionRequestClient instance for the given ConnectionID.createPartitionRequestClient in interface ConnectionManagerIOExceptionInterruptedExceptionpublic void closeOpenChannelConnections(ConnectionID connectionId)
ConnectionManagercloseOpenChannelConnections in interface ConnectionManagerpublic int getNumberOfActiveConnections()
getNumberOfActiveConnections in interface ConnectionManagerpublic void shutdown()
shutdown in interface ConnectionManagerCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.