tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5 CoyoteConnector.java mbeans-descriptors.xml
Date Mon, 26 Jan 2004 18:15:01 GMT
remm        2004/01/26 10:15:01

  Modified:    catalina/src/share/org/apache/coyote/tomcat5
                        CoyoteConnector.java mbeans-descriptors.xml
  Log:
  - Implement clean shutdown of the connectors (my third proposal).
  - Add pause and resume methods.
  
  Revision  Changes    Path
  1.38      +32 -1     jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteConnector.java
  
  Index: CoyoteConnector.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/CoyoteConnector.java,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- CoyoteConnector.java	24 Jan 2004 07:21:04 -0000	1.37
  +++ CoyoteConnector.java	26 Jan 2004 18:15:01 -0000	1.38
  @@ -1449,6 +1449,37 @@
           }
       }
   
  +
  +    /**
  +     * Pause the connector.
  +     */
  +    public void pause()
  +        throws LifecycleException {
  +        try {
  +            protocolHandler.pause();
  +        } catch (Exception e) {
  +            throw new LifecycleException
  +                (sm.getString
  +                 ("coyoteConnector.protocolHandlerPauseFailed", e));
  +        }
  +    }
  +
  +
  +    /**
  +     * Pause the connector.
  +     */
  +    public void resume()
  +        throws LifecycleException {
  +        try {
  +            protocolHandler.resume();
  +        } catch (Exception e) {
  +            throw new LifecycleException
  +                (sm.getString
  +                 ("coyoteConnector.protocolHandlerResumeFailed", e));
  +        }
  +    }
  +
  +
       /*
        * Translate the attribute name from the legacy Factory names to their
        * internal protocol names.
  
  
  
  1.16      +2 -0      jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/mbeans-descriptors.xml
  
  Index: mbeans-descriptors.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/coyote/tomcat5/mbeans-descriptors.xml,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- mbeans-descriptors.xml	25 Jan 2004 01:52:48 -0000	1.15
  +++ mbeans-descriptors.xml	26 Jan 2004 18:15:01 -0000	1.16
  @@ -192,6 +192,8 @@
   
       <operation name="start" description="Start" impact="ACTION" returnType="void" />
       <operation name="stop" description="Stop" impact="ACTION" returnType="void" />
  +    <operation name="pause" description="Start" impact="ACTION" returnType="void" />
  +    <operation name="resume" description="Stop" impact="ACTION" returnType="void" />
       <operation name="init" description="Init" impact="ACTION" returnType="void" />
       <operation name="destroy" description="Destroy" impact="ACTION" returnType="void"
/>
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message