public class ScriptCommandSelectorImpl extends java.lang.Object implements CommandSelector
CommandSelector which defers the decision to a script provided by the system
administrators.| Constructor and Description |
|---|
ScriptCommandSelectorImpl(CommandSelectorManagedScript commandSelectorManagedScript,
io.micrometer.core.instrument.MeterRegistry registry)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ResourceSelectionResult<com.netflix.genie.common.external.dtos.v4.Command> |
select(@Valid CommandSelectionContext context)
Select a resource from the given set of resources if possible.
|
public ScriptCommandSelectorImpl(CommandSelectorManagedScript commandSelectorManagedScript, io.micrometer.core.instrument.MeterRegistry registry)
commandSelectorManagedScript - The CommandSelectorManagedScript instance to useregistry - The MeterRegistry to usepublic ResourceSelectionResult<com.netflix.genie.common.external.dtos.v4.Command> select(@Valid @Valid CommandSelectionContext context) throws ResourceSelectionException
select in interface ResourceSelector<com.netflix.genie.common.external.dtos.v4.Command,CommandSelectionContext>context - The context specific for this resource selectionResourceSelectionResult instance which contains information about the result of this
invocationResourceSelectionException - When the underlying implementation can't successfully come to a selection
decision