Class CommandSelectionContext

java.lang.Object
com.netflix.genie.web.selectors.ResourceSelectionContext<Command>
com.netflix.genie.web.selectors.CommandSelectionContext

public class CommandSelectionContext extends ResourceSelectionContext<Command>
Extension of ResourceSelectionContext to include specific data useful in command selection.
Since:
4.0.0
  • Constructor Details

    • CommandSelectionContext

      public CommandSelectionContext(@NotBlank @NotBlank String jobId, @NotNull @NotNull JobRequest jobRequest, boolean apiJob, @NotEmpty @NotEmpty Map<@Valid Command,@NotEmpty Set<@Valid Cluster>> commandToClusters)
      Constructor.
      Parameters:
      jobId - The id of the job which the command is being selected for
      jobRequest - The job request the user originally made
      apiJob - Whether the job was submitted via the API or from Agent CLI
      commandToClusters - The map of command candidates to their respective clusters candidates
  • Method Details