public final class GroovyScriptUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static AgentLauncherSelectionContext |
getAgentLauncherSelectionContext(groovy.lang.Binding binding)
Given the
Binding that a script has attempt to extract the cluster selection context. |
static java.util.Set<com.netflix.genie.common.external.dtos.v4.Cluster> |
getClusters(groovy.lang.Binding binding)
Deprecated.
|
static ClusterSelectionContext |
getClusterSelectionContext(groovy.lang.Binding binding)
Given the
Binding that a script has attempt to extract the cluster selection context. |
static java.util.Set<com.netflix.genie.common.external.dtos.v4.Command> |
getCommands(groovy.lang.Binding binding)
Deprecated.
|
static CommandSelectionContext |
getCommandSelectionContext(groovy.lang.Binding binding)
Given the
Binding that a script has attempt to extract the command selection context. |
public static CommandSelectionContext getCommandSelectionContext(groovy.lang.Binding binding) throws java.lang.IllegalArgumentException
Binding that a script has attempt to extract the command selection context.binding - The Binding for the scriptCommandSelectionContext instancejava.lang.IllegalArgumentException - If there is no context parameter for the script or it is not a
CommandSelectionContextpublic static ClusterSelectionContext getClusterSelectionContext(groovy.lang.Binding binding) throws java.lang.IllegalArgumentException
Binding that a script has attempt to extract the cluster selection context.binding - The Binding for the scriptClusterSelectionContext instancejava.lang.IllegalArgumentException - If there is no context parameter for the script or it is not a
ClusterSelectionContextpublic static AgentLauncherSelectionContext getAgentLauncherSelectionContext(groovy.lang.Binding binding) throws java.lang.IllegalArgumentException
Binding that a script has attempt to extract the cluster selection context.binding - The Binding for the scriptClusterSelectionContext instancejava.lang.IllegalArgumentException - If there is no context parameter for the script or it is not a
ClusterSelectionContext@Deprecated
public static java.util.Set<com.netflix.genie.common.external.dtos.v4.Cluster> getClusters(groovy.lang.Binding binding)
throws java.lang.IllegalArgumentException
getClusterSelectionContext(Binding) or getCommandSelectionContext(Binding)
insteadBinding that a script has attempt to extract the clusters parameter.binding - The Binding of the scriptCluster'sjava.lang.IllegalArgumentException - If there is no clusters parameter, it isn't a set, is empty or doesn't contain
all Cluster instances@Deprecated
public static java.util.Set<com.netflix.genie.common.external.dtos.v4.Command> getCommands(groovy.lang.Binding binding)
throws java.lang.IllegalArgumentException
getClusterSelectionContext(Binding) or getCommandSelectionContext(Binding)
insteadBinding that a script has attempt to extract the commands parameter.binding - The Binding of the scriptCommand'sjava.lang.IllegalArgumentException - If there is no commands parameter, it isn't a set, is empty or doesn't contain
all Command instances