Interface TierConsumerAgent

    • Method Detail

      • start

        void start()
        Start the consumer agent.
      • peekNextBufferSubpartitionId

        int peekNextBufferSubpartitionId​(TieredStoragePartitionId partitionId,
                                         ResultSubpartitionIndexSet indexSet)
                                  throws IOException
        Returns the index of the subpartition where the next buffer locates, or -1 if there is no buffer available or the subpartition index does not belong to the specified indexSet.
        Parameters:
        partitionId - The index of the partition which the returned subpartition should belong to.
        indexSet - The indexes of the subpartitions expected.
        Throws:
        IOException
      • registerAvailabilityNotifier

        void registerAvailabilityNotifier​(AvailabilityNotifier notifier)
        Register the notifier to notify the availability of a subpartition.
        Parameters:
        notifier - to notify availability.