public class NodeLayoutGenerator extends Object
NodeLayout
s sorted by preference given a ClusterTemplate
,
set of names of services that should be placed on the cluster,
set of allowed HardwareType
s, and set of allowed
ImageType
s.Constructor and Description |
---|
NodeLayoutGenerator(ClusterTemplate clusterTemplate,
Set<String> clusterServices,
Set<String> allowedHardwareTypes,
Set<String> allowedImageTypes) |
Modifier and Type | Method and Description |
---|---|
List<NodeLayout> |
generateNodeLayoutPreferences()
Get an ordered list of possible
NodeLayout s to use in the cluster. |
public List<NodeLayout> generateNodeLayoutPreferences()
NodeLayout
s to use in the cluster. If earlier a node layout appears in the
list, the more preferred it is. Only one NodeLayout
per valid service set will be returned.Copyright © 2013-2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.