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

All Implemented Interfaces:
    Service, MBeanRegistration, Lifecycle

Direct Known Subclasses:
    Embedded, Catalina

Standard implementation of the Service interface. The associated Container is generally an instance of Engine, but this is not required.
Field Summary
protected  PropertyChangeSupport support    The property change support for this component. 
protected  Connector[] connectors    The set of Connectors associated with this Service. 
protected  ArrayList<Executor> executors     
protected  Container container    The Container associated with this Service. (In the case of the org.apache.catalina.startup.Embedded subclass, this holds the most recently added Engine.) 
protected  boolean initialized    Has this component been initialized? 
protected  String type     
protected  String domain     
protected  String suffix     
protected  ObjectName oname     
protected  ObjectName controller     
protected  MBeanServer mserver     
Method from org.apache.catalina.core.StandardService Summary:
addConnector,   addExecutor,   addLifecycleListener,   addPropertyChangeListener,   destroy,   findConnectors,   findExecutors,   findLifecycleListeners,   getConnectorNames,   getContainer,   getContainerName,   getDomain,   getExecutor,   getInfo,   getName,   getObjectName,   getServer,   init,   initialize,   postDeregister,   postRegister,   preDeregister,   preRegister,   removeConnector,   removeExecutor,   removeLifecycleListener,   removePropertyChangeListener,   setContainer,   setName,   setServer,   start,   stop,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.catalina.core.StandardService Detail:
 public  void addConnector(Connector connector) 
    Add a new Connector to the set of defined Connectors, and associate it with this Service's Container.
 public  void addExecutor(Executor ex) 
    Adds a named executor to the service
 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 destroy() throws LifecycleException 
 public Connector[] findConnectors() 
    Find and return the set of Connectors associated with this Service.
 public Executor[] findExecutors() 
    Retrieves all executors
 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 ObjectName[] getConnectorNames() 
 public Container getContainer() 
    Return the Container that handles requests for all Connectors associated with this Service.
 public ObjectName getContainerName() 
 public String getDomain() 
 public Executor getExecutor(String name) 
    Retrieves executor by name, null if not found
 public String getInfo() 
    Return descriptive information about this Service implementation and the corresponding version number, in the format <description>/<version>.
 public String getName() 
    Return the name of this Service.
 public ObjectName getObjectName() 
 public Server getServer() 
    Return the Server with which we are associated (if any).
 public  void init() 
 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 removeConnector(Connector connector) 
    Remove the specified Connector from the set associated from this Service. The removed Connector will also be disassociated from our Container.
 public  void removeExecutor(Executor ex) 
    Removes an executor from the service
 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 setContainer(Container container) 
    Set the Container that handles requests for all Connectors associated with this Service.
 public  void setName(String name) 
    Set the name of this Service.
 public  void setServer(Server server) 
    Set the Server with which we are associated (if any).
 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 String toString() 
    Return a String representation of this component.