Package com.netflix.genie.common.dto
Class JobMetadata
java.lang.Object
com.netflix.genie.common.dto.BaseDTO
com.netflix.genie.common.dto.JobMetadata
- All Implemented Interfaces:
Serializable
Additional metadata associated with a Job Request such as client host, user agent, etc.
- Since:
- 3.0.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for creating a JobMetadata instance. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
JobMetadata
(@Valid JobMetadata.Builder builder) Constructor used only through the builder. -
Method Summary
Modifier and TypeMethodDescriptionGet the client host.Get the number of attachments.Get the size of standard error for this job.Get the size of standard out for this job.Get the total size of the attachments.Get the user agent.Methods inherited from class com.netflix.genie.common.dto.BaseDTO
getCreated, getId, getUpdated, toString
-
Constructor Details
-
JobMetadata
Constructor used only through the builder.- Parameters:
builder
- The builder to construct from
-
-
Method Details
-
getClientHost
Get the client host.- Returns:
- Optional of the client host
-
getUserAgent
Get the user agent.- Returns:
- Optional of the user agent
-
getNumAttachments
Get the number of attachments.- Returns:
- The number of attachments as an optional
-
getTotalSizeOfAttachments
Get the total size of the attachments.- Returns:
- The total size of attachments as an optional
-
getStdOutSize
Get the size of standard out for this job.- Returns:
- The size (in bytes) of this jobs standard out file as Optional
-
getStdErrSize
Get the size of standard error for this job.- Returns:
- The size (in bytes) of this jobs standard error file as Optional
-