Service interface. The associated Container is generally an instance of
Engine, but this is not required.
| Modifier and Type | Field and Description |
|---|---|
| protected Connector[] | connectors
The set of Connectors associated with this Service. |
| private final Object | |
| private Engine | |
| protected final ArrayList | executors
The list of executors held by the service. |
| private long | |
| private static final Log | |
| protected final Mapper | mapper
Mapper. |
| protected final MapperListener | mapperListener
Mapper listener. |
| private String | name
The name of this service. |
| private ClassLoader | |
| private Server | server
The |
| private static final StringManager | |
| protected final PropertyChangeSupport | support
The property change support for this component. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addConnector(Connector
The Connector to be added connector)Implements org. Add a new Connector to the set of defined Connectors, and associate it with this Service's Container. |
| public void | addExecutor(Executor
Executor ex)Implements org. Adds a named executor to the service |
| public void | addPropertyChangeListener(PropertyChangeListener
The listener to add listener)Add a property change listener to this component. |
| protected void | destroyInternal()
Overrides org. Sub-classes wishing to perform additional clean-up should override this method, ensuring that super.destroyInternal() is the last call in the overriding method. |
| public Connector[] | findConnectors()
Implements org. Find and return the set of Connectors associated with this Service. |
| public Executor[] | Returns: Executor[]Implements org. Retrieves all executors |
| public ObjectName[] | |
| public Engine | |
| protected String | getDomainInternal()
Implements abstract org. Method implemented by sub-classes to identify the domain in which MBeans should be registered. |
| public Executor | Returns: ExecutorString executorName)Implements org. Retrieves executor by name, null if not found |
| public long | |
| public Mapper | |
| public String | |
| public final String | getObjectNameKeyProperties()
Implements abstract org. Allow sub-classes to specify the key properties component of the
|
| public ClassLoader | getParentClassLoader()
Implements org. Return the parent class loader for this component. |
| public Server | getServer()
Implements org. Return the |
| protected void | initInternal()
Overrides org. Invoke a pre-startup initialization. |
| public void | removeConnector(Connector
The Connector to be removed connector)Implements org. Remove the specified Connector from the set associated from this Service. |
| public void | removeExecutor(Executor
Executor ex)Implements org. Removes an executor from the service |
| public void | removePropertyChangeListener(PropertyChangeListener
The listener to remove listener)Remove a property change listener from this component. |
| public void | setContainer(Engine
The new Engine engine)Implements org. Set the |
| public void | |
| public void | setName(String
The new service name name)Implements org. Set the name of this Service. |
| public void | setParentClassLoader(ClassLoader
The new parent class loader parent)Implements org. Set the parent class loader for this server. |
| public void | setServer(Server
The server that owns this Service server)Implements org. Set the |
| protected void | startInternal()
Implements abstract org. Start nested components ( |
| protected void | stopInternal()
Implements abstract org. Stop nested components ( |
| public String |
| connectors | back to summary |
|---|---|
| protected Connector[] connectors The set of Connectors associated with this Service. | |
| connectorsLock | back to summary |
|---|---|
| private final Object connectorsLock | |
| engine | back to summary |
|---|---|
| private Engine engine | |
| executors | back to summary |
|---|---|
| protected final ArrayList<Executor> executors The list of executors held by the service. | |
| gracefulStopAwaitMillis | back to summary |
|---|---|
| private long gracefulStopAwaitMillis | |
| log | back to summary |
|---|---|
| private static final Log log | |
| mapper | back to summary |
|---|---|
| protected final Mapper mapper Mapper. | |
| mapperListener | back to summary |
|---|---|
| protected final MapperListener mapperListener Mapper listener. | |
| name | back to summary |
|---|---|
| private String name The name of this service. | |
| parentClassLoader | back to summary |
|---|---|
| private ClassLoader parentClassLoader | |
| server | back to summary |
|---|---|
| private Server server The | |
| sm | back to summary |
|---|---|
| private static final StringManager sm | |
| support | back to summary |
|---|---|
| protected final PropertyChangeSupport support The property change support for this component. | |
| StandardService | back to summary |
|---|---|
| public StandardService() | |
| addConnector | back to summary |
|---|---|
| public void addConnector(Connector connector) Implements org. 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) Implements org. Adds a named executor to the service | |
| addPropertyChangeListener | back to summary |
|---|---|
| public void addPropertyChangeListener(PropertyChangeListener listener) Add a property change listener to this component.
| |
| destroyInternal | back to summary |
|---|---|
| protected void destroyInternal() throws LifecycleException Overrides org. Doc from org. Sub-classes wishing to perform additional clean-up should override this method, ensuring that super.destroyInternal() is the last call in the overriding method.
| |
| findConnectors | back to summary |
|---|---|
| public Connector[] findConnectors() Implements org. Find and return the set of Connectors associated with this Service.
| |
| findExecutors | back to summary |
|---|---|
| public Executor[] findExecutors() Implements org. Retrieves all executors | |
| getConnectorNames | back to summary |
|---|---|
| public ObjectName[] getConnectorNames() | |
| getContainer | back to summary |
|---|---|
| public Engine getContainer() Implements org.
| |
| getDomainInternal | back to summary |
|---|---|
| protected String getDomainInternal() Implements abstract org. Doc from org. Method implemented by sub-classes to identify the domain in which MBeans should be registered. | |
| getExecutor | back to summary |
|---|---|
| public Executor getExecutor(String executorName) Implements org. Retrieves executor by name, null if not found | |
| getGracefulStopAwaitMillis | back to summary |
|---|---|
| public long getGracefulStopAwaitMillis() | |
| getMapper | back to summary |
|---|---|
| public Mapper getMapper() Implements org.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Return the name of this Service.
| |
| getObjectNameKeyProperties | back to summary |
|---|---|
| public final String getObjectNameKeyProperties() Implements abstract org. Doc from org. Allow sub-classes to specify the key properties component of the
| |
| getParentClassLoader | back to summary |
|---|---|
| public ClassLoader getParentClassLoader() Implements org. Return the parent class loader for this component.
| |
| getServer | back to summary |
|---|---|
| public Server getServer() Implements org. Return the
| |
| initInternal | back to summary |
|---|---|
| protected void initInternal() throws LifecycleException Overrides org. Invoke a pre-startup initialization. This is used to allow connectors to bind to restricted ports under Unix operating environments.
| |
| removeConnector | back to summary |
|---|---|
| public void removeConnector(Connector connector) Implements org. 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) Implements org. Removes an executor from the service | |
| removePropertyChangeListener | back to summary |
|---|---|
| public void removePropertyChangeListener(PropertyChangeListener listener) Remove a property change listener from this component.
| |
| setContainer | back to summary |
|---|---|
| public void setContainer(Engine engine) Implements org. Doc from org. Set the | |
| setGracefulStopAwaitMillis | back to summary |
|---|---|
| public void setGracefulStopAwaitMillis(long gracefulStopAwaitMillis) | |
| setName | back to summary |
|---|---|
| public void setName(String name) Implements org. Set the name of this Service. | |
| setParentClassLoader | back to summary |
|---|---|
| public void setParentClassLoader(ClassLoader parent) Implements org. Set the parent class loader for this server.
| |
| setServer | back to summary |
|---|---|
| public void setServer(Server server) Implements org. Set the | |
| startInternal | back to summary |
|---|---|
| protected void startInternal() throws LifecycleException Implements abstract org. Start nested components (
| |
| stopInternal | back to summary |
|---|---|
| protected void stopInternal() throws LifecycleException Implements abstract org. Stop nested components (
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Return a String representation of this component.
| |