Class VeniceSocketConnectorFactory
- java.lang.Object
-
- com.linkedin.venice.controller.spark.VeniceSocketConnectorFactory
-
public class VeniceSocketConnectorFactory extends java.lang.Object
Creates socket connectors.
-
-
Constructor Summary
Constructors Constructor Description VeniceSocketConnectorFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.eclipse.jetty.server.ServerConnector
createSecureSocketConnector(org.eclipse.jetty.server.Server server, java.lang.String host, int port, spark.ssl.SslStores sslStores, boolean trustForwardHeaders)
Creates a ssl jetty socket jetty.static org.eclipse.jetty.server.ServerConnector
createSocketConnector(org.eclipse.jetty.server.Server server, java.lang.String host, int port, boolean trustForwardHeaders)
Creates an ordinary, non-secured Jetty server jetty.
-
-
-
Method Detail
-
createSocketConnector
public static org.eclipse.jetty.server.ServerConnector createSocketConnector(org.eclipse.jetty.server.Server server, java.lang.String host, int port, boolean trustForwardHeaders)
Creates an ordinary, non-secured Jetty server jetty.- Parameters:
server
- Jetty serverhost
- hostport
- port- Returns:
- - a server jetty
-
createSecureSocketConnector
public static org.eclipse.jetty.server.ServerConnector createSecureSocketConnector(org.eclipse.jetty.server.Server server, java.lang.String host, int port, spark.ssl.SslStores sslStores, boolean trustForwardHeaders)
Creates a ssl jetty socket jetty. Keystore required, truststore optional. If truststore not specified keystore will be reused.- Parameters:
server
- Jetty serversslStores
- the security sslStores.host
- hostport
- port- Returns:
- a ssl socket jetty
-
-