Interface PartitionRequestListener

All Known Implementing Classes:
NettyPartitionRequestListener

public interface PartitionRequestListener
When the netty server receives a downstream task's partition request event and finds its upstream task doesn't register its partition yet, the netty server will construct a PartitionRequestListener and notify the listener when the task deploys itself and registers its partition to ResultPartitionManager.
  • Method Details

    • getCreateTimestamp

      long getCreateTimestamp()
      The creation timestamp of this notifier, it's used to check whether the notifier is timeout.
      Returns:
      the creation timestamp
    • getResultPartitionId

      ResultPartitionID getResultPartitionId()
      Get the result partition id of the notifier.
      Returns:
      the result partition id
    • getViewReader

      NetworkSequenceViewReader getViewReader()
      Get the view reader of the notifier.
      Returns:
      the view reader
    • getReceiverId

      InputChannelID getReceiverId()
      Get the input channel id of the notifier.
      Returns:
      the input channel id
    • notifyPartitionCreated

      void notifyPartitionCreated(ResultPartition partition) throws IOException
      Notify the partition request listener when the given partition is registered.
      Parameters:
      partition - The registered partition.
      Throws:
      IOException
    • notifyPartitionCreatedTimeout

      void notifyPartitionCreatedTimeout()
      When the partition request listener is timeout, it will be notified to send PartitionNotFoundException.
    • releaseListener

      void releaseListener()
      Release this listener.