comparison src/org/eclipse/jetty/server/Server.java @ 883:8c494fcd3d34

remove Server._dump*
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 04 Oct 2016 16:19:54 -0600
parents d850a5e6ff15
children cb78ee27b0e0
comparison
equal deleted inserted replaced
882:d850a5e6ff15 883:8c494fcd3d34
61 private static final String __version = "8"; 61 private static final String __version = "8";
62 62
63 private final AttributesMap _attributes = new AttributesMap(); 63 private final AttributesMap _attributes = new AttributesMap();
64 public final ThreadPoolExecutor threadPool; 64 public final ThreadPoolExecutor threadPool;
65 public final Connector connector; 65 public final Connector connector;
66 private boolean _dumpAfterStart=false;
67 private boolean _dumpBeforeStop=false;
68 66
69 67
70 /* ------------------------------------------------------------ */ 68 /* ------------------------------------------------------------ */
71 /** Convenience constructor 69 /** Convenience constructor
72 * Creates server and a {@link SelectChannelConnector} at the passed port. 70 * Creates server and a {@link SelectChannelConnector} at the passed port.
86 /* ------------------------------------------------------------ */ 84 /* ------------------------------------------------------------ */
87 public static String getVersion() 85 public static String getVersion()
88 { 86 {
89 return __version; 87 return __version;
90 } 88 }
91
92 /**
93 * @return true if {@link #dumpStdErr()} is called after starting
94 */
95 public boolean isDumpAfterStart()
96 {
97 return _dumpAfterStart;
98 }
99
100 /**
101 * @param dumpAfterStart true if {@link #dumpStdErr()} is called after starting
102 */
103 public void setDumpAfterStart(boolean dumpAfterStart)
104 {
105 _dumpAfterStart = dumpAfterStart;
106 }
107
108 /**
109 * @return true if {@link #dumpStdErr()} is called before stopping
110 */
111 public boolean isDumpBeforeStop()
112 {
113 return _dumpBeforeStop;
114 }
115
116 /**
117 * @param dumpBeforeStop true if {@link #dumpStdErr()} is called before stopping
118 */
119 public void setDumpBeforeStop(boolean dumpBeforeStop)
120 {
121 _dumpBeforeStop = dumpBeforeStop;
122 }
123
124 89
125 90
126 /* ------------------------------------------------------------ */ 91 /* ------------------------------------------------------------ */
127 @Override 92 @Override
128 protected void doStart() throws Exception 93 protected void doStart() throws Exception
147 catch(Throwable e) 112 catch(Throwable e)
148 { 113 {
149 mex.add(e); 114 mex.add(e);
150 } 115 }
151 } 116 }
152 117 /*
153 if (isDumpAfterStart()) 118 if (isDumpAfterStart())
154 dumpStdErr(); 119 dumpStdErr();
155 120 */
156 mex.ifExceptionThrow(); 121 mex.ifExceptionThrow();
157 } 122 }
158 123
159 /* ------------------------------------------------------------ */ 124 /* ------------------------------------------------------------ */
160 @Override 125 @Override
161 protected void doStop() throws Exception 126 protected void doStop() throws Exception
162 { 127 {
128 /*
163 if (isDumpBeforeStop()) 129 if (isDumpBeforeStop())
164 dumpStdErr(); 130 dumpStdErr();
165 131 */
166 MultiException mex=new MultiException(); 132 MultiException mex=new MultiException();
167 /* 133 /*
168 if (_graceful>0) 134 if (_graceful>0)
169 { 135 {
170 LOG.info("Graceful shutdown {}",connector); 136 LOG.info("Graceful shutdown {}",connector);