remm 2004/01/26 10:16:23
Modified: http11/src/java/org/apache/coyote/http11 Http11Protocol.java
Log:
- Implement clean shutdown of the connectors (my third proposal).
- Add pause and resume methods.
Revision Changes Path
1.48 +20 -0
jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Protocol.java
Index: Http11Protocol.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Protocol.java,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -r1.47 -r1.48
--- Http11Protocol.java 22 Jan 2004 18:26:52 -0000 1.47
+++ Http11Protocol.java 26 Jan 2004 18:16:23 -0000 1.48
@@ -222,6 +222,26 @@
log.info(sm.getString("http11protocol.start", "" + ep.getPort()));
}
+ public void pause() throws Exception {
+ try {
+ ep.pauseEndpoint();
+ } catch (Exception ex) {
+ log.error(sm.getString("http11protocol.endpoint.pauseerror"), ex);
+ throw ex;
+ }
+ log.info(sm.getString("http11protocol.pause", "" + ep.getPort()));
+ }
+
+ public void resume() throws Exception {
+ try {
+ ep.resumeEndpoint();
+ } catch (Exception ex) {
+ log.error(sm.getString("http11protocol.endpoint.resumeerror"), ex);
+ throw ex;
+ }
+ log.info(sm.getString("http11protocol.resume", "" + ep.getPort()));
+ }
+
public void destroy() throws Exception {
log.info("Stoping http11 protocol on " + ep.getPort() + " " + tpOname);
ep.stopEndpoint();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]