Interface ConnectionManager
-
- All Known Implementing Classes:
LocalConnectionManager
,NettyConnectionManager
public interface ConnectionManager
The connection manager manages physical connections for the (logical) remote input channels at runtime.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
closeOpenChannelConnections(ConnectionID connectionId)
Closes opened ChannelConnections in case of a resource release.PartitionRequestClient
createPartitionRequestClient(ConnectionID connectionId)
Creates aPartitionRequestClient
instance for the givenConnectionID
.int
getNumberOfActiveConnections()
void
shutdown()
int
start()
Starts the internal related components for network connection and communication.
-
-
-
Method Detail
-
start
int start() throws IOException
Starts the internal related components for network connection and communication.- Returns:
- a port to connect to the task executor for shuffle data exchange, -1 if only local connection is possible.
- Throws:
IOException
-
createPartitionRequestClient
PartitionRequestClient createPartitionRequestClient(ConnectionID connectionId) throws IOException, InterruptedException
Creates aPartitionRequestClient
instance for the givenConnectionID
.- Throws:
IOException
InterruptedException
-
closeOpenChannelConnections
void closeOpenChannelConnections(ConnectionID connectionId)
Closes opened ChannelConnections in case of a resource release.
-
getNumberOfActiveConnections
int getNumberOfActiveConnections()
-
shutdown
void shutdown() throws IOException
- Throws:
IOException
-
-