Class VeniceSocketConnectorFactory

java.lang.Object
com.linkedin.venice.controller.spark.VeniceSocketConnectorFactory

public class VeniceSocketConnectorFactory extends Object
Creates socket connectors.
  • 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 server
      host - host
      port - 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 server
      sslStores - the security sslStores.
      host - host
      port - port
      Returns:
      a ssl socket jetty