org.apache.catalina
public interface Service
A given JVM can contain any number of Service instances; however, they are completely independent of each other and share only the basic JVM facilities and classes on the system class path.
Version: $Revision: 520968 $ $Date: 2007-03-21 19:00:39 +0100 (Wed, 21 Mar 2007) $
| Method Summary | |
|---|---|
| void | addConnector(Connector connector)
Add a new Connector to the set of defined Connectors, and associate it
with this Service's Container.
|
| void | addExecutor(Executor ex)
Adds a named executor to the service |
| Connector[] | findConnectors()
Find and return the set of Connectors associated with this Service. |
| Executor[] | findExecutors()
Retrieves all executors |
| Container | getContainer()
Return the Container that handles requests for all
Connectors associated with this Service. |
| Executor | getExecutor(String name)
Retrieves executor by name, null if not found |
| String | getInfo()
Return descriptive information about this Service implementation and
the corresponding version number, in the format
<description>/<version>. |
| String | getName()
Return the name of this Service. |
| Server | getServer()
Return the Server with which we are associated (if any). |
| void | initialize()
Invoke a pre-startup initialization. |
| void | removeConnector(Connector connector)
Remove the specified Connector from the set associated from this
Service. |
| void | removeExecutor(Executor ex)
Removes an executor from the service |
| void | setContainer(Container container)
Set the Container that handles requests for all
Connectors associated with this Service.
|
| void | setName(String name)
Set the name of this Service.
|
| void | setServer(Server server)
Set the Server with which we are associated (if any).
|
Parameters: connector The Connector to be added
Parameters: ex Executor
Returns: Executor[]
Container that handles requests for all
Connectors associated with this Service.Parameters: name String
Returns: Executor
<description>/<version>.Server with which we are associated (if any).Throws: LifecycleException If this server was already initialized.
Parameters: connector The Connector to be removed
Parameters: ex Executor
Container that handles requests for all
Connectors associated with this Service.
Parameters: container The new Container
Parameters: name The new service name
Server with which we are associated (if any).
Parameters: server The server that owns this Service