Class AgentConfigRequest.Builder

  • Enclosing class:
    AgentConfigRequest

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

      • Builder

        public Builder()
    • 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