Class ConnectionID
- java.lang.Object
-
- org.apache.flink.runtime.io.network.ConnectionID
-
- All Implemented Interfaces:
Serializable
public class ConnectionID extends Object implements Serializable
AConnectionID
identifies a connection to a remote task manager by the socket address and a connection index. This allows multiple connections to the same task manager to be distinguished by their connection index.The connection index is assigned by the
IntermediateResult
and ensures that it is safe to multiplex multiple data transfers over the same physical TCP connection.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConnectionID(ResourceID resourceID, InetSocketAddress address, int connectionIndex)
ConnectionID(TaskManagerLocation connectionInfo, int connectionIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object other)
InetSocketAddress
getAddress()
int
getConnectionIndex()
ResourceID
getResourceID()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
ConnectionID
public ConnectionID(TaskManagerLocation connectionInfo, int connectionIndex)
-
ConnectionID
public ConnectionID(ResourceID resourceID, InetSocketAddress address, int connectionIndex)
-
-
Method Detail
-
getResourceID
public ResourceID getResourceID()
-
getAddress
public InetSocketAddress getAddress()
-
getConnectionIndex
public int getConnectionIndex()
-
-