Class VeniceSocketConnectorFactory
java.lang.Object
com.linkedin.venice.controller.spark.VeniceSocketConnectorFactory
Creates socket connectors.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.jetty.server.ServerConnector
createSecureSocketConnector
(org.eclipse.jetty.server.Server server, 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, String host, int port, boolean trustForwardHeaders) Creates an ordinary, non-secured Jetty server jetty.
-
Constructor Details
-
VeniceSocketConnectorFactory
public VeniceSocketConnectorFactory()
-
-
Method Details
-
createSocketConnector
public static org.eclipse.jetty.server.ServerConnector createSocketConnector(org.eclipse.jetty.server.Server server, 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, 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
-