dk.netarkivet.harvester.scheduler.jobgen
Class DefaultJobGenerator.CompareConfigsDesc

java.lang.Object
  extended by dk.netarkivet.harvester.scheduler.jobgen.DefaultJobGenerator.CompareConfigsDesc
All Implemented Interfaces:
java.util.Comparator<DomainConfiguration>
Enclosing class:
DefaultJobGenerator

public static class DefaultJobGenerator.CompareConfigsDesc
extends java.lang.Object
implements java.util.Comparator<DomainConfiguration>

Compare two configurations using the following order: 1) Harvest template 2) Byte limit 3) expected number of object a harvest of the configuration will produce. The comparison will put the largest configuration first (with respect to 2) and 3))


Constructor Summary
DefaultJobGenerator.CompareConfigsDesc(long objectLimit, long byteLimit)
           
 
Method Summary
 int compare(DomainConfiguration cfg1, DomainConfiguration cfg2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

DefaultJobGenerator.CompareConfigsDesc

public DefaultJobGenerator.CompareConfigsDesc(long objectLimit,
                                              long byteLimit)
Method Detail

compare

public int compare(DomainConfiguration cfg1,
                   DomainConfiguration cfg2)
Specified by:
compare in interface java.util.Comparator<DomainConfiguration>