Interface PartitionRequestListener
-
- All Known Implementing Classes:
NettyPartitionRequestListener
public interface PartitionRequestListenerWhen 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 aPartitionRequestListenerand notify the listener when the task deploys itself and registers its partition toResultPartitionManager.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetCreateTimestamp()The creation timestamp of this notifier, it's used to check whether the notifier is timeout.InputChannelIDgetReceiverId()Get the input channel id of the notifier.ResultPartitionIDgetResultPartitionId()Get the result partition id of the notifier.NetworkSequenceViewReadergetViewReader()Get the view reader of the notifier.voidnotifyPartitionCreated(ResultPartition partition)Notify the partition request listener when the given partition is registered.voidnotifyPartitionCreatedTimeout()When the partition request listener is timeout, it will be notified to sendPartitionNotFoundException.voidreleaseListener()Release this listener.
-
-
-
Method Detail
-
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 sendPartitionNotFoundException.
-
releaseListener
void releaseListener()
Release this listener.
-
-