Class JobProcessResult.Builder

java.lang.Object
com.netflix.genie.agent.execution.process.JobProcessResult.Builder
Enclosing class:
JobProcessResult

public static class JobProcessResult.Builder extends Object
A builder to create valid, immutable JobProcessResult instances.
Since:
4.0.0
  • Constructor Details

  • Method Details

    • withStdOutSize

      public JobProcessResult.Builder withStdOutSize(long stdOutSize)
      Set the length of the std out file in bytes if there was one.
      Parameters:
      stdOutSize - The length of the std out file in bytes
      Returns:
      This builder object
    • withStdErrSize

      public JobProcessResult.Builder withStdErrSize(long stdErrSize)
      Set the length of the std error file in bytes if there was one.
      Parameters:
      stdErrSize - The length of the std error file in bytes
      Returns:
      This builder object
    • build

      public JobProcessResult build()
      Create a new immutable JobProcessResult instance based on the current contents of this builder.
      Returns:
      A JobProcessResult instance