/* ------------------------------------------------------------ */ @Override protected void doStart() throws Exception { if (getStopAtShutdown()) ShutdownThread.register(this); LOG.info("jetty-" + __version); HttpGenerator.setServerVersion(__version); MultiException mex = new MultiException(); if (_threadPool == null) setThreadPool(new QueuedThreadPool()); try { super.doStart(); } catch (Throwable e) { mex.add(e); } if (_connectors != null) { for (int i = 0; i < _connectors.length; i++) { try { _connectors[i].start(); } catch (Throwable e) { mex.add(e); } } } if (isDumpAfterStart()) dumpStdErr(); mex.ifExceptionThrow(); }
/** @see org.eclipse.jetty.util.component.AbstractLifeCycle#doStart() */ @Override public void doStart() throws Exception { _connectorServer.start(); ShutdownThread.register(0, this); LOG.info("JMX Remote URL: {}", _connectorServer.getAddress().toString()); }
/* ------------------------------------------------------------ */ public void setStopAtShutdown(boolean stop) { _stopAtShutdown = stop; if (stop) ShutdownThread.register(this); else ShutdownThread.deregister(this); }