Class AgentJobRequest.Builder

  • Enclosing interface:
    AgentJobRequest

    public static class AgentJobRequest.Builder
    extends com.netflix.genie.common.internal.dtos.CommonRequestImpl.Builder<AgentJobRequest.Builder>
    Builder for a V4 Job Request.
    Since:
    4.0.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AgentJobRequest build()
      Build an immutable job request instance.
      AgentJobRequest.Builder withCommandArgs​(java.util.List<java.lang.String> commandArgs)
      Set the ordered list of command line arguments to append to the command executable at runtime.
      • Methods inherited from class com.netflix.genie.common.internal.dtos.CommonRequestImpl.Builder

        withRequestedId, withResources
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Builder

        public Builder​(JobMetadata metadata,
                       ExecutionResourceCriteria criteria,
                       AgentConfigRequest requestedAgentConfig)
        Constructor with required parameters.
        Parameters:
        metadata - All user supplied metadata
        criteria - All user supplied execution criteria
        requestedAgentConfig - The requested configuration of the Genie agent
    • Method Detail

      • withCommandArgs

        public AgentJobRequest.Builder withCommandArgs​(@Nullable
                                                       java.util.List<java.lang.String> commandArgs)
        Set the ordered list of command line arguments to append to the command executable at runtime.
        Parameters:
        commandArgs - The arguments in the order they should be placed on the command line. Maximum of 10,000 characters per argument. Blank strings are removed
        Returns:
        The builder
      • build

        public AgentJobRequest build()
        Build an immutable job request instance.
        Returns:
        An immutable representation of the user supplied information for a job request