You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by am...@apache.org on 2001/11/07 02:36:37 UTC

cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans HttpConnectorMBean.java LoaderMBean.java LoggerMBean.java ManagerMBean.java RealmMBean.java StandardContextMBean.java StandardHostMBean.java StandardServiceMBean.java ValveBaseMBean.java mbeans-descriptors.xml

amyroh      01/11/06 17:36:37

  Modified:    catalina/src/share/org/apache/catalina/mbeans
                        mbeans-descriptors.xml
  Added:       catalina/src/share/org/apache/catalina/mbeans
                        HttpConnectorMBean.java LoaderMBean.java
                        LoggerMBean.java ManagerMBean.java RealmMBean.java
                        StandardContextMBean.java StandardHostMBean.java
                        StandardServiceMBean.java ValveBaseMBean.java
  Log:
  Add override MBeans for various Catalina components that simulate a
  "parent" attribute to provide a consistent way for admin applications to
  navigate to the parent component of any component.
  
  Revision  Changes    Path
  1.8       +160 -18   jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/mbeans-descriptors.xml
  
  Index: mbeans-descriptors.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/mbeans-descriptors.xml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- mbeans-descriptors.xml	2001/11/05 23:03:17	1.7
  +++ mbeans-descriptors.xml	2001/11/07 01:36:36	1.8
  @@ -6,13 +6,14 @@
   <!--
        Descriptions of JMX MBeans for Catalina
   
  -     $Id: mbeans-descriptors.xml,v 1.7 2001/11/05 23:03:17 craigmcc Exp $
  +     $Id: mbeans-descriptors.xml,v 1.8 2001/11/07 01:36:36 amyroh Exp $
    -->
   
   <mbeans-descriptors>
   
   
     <mbean         name="AccessLogValve"
  +            className="org.apache.catalina.mbeans.ValveBaseMBean"
             description="Valve that generates a web server access log"
                  domain="Catalina"
                   group="Valve"
  @@ -20,12 +21,18 @@
   
       <attribute   name="container"
             description="The Container whose pipeline this Valve is a component of"
  -                 type="org.apache.catalina.Container"/>
  +                 type="org.apache.catalina.Container"
  +            writeable="false"/>
   
       <attribute   name="directory"
             description="The directory in which log files are created"
                    type="java.lang.String"/>
   
  +    <attribute   name="parent"
  +          description="Parent (Container) that owns this Valve"
  +                 type="org.apache.catalina.Container"
  +            writeable="false"/>
  +
       <attribute   name="pattern"
             description="The pattern used to format our access log lines"
                    type="java.lang.String"/>
  @@ -70,6 +77,11 @@
             description="The Manager implementation with which this Container is associated"
                    type="org.apache.catalina.Manager"/>
   
  +    <attribute   name="parent"
  +          description="Parent (Container) that owns this default context"
  +                 type="org.apache.catalina.Container"
  +            writeable="false"/>
  +
       <attribute   name="reloadable"
             description="The reloadable flag for this web application"
                    type="boolean"/>
  @@ -85,6 +97,7 @@
   
   
     <mbean         name="FileLogger"
  +            className="org.apache.catalina.mbeans.LoggerMBean"
             description="Implementation of Logger that appends log messages to a file"
                  domain="Catalina"
                   group="Logger"
  @@ -92,12 +105,18 @@
   
       <attribute   name="container"
             description="The Container with which this Logger has been associated"
  -                 type="org.apache.catalina.Container"/>
  +                 type="org.apache.catalina.Container"
  +            writeable="false"/>
   
       <attribute   name="directory"
             description="The directory in which log files are created"
                    type="java.lang.String"/>
   
  +    <attribute   name="parent"
  +          description="Parent (Container) that owns this logger"
  +                 type="org.apache.catalina.Container"
  +            writeable="false"/>
  +
       <attribute   name="prefix"
             description="The prefix that is added to log file filenames"
                    type="java.lang.String"/>
  @@ -120,6 +139,7 @@
   
   
     <mbean         name="Http10Connector"
  +            className="org.apache.catalina.mbeans.HttpConnectorMBean"
             description="HTTP/1.0 Connector for Tomcat Standalone"
                  domain="Catalina"
                   group="Connector"
  @@ -162,6 +182,11 @@
             description="The maximum number of processors allowed"
                    type="int"/>
   
  +    <attribute   name="parent"
  +          description="Parent (Service) that owns this Connector"
  +                 type="org.apache.catalina.Service"
  +            writeable="false"/>
  +
       <attribute   name="port"
             description="TCP port number to listen on"
                    type="int"/>
  @@ -196,6 +221,7 @@
   
   
     <mbean         name="Http11Connector"
  +            className="org.apache.catalina.mbeans.HttpConnectorMBean"
             description="HTTP/1.1 Connector for Tomcat Standalone"
                  domain="Catalina"
                   group="Connector"
  @@ -242,6 +268,11 @@
             description="The maximum number of processors allowed"
                    type="int"/>
   
  +    <attribute   name="parent"
  +          description="Parent (Service) that owns this Connector"
  +                 type="org.apache.catalina.Service"
  +            writeable="false"/>
  +            
       <attribute   name="port"
             description="TCP port number to listen on"
                    type="int"/>
  @@ -268,7 +299,8 @@
   
       <attribute   name="service"
             description="Service that owns this Connector"
  -                 type="org.apache.catalina.Service"/>
  +                 type="org.apache.catalina.Service"
  +            writeable="false"/>
   
       <constructor name="HttpConnector"/>
   
  @@ -276,6 +308,7 @@
   
   
     <mbean         name="JDBCRealm"
  +            className="org.apache.catalina.mbeans.RealmMBean"
             description="Implmentation of Realm that works with any JDBC supported database"
                  domain="Catalina"
                   group="Realm"
  @@ -295,7 +328,8 @@
   
       <attribute   name="container"
             description="The Container with which this Realm is associated"
  -                 type="org.apache.catalina.Container"/>
  +                 type="org.apache.catalina.Container"
  +            writeable="false"/>
   
       <attribute   name="debug"
             description="The debugging detail level for this component"
  @@ -309,6 +343,11 @@
             description="The JDBC driver to use"
                    type="java.lang.String"/>
   
  +    <attribute   name="parent"
  +          description="Parent (Container) that owns this Realm"
  +                 type="org.apache.catalina.Container"
  +            writeable="false"/>
  +
       <attribute   name="roleNameCol"
             description="The column in the user role table that names a role"
                    type="java.lang.String"/>
  @@ -335,6 +374,7 @@
   
   
     <mbean         name="JNDIRealm"
  +            className="org.apache.catalina.mbeans.RealmMBean"
             description="Implementation of Realm that works with a directory server accessed via the Java Naming and Directory Interface (JNDI) APIs"
                  domain="Catalina"
                   group="Realm"
  @@ -354,7 +394,8 @@
   
       <attribute   name="container"
             description="The Container with which this Realm is associated"
  -                 type="org.apache.catalina.Container"/>
  +                 type="org.apache.catalina.Container"
  +            writeable="false"/>
   
       <attribute   name="debug"
             description="The debugging detail level for this component"
  @@ -364,6 +405,11 @@
             description="Digest algorithm used in storing passwords in a non-plaintext format"
                    type="java.lang.String"/>
   
  +    <attribute   name="parent"
  +          description="Parent (Container) that owns this Realm"
  +                 type="org.apache.catalina.Container"
  +            writeable="false"/>
  +            
       <attribute   name="roleBase"
             description="The base element for role searches"
                    type="java.lang.String"/>
  @@ -386,6 +432,7 @@
   
   
     <mbean         name="MemoryRealm"
  +            className="org.apache.catalina.mbeans.RealmMBean"
             description="Simple implementation of Realm that reads an XML file to configure the valid users, passwords, and roles"
                  domain="Catalina"
                   group="Realm"
  @@ -393,12 +440,18 @@
   
       <attribute   name="container"
             description="The Container with which this Realm is associated"
  -                 type="org.apache.catalina.Container"/>
  +                 type="org.apache.catalina.Container"
  +            writeable="false"/>
   
       <attribute   name="debug"
             description="The debugging detail level for this component"
                    type="int"/>
   
  +    <attribute   name="parent"
  +          description="Parent (Container) that owns this Realm"
  +                 type="org.apache.catalina.Container"
  +            writeable="false"/>
  +            
       <attribute   name="pathname"
             description="The pathname of the XML file containing our database information"
                    type="java.lang.String"/>
  @@ -409,6 +462,7 @@
   
   
     <mbean         name="RemoteAddrValve"
  +            className="org.apache.catalina.mbeans.ValveBaseMBean"
             description="Concrete implementation of RequestFilterValve that filters based on the string representation of the remote client's IP address"
                  domain="Catalina"
                   group="Valve"
  @@ -420,18 +474,25 @@
   
       <attribute   name="container"
             description="The Container with which this Valve is associated"
  -                 type="org.apache.catalina.Container"/>
  +                 type="org.apache.catalina.Container"
  +            writeable="false"/>
   
       <attribute   name="deny"
             description="The comma-delimited set of deny expressions"
                    type="java.lang.String"/>
   
  +    <attribute   name="parent"
  +          description="Parent (Container) that owns this Valve"
  +                 type="org.apache.catalina.Container"
  +            writeable="false"/>
  +            
       <constructor name="RemoteAddrValve"/>
   
     </mbean>
   
   
     <mbean         name="RemoteHostValve"
  +            className="org.apache.catalina.mbeans.ValveBaseMBean"
             description="Concrete implementation of RequestFilterValve that filters based on the string representation of the remote client's host name"
                  domain="Catalina"
                   group="Valve"
  @@ -443,18 +504,25 @@
   
       <attribute   name="container"
             description="The Container with which this Valve is associated"
  -                 type="org.apache.catalina.Container"/>
  +                 type="org.apache.catalina.Container"
  +            writeable="false"/>
   
       <attribute   name="deny"
             description="The comma-delimited set of deny expressions"
                    type="java.lang.String"/>
   
  +    <attribute   name="parent"
  +          description="Parent (Container) that owns this Valve"
  +                 type="org.apache.catalina.Container"
  +            writeable="false"/>
  +            
       <constructor name="RemoteHostValve"/>
   
     </mbean>
   
   
     <mbean         name="RequestDumperValve"
  +            className="org.apache.catalina.mbeans.ValveBaseMBean"
             description="Implementation of a Valve that logs interesting contents from the specified Request and the corresponding Response"
                  domain="Catalina"
                   group="Valve"
  @@ -462,18 +530,25 @@
   
       <attribute   name="container"
             description="The Container with which this Realm is associated"
  -                 type="org.apache.catalina.Container"/>
  +                 type="org.apache.catalina.Container"
  +            writeable="false"/>
   
       <attribute   name="debug"
             description="The debugging detail level for this component"
                    type="int"/>
   
  +    <attribute   name="parent"
  +          description="Parent (Container) that owns this Valve"
  +                 type="org.apache.catalina.Container"
  +            writeable="false"/>
  +
       <constructor name="RequestDumperValve"/>
   
     </mbean>
   
   
     <mbean         name="SingleSignOn"
  +            className="org.apache.catalina.mbeans.ValveBaseMBean"
             description="A Valve that supports a 'single signon' user experience"
                  domain="Catalina"
                   group="Valve"
  @@ -481,14 +556,21 @@
   
       <attribute   name="container"
             description="The Container with which this Valve is associated"
  -                 type="org.apache.catalina.Container"/>
  +                 type="org.apache.catalina.Container"
  +            writeable="false"/>
   
  +    <attribute   name="parent"
  +          description="Parent (Container) that owns this Valve"
  +                 type="org.apache.catalina.Container"
  +            writeable="false"/>
  +            
       <constructor name="SingleSignOn"/>
   
     </mbean>
   
   
     <mbean         name="StandardContext"
  +            className="org.apache.catalina.mbeans.StandardContextMBean"
             description="Standard Context Component"
                  domain="Catalina"
                   group="Context"
  @@ -522,6 +604,11 @@
             description="The DefaultContext override flag for this web application"
                    type="boolean"/>
   
  +    <attribute   name="parent"
  +          description="Parent (Host) that owns this Context"
  +                 type="org.apache.catalina.Host"
  +            writeable="false"/>
  +
       <attribute   name="realm"
             description="The Realm implementation with which this Container is associated"
                    type="org.apache.catalina.Realm"/>
  @@ -597,7 +684,8 @@
   
       <attribute   name="service"
             description="Service that owns this Engine"
  -                 type="org.apache.catalina.Service"/>
  +                 type="org.apache.catalina.Service"
  +            writeable="false"/>
   
       <constructor name="StandardEngine"/>
   
  @@ -651,6 +739,7 @@
   
   
     <mbean         name="StandardHost"
  +            className="org.apache.catalina.mbeans.StandardHostMBean"
             description="Standard Host Component"
                  domain="Catalina"
                   group="Host"
  @@ -668,6 +757,11 @@
             description="The Logger implementation with which this Container is associated"
                    type="org.apache.catalina.Logger"/>
   
  +    <attribute   name="parent"
  +          description="Parent (Engine) that owns this Host"
  +                 type="org.apache.catalina.Engine"
  +            writeable="false"/>
  +
       <attribute   name="name"
             description="Unique name of this Host"
                    type="java.lang.String"/>
  @@ -752,6 +846,7 @@
   
   
     <mbean         name="StandardManager"
  +            className="org.apache.catalina.mbeans.ManagerMBean"
             description="Standard implementation of the Manager interface"
                  domain="Catalina"
                   group="Manager"
  @@ -767,7 +862,8 @@
   
       <attribute   name="container"
             description="The Container with which this Manager is associated"
  -                 type="org.apache.catalina.Container"/>
  +                 type="org.apache.catalina.Container"
  +            writeable="false"/>
   
       <attribute   name="debug"
             description="The debugging detail level for this component"
  @@ -794,6 +890,11 @@
                    type="java.lang.String"
               writeable="false"/>
   
  +    <attribute   name="parent"
  +          description="Parent (Container) that owns this Manager"
  +                 type="org.apache.catalina.Container"
  +            writeable="false"/>
  +
       <attribute   name="pathname"
             description="Path name of the disk file in which active sessions"
                    type="java.lang.String"/>
  @@ -887,6 +988,7 @@
   
   
     <mbean         name="StandardService"
  +            className="org.apache.catalina.mbeans.StandardServiceMBean"
             description="Standard Service Component"
                  domain="Catalina"
                   group="Service"
  @@ -894,12 +996,18 @@
   
       <attribute   name="container"
             description="The Container (Engine) processing requests for this Service"
  -                 type="org.apache.catalina.Container"/>
  +                 type="org.apache.catalina.Container"
  +            writeable="false"/>
   
       <attribute   name="name"
             description="Unique name of this Service"
                    type="java.lang.String"/>
   
  +    <attribute   name="parent"
  +          description="Parent (Server) that owns this Service"
  +                 type="org.apache.catalina.Server"
  +            writeable="false"/>
  +
       <attribute   name="server"
             description="The Server that owns this Service"
                    type="org.apache.catalina.Server"
  @@ -934,6 +1042,7 @@
   
   
     <mbean         name="SystemErrLogger"
  +            className="org.apache.catalina.mbeans.LoggerMBean"
             description="Simple implementation of Logger that writes to System.err"
                  domain="Catalina"
                   group="Logger"
  @@ -941,8 +1050,14 @@
   
       <attribute   name="container"
             description="The Container with which this Logger has been associated"
  -                 type="org.apache.catalina.Container"/>
  +                 type="org.apache.catalina.Container"
  +            writeable="false"/>
   
  +    <attribute   name="parent"
  +          description="Parent (Container) that owns this logger"
  +                 type="org.apache.catalina.Container"
  +            writeable="false"/>
  +            
       <attribute   name="verbosity"
             description="The verbosity level for above which log messages may be filtered"
                    type="int"/>
  @@ -953,6 +1068,7 @@
   
   
     <mbean         name="SystemOutLogger"
  +            className="org.apache.catalina.mbeans.LoggerMBean"
             description="Simple implementation of Logger that writes to System.out"
                  domain="Catalina"
                   group="Logger"
  @@ -960,7 +1076,13 @@
   
       <attribute   name="container"
             description="The Container with which this Logger has been associated"
  -                 type="org.apache.catalina.Container"/>
  +                 type="org.apache.catalina.Container"
  +            writeable="false"/>
  +
  +    <attribute   name="parent"
  +          description="Parent (Container) that owns this logger"
  +                 type="org.apache.catalina.Container"
  +            writeable="false"/>
   
       <attribute   name="verbosity"
             description="The verbosity level for above which log messages may be filtered"
  @@ -972,6 +1094,7 @@
   
   
     <mbean         name="WarpConnector"
  +            className="org.apache.catalina.mbeans.HttpConnectorMBean"
             description="WARP Connector Component"
                  domain="Catalina"
                   group="Connector"
  @@ -1014,6 +1137,11 @@
             description="The maximum number of processors allowed"
                    type="int"/>
   
  +    <attribute   name="parent"
  +          description="Parent (Service) that owns this Connector"
  +                 type="org.apache.catalina.Service"
  +            writeable="false"/>
  +            
       <attribute   name="port"
             description="TCP port number to listen on"
                    type="int"/>
  @@ -1040,7 +1168,8 @@
   
       <attribute   name="service"
             description="Service that owns this Connector"
  -                 type="org.apache.catalina.Service"/>
  +                 type="org.apache.catalina.Service"
  +            writeable="false"/>
   
       <constructor name="HttpConnector"/>
   
  @@ -1048,6 +1177,7 @@
   
   
     <mbean         name="WarpEngine"
  +            className="org.apache.catalina.mbeans.StandardEngineMBean"
             description="Engine Component for WARP Connector"
                  domain="Catalina"
                   group="Engine"
  @@ -1069,9 +1199,15 @@
             description="Unique name of this Engine"
                    type="java.lang.String"/>
   
  +    <attribute   name="parent"
  +          description="Parent (Service) that owns this Engine"
  +                 type="org.apache.catalina.Service"
  +            writeable="false"/>
  +            
       <attribute   name="service"
             description="Service that owns this Engine"
  -                 type="org.apache.catalina.Service"/>
  +                 type="org.apache.catalina.Service"
  +            writeable="false"/>
   
       <constructor name="StandardEngine"/>
   
  @@ -1125,6 +1261,7 @@
   
   
     <mbean         name="WebappLoader"
  +            className="org.apache.catalina.mbeans.LoaderMBean"
             description="Classloader implementation which is specialized for handling web applications"
                  domain="Catalina"
                   group="Loader"
  @@ -1146,6 +1283,11 @@
             description="The 'follow standard delegation model' flag that will be used to configure our ClassLoader"
                    type="boolean"/>
   
  +    <attribute   name="parent"
  +          description="Parent (Container) that owns this Loader"
  +                 type="org.apache.catalina.Container"
  +            writeable="false"/>
  +            
       <attribute   name="reloadable"
             description="The reloadable flag for this Loader"
                    type="boolean"/>
  
  
  
  1.1                  jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/HttpConnectorMBean.java
  
  Index: HttpConnectorMBean.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/HttpConnectorMBean.java,v 1.1 2001/11/07 01:36:36 amyroh Exp $
   * $Revision: 1.1 $
   * $Date: 2001/11/07 01:36:36 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.catalina.mbeans;
  
  
  import javax.management.MBeanException;
  import javax.management.RuntimeOperationsException;
  import org.apache.catalina.Connector;
  import org.apache.catalina.Service;
  import org.apache.commons.modeler.BaseModelMBean;
  
  
  /**
   * <p>A <strong>ModelMBean</strong> implementation for the
   * <code>org.apache.catalina.http.HttpConnector</code> component.</p>
   *
   * @author Amy Roh
   * @version $Revision: 1.1 $ $Date: 2001/11/07 01:36:36 $
   */
  
  public class HttpConnectorMBean extends BaseModelMBean {
  
  
      // ----------------------------------------------------------- Constructors
  
  
      /**
       * Construct a <code>ModelMBean</code> with default
       * <code>ModelMBeanInfo</code> information.
       *
       * @exception MBeanException if the initializer of an object
       *  throws an exception
       * @exception RuntimeOperationsException if an IllegalArgumentException
       *  occurs
       */
      public HttpConnectorMBean()
          throws MBeanException, RuntimeOperationsException {
  
          super();
  
      }
  
  
      // ------------------------------------------------------------- Attributes
  
  
      /**
       * Return the parent (Service) that owns this connector.
       */
      public Service getParent() {
  
          if (this.resource == null)
              return (null);
          Connector connector = (Connector) this.resource;
          return (connector.getService());
  
      }
  
  
      // ------------------------------------------------------------- Operations
  
  
  }
  
  
  
  1.1                  jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/LoaderMBean.java
  
  Index: LoaderMBean.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/LoaderMBean.java,v 1.1 2001/11/07 01:36:36 amyroh Exp $
   * $Revision: 1.1 $
   * $Date: 2001/11/07 01:36:36 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.catalina.mbeans;
  
  
  import javax.management.MBeanException;
  import javax.management.RuntimeOperationsException;
  import org.apache.catalina.Container;
  import org.apache.catalina.Loader;
  import org.apache.commons.modeler.BaseModelMBean;
  
  
  /**
   * <p>A <strong>ModelMBean</strong> implementation for the
   * <code>org.apache.catalina.Loader</code> component.</p>
   *
   * @author Amy Roh
   * @version $Revision: 1.1 $ $Date: 2001/11/07 01:36:36 $
   */
  
  public class LoaderMBean extends BaseModelMBean {
  
  
      // ----------------------------------------------------------- Constructors
  
  
      /**
       * Construct a <code>ModelMBean</code> with default
       * <code>ModelMBeanInfo</code> information.
       *
       * @exception MBeanException if the initializer of an object
       *  throws an exception
       * @exception RuntimeOperationsException if an IllegalArgumentException
       *  occurs
       */
      public LoaderMBean()
          throws MBeanException, RuntimeOperationsException {
  
          super();
  
      }
  
  
      // ------------------------------------------------------------- Attributes
  
  
      /**
       * Return the parent (Container) that owns this Loader.
       */
      public Container getParent() {
  
          if (this.resource == null)
              return (null);
          Loader loader = (Loader) this.resource;
          return (loader.getContainer());
  
      }
  
  
      // ------------------------------------------------------------- Operations
  
  
  }
  
  
  
  1.1                  jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/LoggerMBean.java
  
  Index: LoggerMBean.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/LoggerMBean.java,v 1.1 2001/11/07 01:36:36 amyroh Exp $
   * $Revision: 1.1 $
   * $Date: 2001/11/07 01:36:36 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.catalina.mbeans;
  
  
  import javax.management.MBeanException;
  import javax.management.RuntimeOperationsException;
  import org.apache.catalina.Container;
  import org.apache.catalina.Logger;
  import org.apache.commons.modeler.BaseModelMBean;
  
  
  /**
   * <p>A <strong>ModelMBean</strong> implementation for the
   * <code>org.apache.catalina.Logger</code> component.</p>
   *
   * @author Amy Roh
   * @version $Revision: 1.1 $ $Date: 2001/11/07 01:36:36 $
   */
  
  public class LoggerMBean extends BaseModelMBean {
  
  
      // ----------------------------------------------------------- Constructors
  
  
      /**
       * Construct a <code>ModelMBean</code> with default
       * <code>ModelMBeanInfo</code> information.
       *
       * @exception MBeanException if the initializer of an object
       *  throws an exception
       * @exception RuntimeOperationsException if an IllegalArgumentException
       *  occurs
       */
      public LoggerMBean()
          throws MBeanException, RuntimeOperationsException {
  
          super();
  
      }
  
  
      // ------------------------------------------------------------- Attributes
  
  
      /**
       * Return the parent (Container) that owns this logger.
       */
      public Container getParent() {
  
          if (this.resource == null)
              return (null);
          Logger logger = (Logger) this.resource;
          return (logger.getContainer());
  
      }
  
  
      // ------------------------------------------------------------- Operations
  
  
  }
  
  
  
  1.1                  jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/ManagerMBean.java
  
  Index: ManagerMBean.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/ManagerMBean.java,v 1.1 2001/11/07 01:36:36 amyroh Exp $
   * $Revision: 1.1 $
   * $Date: 2001/11/07 01:36:36 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.catalina.mbeans;
  
  
  import javax.management.MBeanException;
  import javax.management.RuntimeOperationsException;
  import org.apache.catalina.Container;
  import org.apache.catalina.Manager;
  import org.apache.commons.modeler.BaseModelMBean;
  
  
  /**
   * <p>A <strong>ModelMBean</strong> implementation for the
   * <code>org.apache.catalina.Manager</code> component.</p>
   *
   * @author Amy Roh
   * @version $Revision: 1.1 $ $Date: 2001/11/07 01:36:36 $
   */
  
  public class ManagerMBean extends BaseModelMBean {
  
  
      // ----------------------------------------------------------- Constructors
  
  
      /**
       * Construct a <code>ModelMBean</code> with default
       * <code>ModelMBeanInfo</code> information.
       *
       * @exception MBeanException if the initializer of an object
       *  throws an exception
       * @exception RuntimeOperationsException if an IllegalArgumentException
       *  occurs
       */
      public ManagerMBean()
          throws MBeanException, RuntimeOperationsException {
  
          super();
  
      }
  
  
      // ------------------------------------------------------------- Attributes
  
  
      /**
       * Return the parent (Container) that owns this Manager.
       */
      public Container getParent() {
  
          if (this.resource == null)
              return (null);
          Manager manager = (Manager) this.resource;
          return (manager.getContainer());
  
      }
  
  
      // ------------------------------------------------------------- Operations
  
  
  }
  
  
  
  1.1                  jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/RealmMBean.java
  
  Index: RealmMBean.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/RealmMBean.java,v 1.1 2001/11/07 01:36:36 amyroh Exp $
   * $Revision: 1.1 $
   * $Date: 2001/11/07 01:36:36 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.catalina.mbeans;
  
  
  import javax.management.MBeanException;
  import javax.management.RuntimeOperationsException;
  import org.apache.catalina.Container;
  import org.apache.catalina.Realm;
  import org.apache.commons.modeler.BaseModelMBean;
  
  
  /**
   * <p>A <strong>ModelMBean</strong> implementation for the
   * <code>org.apache.catalina.Realm</code> component.</p>
   *
   * @author Amy Roh
   * @version $Revision: 1.1 $ $Date: 2001/11/07 01:36:36 $
   */
  
  public class RealmMBean extends BaseModelMBean {
  
  
      // ----------------------------------------------------------- Constructors
  
  
      /**
       * Construct a <code>ModelMBean</code> with default
       * <code>ModelMBeanInfo</code> information.
       *
       * @exception MBeanException if the initializer of an object
       *  throws an exception
       * @exception RuntimeOperationsException if an IllegalArgumentException
       *  occurs
       */
      public RealmMBean()
          throws MBeanException, RuntimeOperationsException {
  
          super();
  
      }
  
  
      // ------------------------------------------------------------- Attributes
  
  
      /**
       * Return the parent (Container) that owns this Realm.
       */
      public Container getParent() {
  
          if (this.resource == null)
              return (null);
          Realm realm = (Realm) this.resource;
          return (realm.getContainer());
  
      }
  
  
      // ------------------------------------------------------------- Operations
  
  
  }
  
  
  
  1.1                  jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/StandardContextMBean.java
  
  Index: StandardContextMBean.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/StandardContextMBean.java,v 1.1 2001/11/07 01:36:36 amyroh Exp $
   * $Revision: 1.1 $
   * $Date: 2001/11/07 01:36:36 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.catalina.mbeans;
  
  
  import javax.management.MBeanException;
  import javax.management.RuntimeOperationsException;
  import org.apache.catalina.Context;
  import org.apache.catalina.Host;
  import org.apache.commons.modeler.BaseModelMBean;
  
  
  /**
   * <p>A <strong>ModelMBean</strong> implementation for the
   * <code>org.apache.catalina.core.StandardContext</code> component.</p>
   *
   * @author Amy Roh
   * @version $Revision: 1.1 $ $Date: 2001/11/07 01:36:36 $
   */
  
  public class StandardContextMBean extends BaseModelMBean {
  
  
      // ----------------------------------------------------------- Constructors
  
  
      /**
       * Construct a <code>ModelMBean</code> with default
       * <code>ModelMBeanInfo</code> information.
       *
       * @exception MBeanException if the initializer of an object
       *  throws an exception
       * @exception RuntimeOperationsException if an IllegalArgumentException
       *  occurs
       */
      public StandardContextMBean()
          throws MBeanException, RuntimeOperationsException {
  
          super();
  
      }
  
  
      // ------------------------------------------------------------- Attributes
  
  
      /**
       * Return the parent (Host) that owns this Context.
       */
      public Host getParent() {
  
          if (this.resource == null)
              return (null);
          Context context = (Context) this.resource;
          return ((Host) context.getParent());
  
      }
  
  
      // ------------------------------------------------------------- Operations
  
  
  }
  
  
  
  1.1                  jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/StandardHostMBean.java
  
  Index: StandardHostMBean.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/StandardHostMBean.java,v 1.1 2001/11/07 01:36:36 amyroh Exp $
   * $Revision: 1.1 $
   * $Date: 2001/11/07 01:36:36 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.catalina.mbeans;
  
  
  import javax.management.MBeanException;
  import javax.management.RuntimeOperationsException;
  import org.apache.catalina.Engine;
  import org.apache.catalina.Host;
  import org.apache.commons.modeler.BaseModelMBean;
  
  
  /**
   * <p>A <strong>ModelMBean</strong> implementation for the
   * <code>org.apache.catalina.core.StandardHost</code> component.</p>
   *
   * @author Amy Roh
   * @version $Revision: 1.1 $ $Date: 2001/11/07 01:36:36 $
   */
  
  public class StandardHostMBean extends BaseModelMBean {
  
  
      // ----------------------------------------------------------- Constructors
  
  
      /**
       * Construct a <code>ModelMBean</code> with default
       * <code>ModelMBeanInfo</code> information.
       *
       * @exception MBeanException if the initializer of an object
       *  throws an exception
       * @exception RuntimeOperationsException if an IllegalArgumentException
       *  occurs
       */
      public StandardHostMBean()
          throws MBeanException, RuntimeOperationsException {
  
          super();
  
      }
  
  
      // ------------------------------------------------------------- Attributes
  
  
      /**
       * Return the parent (Engine) that owns this Host.
       */
      public Engine getParent() {
  
          if (this.resource == null)
              return (null);
          Host host = (Host) this.resource;
          return ((Engine) host.getParent());
  
      }
  
  
      // ------------------------------------------------------------- Operations
  
  
  }
  
  
  
  1.1                  jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/StandardServiceMBean.java
  
  Index: StandardServiceMBean.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/StandardServiceMBean.java,v 1.1 2001/11/07 01:36:36 amyroh Exp $
   * $Revision: 1.1 $
   * $Date: 2001/11/07 01:36:36 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.catalina.mbeans;
  
  
  import javax.management.MBeanException;
  import javax.management.RuntimeOperationsException;
  import org.apache.catalina.Server;
  import org.apache.catalina.Service;
  import org.apache.commons.modeler.BaseModelMBean;
  
  
  /**
   * <p>A <strong>ModelMBean</strong> implementation for the
   * <code>org.apache.catalina.core.StandardService</code> component.</p>
   *
   * @author Amy Roh
   * @version $Revision: 1.1 $ $Date: 2001/11/07 01:36:36 $
   */
  
  public class StandardServiceMBean extends BaseModelMBean {
  
  
      // ----------------------------------------------------------- Constructors
  
  
      /**
       * Construct a <code>ModelMBean</code> with default
       * <code>ModelMBeanInfo</code> information.
       *
       * @exception MBeanException if the initializer of an object
       *  throws an exception
       * @exception RuntimeOperationsException if an IllegalArgumentException
       *  occurs
       */
      public StandardServiceMBean()
          throws MBeanException, RuntimeOperationsException {
  
          super();
  
      }
  
  
      // ------------------------------------------------------------- Attributes
  
  
      /**
       * Return the parent (Server) that owns this Service.
       */
      public Server getParent() {
  
          if (this.resource == null)
              return (null);
          Service service = (Service) this.resource;
          return (service.getServer());
  
      }
  
  
      // ------------------------------------------------------------- Operations
  
  
  }
  
  
  
  1.1                  jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/ValveBaseMBean.java
  
  Index: ValveBaseMBean.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/ValveBaseMBean.java,v 1.1 2001/11/07 01:36:36 amyroh Exp $
   * $Revision: 1.1 $
   * $Date: 2001/11/07 01:36:36 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.catalina.mbeans;
  
  
  import javax.management.MBeanException;
  import javax.management.RuntimeOperationsException;
  import org.apache.catalina.Container;
  import org.apache.catalina.valves.ValveBase;
  import org.apache.commons.modeler.BaseModelMBean;
  
  
  /**
   * <p>A <strong>ModelMBean</strong> implementation for the
   * <code>org.apache.catalina.valves.ValveBase</code> component.</p>
   *
   * @author Amy Roh
   * @version $Revision: 1.1 $ $Date: 2001/11/07 01:36:36 $
   */
  
  public class ValveBaseMBean extends BaseModelMBean {
  
  
      // ----------------------------------------------------------- Constructors
  
  
      /**
       * Construct a <code>ModelMBean</code> with default
       * <code>ModelMBeanInfo</code> information.
       *
       * @exception MBeanException if the initializer of an object
       *  throws an exception
       * @exception RuntimeOperationsException if an IllegalArgumentException
       *  occurs
       */
      public ValveBaseMBean()
          throws MBeanException, RuntimeOperationsException {
  
          super();
  
      }
  
  
      // ------------------------------------------------------------- Attributes
  
  
      /**
       * Return the parent (Container) that owns this Valve.
       */
      public Container getParent() {
  
          if (this.resource == null)
              return (null);
          ValveBase valve = (ValveBase) this.resource;
          return ((Container) valve.getContainer());
  
      }
  
  
      // ------------------------------------------------------------- Operations
  
  
  }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>