Save This Page
Home » apache-tomcat-6.0.26-src » org.apache » catalina » core » [javadoc | source]
org.apache.catalina.core
public final class: StandardServer [javadoc | source]
java.lang.Object
   org.apache.catalina.core.StandardServer

All Implemented Interfaces:
    MBeanRegistration, Server, Lifecycle

Standard implementation of the Server interface, available for use (but not required) when deploying and starting Catalina.
Field Summary
protected  PropertyChangeSupport support    The property change support for this component. 
protected  String type     
protected  String domain     
protected  String suffix     
protected  ObjectName oname     
protected  MBeanServer mserver     
Constructor:
 public StandardServer() 
Method from org.apache.catalina.core.StandardServer Summary:
addLifecycleListener,   addPropertyChangeListener,   addService,   await,   findLifecycleListeners,   findService,   findServices,   getDomain,   getGlobalNamingContext,   getGlobalNamingResources,   getInfo,   getObjectName,   getPort,   getServerInfo,   getServiceNames,   getShutdown,   init,   initialize,   postDeregister,   postRegister,   preDeregister,   preRegister,   removeLifecycleListener,   removePropertyChangeListener,   removeService,   setGlobalNamingContext,   setGlobalNamingResources,   setPort,   setShutdown,   start,   stop,   stopAwait,   storeConfig,   storeContext,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.catalina.core.StandardServer Detail:
 public  void addLifecycleListener(LifecycleListener listener) 
    Add a LifecycleEvent listener to this component.
 public  void addPropertyChangeListener(PropertyChangeListener listener) 
    Add a property change listener to this component.
 public  void addService(Service service) 
    Add a new Service to the set of defined Services.
 public  void await() 
    Wait until a proper shutdown command is received, then return. This keeps the main thread alive - the thread pool listening for http connections is daemon threads.
 public LifecycleListener[] findLifecycleListeners() 
    Get the lifecycle listeners associated with this lifecycle. If this Lifecycle has no listeners registered, a zero-length array is returned.
 public Service findService(String name) 
    Return the specified Service (if it exists); otherwise return null.
 public Service[] findServices() 
    Return the set of Services defined within this Server.
 public String getDomain() 
 public Context getGlobalNamingContext() 
    Return the global naming resources context.
 public NamingResources getGlobalNamingResources() 
    Return the global naming resources.
 public String getInfo() 
    Return descriptive information about this Server implementation and the corresponding version number, in the format <description>/<version>.
 public ObjectName getObjectName() 
 public int getPort() 
    Return the port number we listen to for shutdown commands.
 public String getServerInfo() 
    Report the current Tomcat Server Release number
 public ObjectName[] getServiceNames() 
    Return the JMX service names.
 public String getShutdown() 
    Return the shutdown command string we are waiting for.
 public  void init() throws Exception 
 public  void initialize() throws LifecycleException 
    Invoke a pre-startup initialization. This is used to allow connectors to bind to restricted ports under Unix operating environments.
 public  void postDeregister() 
 public  void postRegister(Boolean registrationDone) 
 public  void preDeregister() throws Exception 
 public ObjectName preRegister(MBeanServer server,
    ObjectName name) throws Exception 
 public  void removeLifecycleListener(LifecycleListener listener) 
    Remove a LifecycleEvent listener from this component.
 public  void removePropertyChangeListener(PropertyChangeListener listener) 
    Remove a property change listener from this component.
 public  void removeService(Service service) 
    Remove the specified Service from the set associated from this Server.
 public  void setGlobalNamingContext(Context globalNamingContext) 
    Set the global naming resources context.
 public  void setGlobalNamingResources(NamingResources globalNamingResources) 
    Set the global naming resources.
 public  void setPort(int port) 
    Set the port number we listen to for shutdown commands.
 public  void setShutdown(String shutdown) 
    Set the shutdown command we are waiting for.
 public  void start() throws LifecycleException 
    Prepare for the beginning of active use of the public methods of this component. This method should be called before any of the public methods of this component are utilized. It should also send a LifecycleEvent of type START_EVENT to any registered listeners.
 public  void stop() throws LifecycleException 
    Gracefully terminate the active use of the public methods of this component. This method should be the last one called on a given instance of this component. It should also send a LifecycleEvent of type STOP_EVENT to any registered listeners.
 public  void stopAwait() 
 public synchronized  void storeConfig() throws Exception 
    Write the configuration information for this entire Server out to the server.xml configuration file.
 public synchronized  void storeContext(Context context) throws Exception 
    Write the configuration information for Context out to the specified configuration file.
 public String toString() 
    Return a String representation of this component.