Package com.netflix.genie.agent.cli
Class JobRequestConverter
java.lang.Object
com.netflix.genie.agent.cli.JobRequestConverter
Convert job request arguments delegate into an
AgentJobRequest
.- Since:
- 4.0.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Exception thrown in case of conversion error due to resulting object failing validation. -
Method Summary
Modifier and TypeMethodDescriptionagentJobRequestArgsToDTO
(ArgumentDelegates.JobRequestArguments jobRequestArguments) Convert Job request arguments into an AgentJobRequest object.
-
Method Details
-
agentJobRequestArgsToDTO
public AgentJobRequest agentJobRequestArgsToDTO(ArgumentDelegates.JobRequestArguments jobRequestArguments) throws JobRequestConverter.ConversionException Convert Job request arguments into an AgentJobRequest object.- Parameters:
jobRequestArguments
- a job request arguments delegate- Returns:
- an AgentJobRequest DTO
- Throws:
JobRequestConverter.ConversionException
- if the resulting AgentJobRequest fails validation
-