Class MorselComparator

java.lang.Object
org.duracloud.mill.ltp.MorselComparator
All Implemented Interfaces:
Comparator<Morsel>

public class MorselComparator extends Object implements Comparator<Morsel>
The prioritization strategy for the MorselQueue. The intention is to ensure that spaces that have been started get worked before spaces that haven't. Also, ideally morsels from different accounts are evenly dispersed throughout the queue. So, given those motivations, here's an initial stab at the logic. 1. Morsels with non-null markers should go first. 2. Otherwise, order by space followed by domain.
Author:
Daniel Bernstein Date: Nov 7, 2013
  • Constructor Details

    • MorselComparator

      public MorselComparator()
  • Method Details