Class ClientMetadata

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    AgentClientMetadata, ApiClientMetadata

    public class ClientMetadata
    extends java.lang.Object
    implements java.io.Serializable
    Common base for API and Agent client metadata.
    Since:
    4.0.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ClientMetadata​(java.lang.String hostname)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.String> getHostname()
      Get the hostname of the client.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClientMetadata

        public ClientMetadata​(@Nullable
                              java.lang.String hostname)
        Constructor.
        Parameters:
        hostname - The hostname of the client to the Genie server
    • Method Detail

      • getHostname

        public java.util.Optional<java.lang.String> getHostname()
        Get the hostname of the client.
        Returns:
        The hostname if there is one wrapped in an Optional