java.lang.Object
com.aoindustries.aoserv.master.cluster.Host
All Implemented Interfaces:
Comparable<Host>

public final class Host extends Object implements Comparable<Host>
Author:
AO Industries, Inc.
  • Method Details

    • compareTo

      public int compareTo(Host other)
      Sorts from smallest to biggest. The combination of sorting servers from smallest to biggest and virtual servers from biggest to smallest causes the tightest fit of big virtual servers into the smallest possible server. This results in the smallest skip/map ratio (and hopefully quicker finding of optimal layouts).
      Specified by:
      compareTo in interface Comparable<Host>