connectors
protected Connector[] connectors
The set of Connectors associated with this Service.
container
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.)
controller
protected ObjectName controller
debug
protected int debug
The debugging detail level for this component.
domain
protected String domain
initialized
protected boolean initialized
Has this component been initialized?
mserver
protected MBeanServer mserver
oname
protected ObjectName oname
suffix
protected String suffix
support
protected PropertyChangeSupport support
The property change support for this component.
type
protected String type
addConnector
public void addConnector(Connector connector)
Add a new Connector to the set of defined Connectors, and associate it
with this Service's Container.
- addConnector in interface Service
connector
- The Connector to be added
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)
Add a property change listener to this component.
listener
- The listener to add
findConnectors
public Connector[] findConnectors()
Find and return the set of Connectors associated with this Service.
- findConnectors in interface Service
findLifecycleListeners
public LifecycleListener[] findLifecycleListeners()
Get the lifecycle listeners associated with this lifecycle. If this
Lifecycle has no listeners registered, a zero-length array is returned.
- findLifecycleListeners in interface Lifecycle
getConnectorNames
public ObjectName[] getConnectorNames()
getContainer
public Container getContainer()
Return the Container
that handles requests for all
Connectors
associated with this Service.
- getContainer in interface Service
getContainerName
public ObjectName getContainerName()
getDebug
public int getDebug()
Return the debugging detail level of this component.
getDomain
public String getDomain()
getInfo
public String getInfo()
Return descriptive information about this Service implementation and
the corresponding version number, in the format
<description>/<version>
.
- getInfo in interface Service
getName
public String getName()
Return the name of this Service.
- getName in interface Service
getObjectName
public ObjectName getObjectName()
getServer
public Server getServer()
Return the Server
with which we are associated (if any).
- getServer in interface Service
initialize
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.
- initialize in interface Service
postDeregister
public void postDeregister()
postRegister
public void postRegister(Boolean registrationDone)
preDeregister
public void preDeregister()
throws Exception
preRegister
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws Exception
removeConnector
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.
- removeConnector in interface Service
connector
- The Connector to be removed
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)
Remove a property change listener from this component.
listener
- The listener to remove
setContainer
public void setContainer(Container container)
Set the Container
that handles requests for all
Connectors
associated with this Service.
- setContainer in interface Service
container
- The new Container
setDebug
public void setDebug(int debug)
Set the debugging detail level of this component.
debug
- The new debugging detail level
setName
public void setName(String name)
Set the name of this Service.
- setName in interface Service
name
- The new service name
setServer
public void setServer(Server server)
Set the Server
with which we are associated (if any).
- setServer in interface Service
server
- The server that owns this Service
start
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.
- start in interface Lifecycle
LifecycleException
- if this component detects a fatal error
that prevents this component from being used
stop
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.
- stop in interface Lifecycle
LifecycleException
- if this component detects a fatal error
that needs to be reported
toString
public String toString()
Return a String representation of this component.