@Override public void startup() { int port = spaceEnvironment .getSystemConfiguration() .getPropertyInteger( MasterWebsocketManager.CONFIGURATION_MASTER_WEBSOCKET_PORT, MasterWebsocketManager.CONFIGURATION_MASTER_WEBSOCKET_PORT_DEFAULT); webServer = new NettyWebServer( "master", port, spaceEnvironment.getExecutorService(), spaceEnvironment.getLog()); webSocketFactory = new BasicMultipleConnectionWebServerWebSocketHandlerFactory( this, spaceEnvironment.getLog()); webServer.setWebSocketHandlerFactory("", webSocketFactory); webServer.startup(); remoteSpaceControllerClient.addRemoteSpaceControllerClientListener(this); }
@Override public void startupComponent() { webServer.startup(); getLog().info("web server component started up"); }