Class AgentConfigRequest.Builder

java.lang.Object
com.netflix.genie.common.internal.dtos.AgentConfigRequest.Builder
Enclosing class:
AgentConfigRequest

public static class AgentConfigRequest.Builder extends Object
Builder to create an immutable AgentConfigRequest instance.
Since:
4.0.0
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • withArchivingDisabled

      public AgentConfigRequest.Builder withArchivingDisabled(boolean archivingDisabled)
      Set whether the agent should or should not archive the job directory.
      Parameters:
      archivingDisabled - True if archiving should be disabled (not done)
      Returns:
      The builder
    • withInteractive

      public AgentConfigRequest.Builder withInteractive(boolean interactive)
      Set whether the agent should be run as an interactive job or not.
      Parameters:
      interactive - True if the agent should be configured to run an interactive job
      Returns:
      The builder
    • withTimeoutRequested

      public AgentConfigRequest.Builder withTimeoutRequested(@Nullable Integer timeoutRequested)
      Set the amount of time (in seconds) from the job start time that the job should be killed by the agent due to timeout.
      Parameters:
      timeoutRequested - The requested amount of time in seconds
      Returns:
      the builder
    • withRequestedJobDirectoryLocation

      public AgentConfigRequest.Builder withRequestedJobDirectoryLocation(@Nullable String requestedJobDirectoryLocation)
      Set the directory where the agent should put the job working directory.
      Parameters:
      requestedJobDirectoryLocation - The location
      Returns:
      The builder
    • withRequestedJobDirectoryLocation

      public AgentConfigRequest.Builder withRequestedJobDirectoryLocation(@Nullable File requestedJobDirectoryLocation)
      Set the directory where the agent should put the job working directory.
      Parameters:
      requestedJobDirectoryLocation - The location
      Returns:
      The builder
    • withExt

      public AgentConfigRequest.Builder withExt(@Nullable com.fasterxml.jackson.databind.JsonNode ext)
      Set the extension configuration for the agent.
      Parameters:
      ext - The extension configuration which is effectively a DSL per Agent implementation
      Returns:
      The builder
    • build

      public AgentConfigRequest build()
      Build a new immutable instance of an AgentConfigRequest.
      Returns:
      An instance containing the fields set in this builder