Class LocalConnectionManager
java.lang.Object
org.apache.flink.runtime.io.network.LocalConnectionManager
- All Implemented Interfaces:
ConnectionManager
A connection manager implementation to bypass setup overhead for task managers running in local
execution mode.
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
LocalConnectionManager
public LocalConnectionManager()
-
-
Method Details
-
start
public int start()Description copied from interface:ConnectionManagerStarts the internal related components for network connection and communication.- Specified by:
startin interfaceConnectionManager- Returns:
- a port to connect to the task executor for shuffle data exchange, -1 if only local connection is possible.
-
createPartitionRequestClient
Description copied from interface:ConnectionManagerCreates aPartitionRequestClientinstance for the givenConnectionID.- Specified by:
createPartitionRequestClientin interfaceConnectionManager
-
closeOpenChannelConnections
Description copied from interface:ConnectionManagerCloses opened ChannelConnections in case of a resource release.- Specified by:
closeOpenChannelConnectionsin interfaceConnectionManager
-
getNumberOfActiveConnections
public int getNumberOfActiveConnections()- Specified by:
getNumberOfActiveConnectionsin interfaceConnectionManager
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceConnectionManager
-