Package org.apache.flink.runtime.shuffle
Class ProducerDescriptor
- java.lang.Object
-
- org.apache.flink.runtime.shuffle.ProducerDescriptor
-
public class ProducerDescriptor extends Object
Partition producer descriptor forShuffleMaster
to obtainShuffleDescriptor
.The producer descriptor contains general producer specific information relevant for the shuffle service: the producer location as
ResourceID
,ExecutionAttemptID
and the network connection information for shuffle data exchange (address and port).
-
-
Constructor Summary
Constructors Constructor Description ProducerDescriptor(ResourceID producerLocation, ExecutionAttemptID producerExecutionId, InetAddress address, int dataPort)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProducerDescriptor
create(TaskManagerLocation producerLocation, ExecutionAttemptID attemptId)
InetAddress
getAddress()
int
getDataPort()
ExecutionAttemptID
getProducerExecutionId()
ResourceID
getProducerLocation()
-
-
-
Constructor Detail
-
ProducerDescriptor
@VisibleForTesting public ProducerDescriptor(ResourceID producerLocation, ExecutionAttemptID producerExecutionId, InetAddress address, int dataPort)
-
-
Method Detail
-
getProducerLocation
public ResourceID getProducerLocation()
-
getProducerExecutionId
public ExecutionAttemptID getProducerExecutionId()
-
getAddress
public InetAddress getAddress()
-
getDataPort
public int getDataPort()
-
create
public static ProducerDescriptor create(TaskManagerLocation producerLocation, ExecutionAttemptID attemptId)
-
-