Class Endpoint

  • All Implemented Interfaces:
    java.io.Serializable

    @Immutable
    public final class Endpoint
    extends java.lang.Object
    implements java.io.Serializable
    Represents an endpoint, in most cases a JDisc container in a Vespa cluster configured with document-api.
    Author:
    Einar M R Rosenvinge
    See Also:
    Serialized Form
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Endpoint create​(java.lang.String hostname)
      Creates an Endpoint with the default port and without using SSL.
      static Endpoint create​(java.lang.String hostname, int port, boolean useSsl)
      Creates an Endpoint with the given hostname, port and SSL setting.
      boolean equals​(java.lang.Object o)  
      java.lang.String getHostname()  
      int getPort()  
      int hashCode()  
      boolean isUseSsl()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • create

        public static Endpoint create​(java.lang.String hostname)
        Creates an Endpoint with the default port and without using SSL.
        Parameters:
        hostname - the hostname
        Returns:
        an Endpoint instance
      • create

        public static Endpoint create​(java.lang.String hostname,
                                      int port,
                                      boolean useSsl)
        Creates an Endpoint with the given hostname, port and SSL setting.
        Parameters:
        hostname - the hostname
        port - the port
        useSsl - true if SSL is to be used
        Returns:
        an Endpoint instance
        See Also:
        needs to be set as well for SSL
      • getHostname

        public java.lang.String getHostname()
      • getPort

        public int getPort()
      • isUseSsl

        public boolean isUseSsl()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object