Class InternalServerInfo

java.lang.Object
org.neo4j.driver.internal.summary.InternalServerInfo
All Implemented Interfaces:
ServerInfo

public class InternalServerInfo extends Object implements ServerInfo
  • Constructor Details

    • InternalServerInfo

      public InternalServerInfo(String agent, org.neo4j.driver.internal.BoltServerAddress address, BoltProtocolVersion protocolVersion)
  • Method Details

    • agent

      public String agent()
      Description copied from interface: ServerInfo
      Returns server agent string by which the remote server identifies itself.
      Specified by:
      agent in interface ServerInfo
      Returns:
      The agent string.
    • address

      public String address()
      Description copied from interface: ServerInfo
      Returns a string telling the address of the server the query was executed.
      Specified by:
      address in interface ServerInfo
      Returns:
      The address of the server the query was executed.
    • protocolVersion

      public String protocolVersion()
      Description copied from interface: ServerInfo
      Returns Bolt protocol version with which the remote server communicates. This is returned as a string in format X.Y where X is the major version and Y is the minor version.
      Specified by:
      protocolVersion in interface ServerInfo
      Returns:
      The Bolt protocol version.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object