comparison src/org/eclipse/jetty/server/handler/ShutdownHandler.java @ 820:8e9db0bbf4f9

remove org.eclipse.jetty.util.log and upgrade slf4j
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 13 Sep 2016 23:13:06 -0600
parents 3428c60d7cfc
children 32d4b569567c
comparison
equal deleted inserted replaced
819:17bd0b170ed6 820:8e9db0bbf4f9
24 import javax.servlet.http.HttpServletRequest; 24 import javax.servlet.http.HttpServletRequest;
25 import javax.servlet.http.HttpServletResponse; 25 import javax.servlet.http.HttpServletResponse;
26 26
27 import org.eclipse.jetty.server.Request; 27 import org.eclipse.jetty.server.Request;
28 import org.eclipse.jetty.server.Server; 28 import org.eclipse.jetty.server.Server;
29 import org.eclipse.jetty.util.log.Log; 29 import org.slf4j.Logger;
30 import org.eclipse.jetty.util.log.Logger; 30 import org.slf4j.LoggerFactory;
31 31
32 /* ------------------------------------------------------------ */ 32 /* ------------------------------------------------------------ */
33 /** 33 /**
34 * A handler that shuts the server down on a valid request. Used to do "soft" restarts from Java. If _exitJvm ist set to true a hard System.exit() call is being 34 * A handler that shuts the server down on a valid request. Used to do "soft" restarts from Java. If _exitJvm ist set to true a hard System.exit() call is being
35 * made. 35 * made.
64 } 64 }
65 </pre> 65 </pre>
66 */ 66 */
67 public class ShutdownHandler extends AbstractHandler 67 public class ShutdownHandler extends AbstractHandler
68 { 68 {
69 private static final Logger LOG = Log.getLogger(ShutdownHandler.class); 69 private static final Logger LOG = LoggerFactory.getLogger(ShutdownHandler.class);
70 70
71 private final String _shutdownToken; 71 private final String _shutdownToken;
72 72
73 private final Server _server; 73 private final Server _server;
74 74
125 { 125 {
126 shutdownServer(); 126 shutdownServer();
127 } 127 }
128 catch (InterruptedException e) 128 catch (InterruptedException e)
129 { 129 {
130 LOG.ignore(e); 130 LOG.trace("",e);
131 } 131 }
132 catch (Exception e) 132 catch (Exception e)
133 { 133 {
134 throw new RuntimeException("Shutting down server",e); 134 throw new RuntimeException("Shutting down server",e);
135 } 135 }