Class JobMetadata

java.lang.Object
com.netflix.genie.common.dto.BaseDTO
com.netflix.genie.common.dto.JobMetadata
All Implemented Interfaces:
Serializable

public class JobMetadata extends BaseDTO
Additional metadata associated with a Job Request such as client host, user agent, etc.
Since:
3.0.0
See Also:
  • Constructor Details

    • JobMetadata

      protected JobMetadata(@Valid @Valid JobMetadata.Builder builder)
      Constructor used only through the builder.
      Parameters:
      builder - The builder to construct from
  • Method Details

    • getClientHost

      public Optional<String> getClientHost()
      Get the client host.
      Returns:
      Optional of the client host
    • getUserAgent

      public Optional<String> getUserAgent()
      Get the user agent.
      Returns:
      Optional of the user agent
    • getNumAttachments

      public Optional<Integer> getNumAttachments()
      Get the number of attachments.
      Returns:
      The number of attachments as an optional
    • getTotalSizeOfAttachments

      public Optional<Long> getTotalSizeOfAttachments()
      Get the total size of the attachments.
      Returns:
      The total size of attachments as an optional
    • getStdOutSize

      public Optional<Long> getStdOutSize()
      Get the size of standard out for this job.
      Returns:
      The size (in bytes) of this jobs standard out file as Optional
    • getStdErrSize

      public Optional<Long> getStdErrSize()
      Get the size of standard error for this job.
      Returns:
      The size (in bytes) of this jobs standard error file as Optional