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 Summary
Modifier and TypeMethodDescriptionlongThe creation timestamp of this notifier, it's used to check whether the notifier is timeout.Get the input channel id of the notifier.Get the result partition id of the notifier.Get the view reader of the notifier.voidnotifyPartitionCreated(ResultPartition partition) Notify the partition request listener when the given partition is registered.voidWhen the partition request listener is timeout, it will be notified to sendPartitionNotFoundException.voidRelease this listener.
-
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
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 sendPartitionNotFoundException. -
releaseListener
void releaseListener()Release this listener.
-