diff src/org/eclipse/jetty/server/Server.java @ 880:00b3bd6e0ada

remove Server._graceful
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 04 Oct 2016 15:59:35 -0600
parents a3775d0c6985
children d850a5e6ff15
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/Server.java	Tue Oct 04 15:55:02 2016 -0600
+++ b/src/org/eclipse/jetty/server/Server.java	Tue Oct 04 15:59:35 2016 -0600
@@ -63,7 +63,6 @@
 	private final AttributesMap _attributes = new AttributesMap();
 	public final ThreadPoolExecutor threadPool;
 	public final Connector connector;
-	private int _graceful=0;
 	private boolean _dumpAfterStart=false;
 	private boolean _dumpBeforeStop=false;
 	private boolean _uncheckedPrintWriter=false;
@@ -166,7 +165,7 @@
 			dumpStdErr();
 
 		MultiException mex=new MultiException();
-
+/*
 		if (_graceful>0)
 		{
 			LOG.info("Graceful shutdown {}",connector);
@@ -181,7 +180,7 @@
 			}
 			Thread.sleep(_graceful);
 		}
-
+*/
 		try{connector.stop();}catch(Throwable e){mex.add(e);}
 
 		threadPool.shutdownNow();
@@ -307,30 +306,6 @@
 	}
 
 	/* ------------------------------------------------------------ */
-	/**
-	 * @return the graceful
-	 */
-	public int getGracefulShutdown()
-	{
-		return _graceful;
-	}
-
-	/* ------------------------------------------------------------ */
-	/**
-	 * Set graceful shutdown timeout.  If set, the internal <code>doStop()</code> method will not immediately stop the
-	 * server. Instead, all {@link Connector}s will be closed so that new connections will not be accepted
-	 * and all handlers that implement {@link Graceful} will be put into the shutdown mode so that no new requests
-	 * will be accepted, but existing requests can complete.  The server will then wait the configured timeout
-	 * before stopping.
-	 * @param timeoutMS the milliseconds to wait for existing request to complete before stopping the server.
-	 *
-	 */
-	public void setGracefulShutdown(int timeoutMS)
-	{
-		_graceful=timeoutMS;
-	}
-
-	/* ------------------------------------------------------------ */
 	@Override
 	public String toString()
 	{