Class JobRequestMetadata
java.lang.Object
com.netflix.genie.common.internal.dtos.JobRequestMetadata
- All Implemented Interfaces:
Serializable
Metadata gathered by the system as part of any
JobRequest
.- Since:
- 4.0.0
- See Also:
-
Constructor Summary
ConstructorDescriptionJobRequestMetadata
(ApiClientMetadata apiClientMetadata, AgentClientMetadata agentClientMetadata, int numAttachments, long totalSizeOfAttachments, Map<String, String> requestHeaders) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionIf the job request was sent via the Agent this field will be populated.If the job request was sent via API this field will be populated.
-
Constructor Details
-
JobRequestMetadata
public JobRequestMetadata(@Nullable ApiClientMetadata apiClientMetadata, @Nullable AgentClientMetadata agentClientMetadata, int numAttachments, long totalSizeOfAttachments, @Nullable Map<String, String> requestHeaders) throws IllegalArgumentExceptionConstructor. One of apiClientMetadata or agentClientMetadata is required. Both cannot be present.- Parameters:
apiClientMetadata
- The metadata about the client if this request was received via APIagentClientMetadata
- The metadata about the client if this request was received from the AgentnumAttachments
- The number of attachments that came with this job requesttotalSizeOfAttachments
- The total size of the attachments that came with this job requestrequestHeaders
- The map of HTTP headers (filtered upstream) if this request was received via API- Throws:
IllegalArgumentException
- If both apiClientMetadata and agentClientMetadata are missing or both are present
-
-
Method Details