Class ClusterSelectorManagedScript


public class ClusterSelectorManagedScript extends ResourceSelectorScript<Cluster,ClusterSelectionContext>
Extension of ResourceSelectorScript that delegates selection of a job's cluster when more than one choice is available. See also: ClusterSelector.

The contract between the script and the Java code is that the script will be supplied global variables clusters and jobRequest which will be a Set of Cluster instances matching the cluster criteria and the job request that kicked off this evaluation respectively. The code expects the script to return a ResourceSelectorScriptResult instance.

Since:
4.0.0