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
Modifier and TypeMethodDescriptionvoidcloseOpenChannelConnections(ConnectionID connectionId) Closes opened ChannelConnections in case of a resource release.createPartitionRequestClient(ConnectionID connectionId) Creates aPartitionRequestClientinstance for the givenConnectionID.intvoidshutdown()intstart()Starts the internal related components for network connection and communication.
-
Method Details
-
start
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 aPartitionRequestClientinstance for the givenConnectionID.- Throws:
IOExceptionInterruptedException
-
closeOpenChannelConnections
Closes opened ChannelConnections in case of a resource release. -
getNumberOfActiveConnections
int getNumberOfActiveConnections() -
shutdown
- Throws:
IOException
-