public class Solver extends Object
|Modifier and Type||Method and Description|
Add services to a cluster, returning which nodes were affected by the change or null if there was no way to add the services to the cluster.
Validate whether or not a set of services are allowed to be added to a cluster.
public Set<Node> addServicesToCluster(Cluster cluster, Set<Node> clusterNodes, Set<String> servicesToAdd) throws Exception
cluster- Cluster to add the services to.
clusterNodes- Nodes in the cluster.
servicesToAdd- Services to add to the cluster.
public void validateServicesToAdd(Cluster cluster, Set<String> servicesToAdd) throws IOException
cluster- Cluster to check addition of services to.
servicesToAdd- Services to add to the cluster
public Map<String,Node> solveClusterNodes(Cluster cluster, ClusterCreateRequest request) throws Exception
ClusterCreateRequest, return a mapping of node id to
Nodedescribing how the cluster should be laid out. If multiple possible cluster layouts are possible, one will be chosen deterministically.
cluster- Cluster to solve a layout for.
request- Request to create a cluster containing cluster settings to use.
Copyright © 2013-2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.