public WebServer( LogChannelInterface log, TransformationMap transformationMap, JobMap jobMap,
SocketRepository socketRepository, List<SlaveServerDetection> detections, String hostname, int port, boolean join,
String passwordFile, SslConfiguration sslConfig ) throws Exception {
this.log = log;
this.transformationMap = transformationMap;
this.jobMap = jobMap;
this.socketRepository = socketRepository;
this.detections = detections;
this.hostname = hostname;
this.port = port;
this.passwordFile = passwordFile;
this.sslConfig = sslConfig;
startServer();
startSlaveMonitoring();
webServerShutdownHook = new WebServerShutdownHook( this );
Runtime.getRuntime().addShutdownHook( webServerShutdownHook );
try {
ExtensionPointHandler.callExtensionPoint( log, KettleExtensionPoint.CarteStartup.id, this );
} catch ( KettleException e ) {
log.logError( "Error calling extension point CarteStartup", e );
}
if ( join ) {
server.join();
}
}