public class SparkServer extends Object
Constructor and Description |
---|
SparkServer(org.eclipse.jetty.server.Handler handler) |
Modifier and Type | Method and Description |
---|---|
void |
ignite(String host,
int port,
String keystoreFile,
String keystorePassword,
String truststoreFile,
String truststorePassword,
String staticFilesFolder,
String externalFilesFolder,
CountDownLatch latch,
int maxThreads,
int minThreads,
int threadIdleTimeoutMillis)
Ignites the spark server, listening on the specified port, running SSL secured with the specified keystore
and truststore.
|
void |
stop() |
public void ignite(String host, int port, String keystoreFile, String keystorePassword, String truststoreFile, String truststorePassword, String staticFilesFolder, String externalFilesFolder, CountDownLatch latch, int maxThreads, int minThreads, int threadIdleTimeoutMillis)
host
- The address to listen onport
- - the portkeystoreFile
- - The keystore file location as stringkeystorePassword
- - the password for the keystoretruststoreFile
- - the truststore file location as string, leave null to reuse keystoretruststorePassword
- - the trust store passwordstaticFilesFolder
- - 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).public void stop()
Copyright © 2015. All rights reserved.