Interface PartitionTracker<K,M>
- All Known Subinterfaces:
JobMasterPartitionTracker,TaskExecutorPartitionTracker
- All Known Implementing Classes:
AbstractPartitionTracker,JobMasterPartitionTrackerImpl,TaskExecutorPartitionTrackerImpl
public interface PartitionTracker<K,M>
Utility for tracking partitions.
This interface deliberately does not have a method to start tracking partitions, so that implementation are flexible in their definitions for this method (otherwise one would end up with multiple methods, with one part likely being unused).
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisPartitionTracked(ResultPartitionID resultPartitionID) Returns whether the given partition is being tracked.booleanisTrackingPartitionsFor(K key) Returns whether any partition is being tracked for the given key.stopTrackingPartitions(Collection<ResultPartitionID> resultPartitionIds) Stops the tracking of the given partitions.Stops the tracking of all partitions for the given key.
-
Method Details
-
stopTrackingPartitionsFor
Stops the tracking of all partitions for the given key. -
stopTrackingPartitions
Collection<PartitionTrackerEntry<K,M>> stopTrackingPartitions(Collection<ResultPartitionID> resultPartitionIds) Stops the tracking of the given partitions. -
isTrackingPartitionsFor
Returns whether any partition is being tracked for the given key. -
isPartitionTracked
Returns whether the given partition is being tracked.
-