Class AgentConfigRequest.Builder
- java.lang.Object
-
- com.netflix.genie.common.external.dtos.v4.AgentConfigRequest.Builder
-
- Enclosing class:
- AgentConfigRequest
public static class AgentConfigRequest.Builder extends java.lang.Object
Builder to create an immutableAgentConfigRequest
instance.- Since:
- 4.0.0
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgentConfigRequest
build()
Build a new immutable instance of anAgentConfigRequest
.AgentConfigRequest.Builder
withArchivingDisabled(boolean archivingDisabled)
Set whether the agent should or should not archive the job directory.AgentConfigRequest.Builder
withExt(com.fasterxml.jackson.databind.JsonNode ext)
Set the extension configuration for the agent.AgentConfigRequest.Builder
withInteractive(boolean interactive)
Set whether the agent should be run as an interactive job or not.AgentConfigRequest.Builder
withRequestedJobDirectoryLocation(java.io.File requestedJobDirectoryLocation)
Set the directory where the agent should put the job working directory.AgentConfigRequest.Builder
withRequestedJobDirectoryLocation(java.lang.String requestedJobDirectoryLocation)
Set the directory where the agent should put the job working directory.AgentConfigRequest.Builder
withTimeoutRequested(java.lang.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.
-
-
-
Method Detail
-
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 java.lang.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 java.lang.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 java.io.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 anAgentConfigRequest
.- Returns:
- An instance containing the fields set in this builder
-
-