FileDocCategorySizeDatePackage
StandardServerMBean.javaAPI DocApache Tomcat 6.0.143456Fri Jul 20 04:20:32 BST 2007org.apache.catalina.mbeans

StandardServerMBean

public class StandardServerMBean extends org.apache.tomcat.util.modeler.BaseModelMBean

A ModelMBean implementation for the org.apache.catalina.core.StandardServer component.

author
Amy Roh
version
$Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $

Fields Summary
private static MBeanServer
mserver
The MBeanServer for this application.
Constructors Summary
public StandardServerMBean()
Construct a ModelMBean with default ModelMBeanInfo information.

exception
MBeanException if the initializer of an object throws an exception
exception
RuntimeOperationsException if an IllegalArgumentException occurs



    // ----------------------------------------------------------- Constructors


                                   
     
           

        super();

    
Methods Summary
public synchronized voidstore()
Write the configuration information for this entire Server out to the server.xml configuration file.

exception
InstanceNotFoundException if the managed resource object cannot be found
exception
MBeanException if the initializer of the object throws an exception, or persistence is not supported
exception
RuntimeOperationsException if an exception is reported by the persistence mechanism


        Server server = ServerFactory.getServer();
        if (server instanceof StandardServer) {
            try {
                ((StandardServer) server).storeConfig();
            } catch (Exception e) {
                throw new MBeanException(e, "Error updating conf/server.xml");
            }
        }