Package com.netflix.genie.common.dto
Class JobMetadata.Builder
java.lang.Object
com.netflix.genie.common.dto.BaseDTO.Builder<JobMetadata.Builder>
com.netflix.genie.common.dto.JobMetadata.Builder
- Enclosing class:
- JobMetadata
Builder for creating a JobMetadata instance.
- Since:
- 3.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Create a new JobMetadata object from this builder.withClientHost
(String clientHost) Set the host name that sent the job request.withNumAttachments
(Integer numAttachments) Set the number of attachments the job had.withStdErrSize
(Long stdErrSize) Set the total size (in bytes) of the jobs' standard error file.withStdOutSize
(Long stdOutSize) Set the total size (in bytes) of the jobs' standard out file.withTotalSizeOfAttachments
(Long totalSizeOfAttachments) Set the total size (in bytes) of the attachments sent with the job request.withUserAgent
(String userAgent) Set the user agent string the request came in with.Methods inherited from class com.netflix.genie.common.dto.BaseDTO.Builder
withCreated, withId, withUpdated
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withClientHost
Set the host name that sent the job request.- Parameters:
clientHost
- The hostname to use.- Returns:
- The builder
-
withUserAgent
Set the user agent string the request came in with.- Parameters:
userAgent
- The user agent string- Returns:
- The builder
-
withNumAttachments
Set the number of attachments the job had.- Parameters:
numAttachments
- The number of attachments sent in with the job request- Returns:
- The builder
-
withTotalSizeOfAttachments
Set the total size (in bytes) of the attachments sent with the job request.- Parameters:
totalSizeOfAttachments
- The total size of the attachments sent in with the job request- Returns:
- The builder
-
withStdOutSize
Set the total size (in bytes) of the jobs' standard out file.- Parameters:
stdOutSize
- The total size of the jobs' standard out file- Returns:
- The builder
-
withStdErrSize
Set the total size (in bytes) of the jobs' standard error file.- Parameters:
stdErrSize
- The total size of the jobs' standard error file- Returns:
- The builder
-
build
Create a new JobMetadata object from this builder.- Returns:
- The JobMetadata read only instance
-