Class AgentClientMetadata

java.lang.Object
com.netflix.genie.common.internal.dtos.ClientMetadata
com.netflix.genie.common.internal.dtos.AgentClientMetadata
All Implemented Interfaces:
Serializable

public class AgentClientMetadata extends ClientMetadata
Metadata for a Genie Agent client.
Since:
4.0.0
See Also:
  • Constructor Details

    • AgentClientMetadata

      public AgentClientMetadata(@Nullable String hostname, @Nullable String version, @Nullable Integer pid)
      Constructor.
      Parameters:
      hostname - The hostname of the computer the agent is running on
      version - The version of the agent that sent the request
      pid - The PID of the agent that sent the request
  • Method Details

    • getVersion

      public Optional<String> getVersion()
      Get the running version of the agent if it was set.
      Returns:
      The version wrapped in an Optional
    • getPid

      public Optional<Integer> getPid()
      Get the process id of the Agent on the host it is running on.
      Returns:
      The pid if it was set wrapped in an Optional