Class JobSubmission.Builder

    • Constructor Detail

      • JobSubmission.Builder

        JobSubmission.Builder()
    • Method Detail

      • addInputFile

         final JobSubmission.Builder addInputFile(File file)

        Adds the given file to the job submission inputs.

        Job submission inputs are persisted to the S3 store and will be made available to the job in the local scratch workspace on execution.

        The name of the input file will be kept and used as the filename in both S3 and the local scratch space.

        The input file name must not be one of the reserved file names listed in the project documentation.

        Parameters:
        file - File to add as an input to this job.
        Returns:

        This Builder instance.

      • addInputFile

         final JobSubmission.Builder addInputFile(String name, File file)

        Adds the given file to the job submission inputs.

        Job submission inputs are persisted to the S3 store and will be made available to the job in the local scratch workspace on execution.

        The given name will be used as the filename in both S3 and the local scratch space.

        The given name must not be one of the reserved file names listed in the project documentation.

        Parameters:
        name - Name to use for the file in S3 and the local scratch space.
        file - File to add as an input to this job.
        Returns:

        This Builder instance.

      • addInputFile

         final JobSubmission.Builder addInputFile(String name, String content)

        Adds the given content as a file to the job submission inputs.

        Job submission inputs are persisted to the S3 store and will be made available to the job in the local scratch workspace on execution.

        The given name will be used as the filename in both S3 and the local scratch space.

        The given name must not be one of the reserved file names listed in the project documentation.

        Parameters:
        name - Name to use for the file in S3 and the local scratch space.
        content - Content to be written to file in S3 and the local scratch space.
        Returns:

        This Builder instance.

      • addInputFile

         final JobSubmission.Builder addInputFile(String name, InputStream content)

        Adds the given content as a file to the job submission inputs.

        Job submission inputs are persisted to the S3 store and will be made available to the job in the local scratch workspace on execution.

        The given name will be used as the filename in both S3 and the local scratch space.

        The given name must not be one of the reserved file names listed in the project documentation.

        Parameters:
        name - Name to use for the file in S3 and the local scratch space.
        content - Content to be written to file in S3 and the local scratch space.
        Returns:

        This Builder instance.

      • addInputFile

         final JobSubmission.Builder addInputFile(String name, JsonNode content)

        Adds the given content as a file to the job submission inputs.

        Job submission inputs are persisted to the S3 store and will be made available to the job in the local scratch workspace on execution.

        The given name will be used as the filename in both S3 and the local scratch space.

        The given name must not be one of the reserved file names listed in the project documentation.

        Parameters:
        name - Name to use for the file in S3 and the local scratch space.
        content - Content to be written to file in S3 and the local scratch space.
        Returns:

        This Builder instance.

      • addInputFile

         final JobSubmission.Builder addInputFile(String name, Reader content)

        Adds the given content as a file to the job submission inputs.

        Job submission inputs are persisted to the S3 store and will be made available to the job in the local scratch workspace on execution.

        The given name will be used as the filename in both S3 and the local scratch space.

        The given name must not be one of the reserved file names listed in the project documentation.

        Parameters:
        name - Name to use for the file in S3 and the local scratch space.
        content - Content to be written to file in S3 and the local scratch space.
        Returns:

        This Builder instance.