Class BundleSplitterTask

  • All Implemented Interfaces:
    BundleSplitStrategy

    public class BundleSplitterTask
    extends java.lang.Object
    implements BundleSplitStrategy
    Determines which bundles should be split based on various thresholds.
    • Constructor Summary

      Constructors 
      Constructor Description
      BundleSplitterTask()
      Construct a BundleSplitterTask.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.String> findBundlesToSplit​(LoadData loadData, PulsarService pulsar)
      Determines which bundles should be split based on various thresholds.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BundleSplitterTask

        public BundleSplitterTask()
        Construct a BundleSplitterTask.
    • Method Detail

      • findBundlesToSplit

        public java.util.Set<java.lang.String> findBundlesToSplit​(LoadData loadData,
                                                                  PulsarService pulsar)
        Determines which bundles should be split based on various thresholds.
        Specified by:
        findBundlesToSplit in interface BundleSplitStrategy
        Parameters:
        loadData - Load data to base decisions on (does not have benefit of preallocated data since this may not be the leader broker).
        pulsar - Service to use.
        Returns:
        All bundles who have exceeded configured thresholds in number of topics, number of sessions, total message rates, or total throughput.