Package com.netflix.genie.web.selectors
Class AgentLauncherSelectionContext
java.lang.Object
com.netflix.genie.web.selectors.ResourceSelectionContext<AgentLauncher>
com.netflix.genie.web.selectors.AgentLauncherSelectionContext
Extension of
ResourceSelectionContext
to include specific data useful in AgentLauncher selection.- Since:
- 4.0.0
-
Constructor Summary
ConstructorDescriptionAgentLauncherSelectionContext
(@NotBlank String jobId, JobRequest jobRequest, JobRequestMetadata jobRequestMetadata, ResolvedJob resolvedJob, Collection<AgentLauncher> agentLaunchers) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturn theSet
of distinct resources that a selector is meant to chose from.
-
Constructor Details
-
AgentLauncherSelectionContext
public AgentLauncherSelectionContext(@NotBlank @NotBlank String jobId, JobRequest jobRequest, JobRequestMetadata jobRequestMetadata, ResolvedJob resolvedJob, Collection<AgentLauncher> agentLaunchers) Constructor.- Parameters:
jobId
- the job idjobRequest
- the job requestjobRequestMetadata
- the job request metadataresolvedJob
- the resolved job detailsagentLaunchers
- the list of available launchers
-
-
Method Details
-
getResources
Return theSet
of distinct resources that a selector is meant to chose from.- Specified by:
getResources
in classResourceSelectionContext<AgentLauncher>
- Returns:
- The resources
-