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.
| Modifier and Type | Method and Description |
|---|---|
| public void | addConnector(Connector
The Connector to be added connector)Add a new Connector to the set of defined Connectors, and associate it with this Service's Container. |
| public void | |
| public Connector[] | Returns: the set of associated ConnectorsFind and return the set of Connectors associated with this Service. |
| public Executor[] | |
| public Engine | Returns: theEngine that handles requests for all
Connectors associated with this Service.
|
| public String | |
| public Executor | |
| public Mapper | |
| public String | |
| public ClassLoader | Returns: the parent class loader for this component. If not set, returngetServer() Server#getParentClassLoader(). If no server
has been set, return the system class loader.
|
| public Server | |
| public void | removeConnector(Connector
The Connector to be removed connector)Remove the specified Connector from the set associated from this Service. |
| public void | |
| public void | setContainer(Engine
The new Engine engine)Set the |
| public void | |
| public void | setParentClassLoader(ClassLoader
The new parent class loader parent)Set the parent class loader for this service. |
| public void |
| addConnector | back to summary |
|---|---|
| public void addConnector(Connector connector) Add a new Connector to the set of defined Connectors, and associate it with this Service's Container.
| |
| addExecutor | back to summary |
|---|---|
| public void addExecutor(Executor ex) Adds a named executor to the service
| |
| findConnectors | back to summary |
|---|---|
| public Connector[] findConnectors() Find and return the set of Connectors associated with this Service.
| |
| findExecutors | back to summary |
|---|---|
| public Executor[] findExecutors() Retrieves all executors
| |
| getContainer | back to summary |
|---|---|
public Engine getContainer()
| |
| getDomain | back to summary |
|---|---|
public String getDomain()
| |
| getExecutor | back to summary |
|---|---|
| public Executor getExecutor(String name) Retrieves executor by name, null if not found | |
| getMapper | back to summary |
|---|---|
public Mapper getMapper()
| |
| getName | back to summary |
|---|---|
public String getName()
| |
| getParentClassLoader | back to summary |
|---|---|
public ClassLoader getParentClassLoader()
| |
| getServer | back to summary |
|---|---|
public Server getServer()
| |
| removeConnector | back to summary |
|---|---|
| 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.
| |
| removeExecutor | back to summary |
|---|---|
| public void removeExecutor(Executor ex) Removes an executor from the service
| |
| setContainer | back to summary |
|---|---|
| public void setContainer(Engine engine) Set the
| |
| setName | back to summary |
|---|---|
| public void setName(String name) Set the name of this Service.
| |
| setParentClassLoader | back to summary |
|---|---|
| public void setParentClassLoader(ClassLoader parent) Set the parent class loader for this service.
| |
| setServer | back to summary |
|---|---|
| public void setServer(Server server) Set the
| |