public class NodeLayoutComparator extends Object implements Comparator<NodeLayout>
NodeLayoutobjects, which allows specifying preferences for hardware types and image types. A node layout with more services than another one is seen as smaller. If the number of services is the same, the hardware type is compared with the given hardware type preferences. A preferred hardware type means that for node layouts that are exactly the same except for hardware type, the layout with the preferred hardware type will be seen as less than the one with the less preferred hardware type. If hardware types are of the same preference, image type is used as a tie breaker. If both image and hardware types are the same preference, they are compare as strings. If both image and hardware are exactly the same, and the number of services are exactly the same, the service sets are sorted and string comparison is used on each service in order.
|Constructor and Description|
|Modifier and Type||Method and Description|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Copyright © 2013-2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.