Interface ConnectionManager
-
- All Known Implementing Classes:
LocalConnectionManager,NettyConnectionManager
public interface ConnectionManagerThe 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 voidcloseOpenChannelConnections(ConnectionID connectionId)Closes opened ChannelConnections in case of a resource release.PartitionRequestClientcreatePartitionRequestClient(ConnectionID connectionId)Creates aPartitionRequestClientinstance for the givenConnectionID.intgetNumberOfActiveConnections()voidshutdown()intstart()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 aPartitionRequestClientinstance for the givenConnectionID.- Throws:
IOExceptionInterruptedException
-
closeOpenChannelConnections
void closeOpenChannelConnections(ConnectionID connectionId)
Closes opened ChannelConnections in case of a resource release.
-
getNumberOfActiveConnections
int getNumberOfActiveConnections()
-
shutdown
void shutdown() throws IOException- Throws:
IOException
-
-