public class AgentClientMetadata extends ClientMetadata
Constructor and Description |
---|
AgentClientMetadata(java.lang.String hostname,
java.lang.String version,
java.lang.Integer pid)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.Integer> |
getPid()
Get the process id of the Agent on the host it is running on.
|
java.util.Optional<java.lang.String> |
getVersion()
Get the running version of the agent if it was set.
|
getHostname
public AgentClientMetadata(@Nullable java.lang.String hostname, @Nullable java.lang.String version, @Nullable java.lang.Integer pid)
hostname
- The hostname of the computer the agent is running onversion
- The version of the agent that sent the requestpid
- The PID of the agent that sent the requestpublic java.util.Optional<java.lang.String> getVersion()
Optional
public java.util.Optional<java.lang.Integer> getPid()
Optional