public static class AgentConfigRequest.Builder
extends java.lang.Object
AgentConfigRequest
instance.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AgentConfigRequest |
build()
Build a new immutable instance of an
AgentConfigRequest . |
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.
|
public AgentConfigRequest.Builder withArchivingDisabled(boolean archivingDisabled)
archivingDisabled
- True if archiving should be disabled (not done)public AgentConfigRequest.Builder withInteractive(boolean interactive)
interactive
- True if the agent should be configured to run an interactive jobpublic AgentConfigRequest.Builder withTimeoutRequested(@Nullable java.lang.Integer timeoutRequested)
timeoutRequested
- The requested amount of time in secondspublic AgentConfigRequest.Builder withRequestedJobDirectoryLocation(@Nullable java.lang.String requestedJobDirectoryLocation)
requestedJobDirectoryLocation
- The locationpublic AgentConfigRequest.Builder withRequestedJobDirectoryLocation(@Nullable java.io.File requestedJobDirectoryLocation)
requestedJobDirectoryLocation
- The locationpublic AgentConfigRequest.Builder withExt(@Nullable com.fasterxml.jackson.databind.JsonNode ext)
ext
- The extension configuration which is effectively a DSL per Agent implementationpublic AgentConfigRequest build()
AgentConfigRequest
.