Class Endpoint
- java.lang.Object
-
- com.yahoo.vespa.http.client.config.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 withdocument-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()
-
-
-
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 hostnameport
- the portuseSsl
- 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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-