Class AgentConfigRequest.Builder
java.lang.Object
com.netflix.genie.common.internal.dtos.AgentConfigRequest.Builder
- Enclosing class:
- AgentConfigRequest
Builder to create an immutable
AgentConfigRequest
instance.- Since:
- 4.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a new immutable instance of anAgentConfigRequest
.withArchivingDisabled
(boolean archivingDisabled) Set whether the agent should or should not archive the job directory.withExt
(com.fasterxml.jackson.databind.JsonNode ext) Set the extension configuration for the agent.withInteractive
(boolean interactive) Set whether the agent should be run as an interactive job or not.withRequestedJobDirectoryLocation
(File requestedJobDirectoryLocation) Set the directory where the agent should put the job working directory.withRequestedJobDirectoryLocation
(String requestedJobDirectoryLocation) Set the directory where the agent should put the job working directory.withTimeoutRequested
(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.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withArchivingDisabled
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
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
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
Set the extension configuration for the agent.- Parameters:
ext
- The extension configuration which is effectively a DSL per Agent implementation- Returns:
- The builder
-
build
Build a new immutable instance of anAgentConfigRequest
.- Returns:
- An instance containing the fields set in this builder
-