Class ApiClientMetadata
java.lang.Object
com.netflix.genie.common.internal.dtos.ClientMetadata
com.netflix.genie.common.internal.dtos.ApiClientMetadata
- All Implemented Interfaces:
Serializable
Data class to hold information about a Genie client whether it is an API client or an Agent.
- Since:
- 4.0.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the user agent string for the client.Methods inherited from class com.netflix.genie.common.internal.dtos.ClientMetadata
getHostname
-
Constructor Details
-
ApiClientMetadata
Constructor.- Parameters:
hostname
- The hostname of the client that sent the API requestuserAgent
- The user agent string
-
-
Method Details
-
getUserAgent
Get the user agent string for the client.- Returns:
- The user agent string if there is one wrapped in an
Optional
-