public class JettySparkServer extends Object implements SparkServer
| Constructor and Description |
|---|
JettySparkServer(org.eclipse.jetty.server.Handler handler) |
| Modifier and Type | Method and Description |
|---|---|
void |
ignite(String host,
int port,
SslStores sslStores,
String staticFilesFolder,
String externalFilesFolder,
CountDownLatch latch,
int maxThreads,
int minThreads,
int threadIdleTimeoutMillis,
Map<String,Class<?>> webSocketHandlers,
Optional<Integer> webSocketIdleTimeoutMillis)
Ignites the spark server, listening on the specified port, running SSL secured with the specified keystore
and truststore.
|
void |
stop() |
public JettySparkServer(org.eclipse.jetty.server.Handler handler)
public void ignite(String host, int port, SslStores sslStores, String staticFilesFolder, String externalFilesFolder, CountDownLatch latch, int maxThreads, int minThreads, int threadIdleTimeoutMillis, Map<String,Class<?>> webSocketHandlers, Optional<Integer> webSocketIdleTimeoutMillis)
ignite in interface SparkServerhost - The address to listen onport - - the portsslStores - - The SSL sslStores.staticFilesFolder - - the route to static files in classPathexternalFilesFolder - - the route to static files external to classPath.latch - - the countdown latchmaxThreads - - max nbr of threads.minThreads - - min nbr of threads.threadIdleTimeoutMillis - - idle timeout (ms).webSocketHandlers - - web socket handlers.webSocketIdleTimeoutMillis - - Optional WebSocket idle timeout (ms).public void stop()
stop in interface SparkServerCopyright © 2015. All rights reserved.