org.apache.catalina.core
public final class StandardServer extends Object implements Lifecycle, Server, MBeanRegistration
Version: $Revision: 762911 $ $Date: 2009-04-07 21:15:16 +0200 (Tue, 07 Apr 2009) $
Field Summary | |
---|---|
protected String | domain |
protected MBeanServer | mserver |
protected ObjectName | oname |
protected String | suffix |
protected PropertyChangeSupport | support
The property change support for this component. |
protected String | type |
Constructor Summary | |
---|---|
StandardServer()
Construct a default instance of this class. |
Method Summary | |
---|---|
void | addLifecycleListener(LifecycleListener listener)
Add a LifecycleEvent listener to this component.
|
void | addPropertyChangeListener(PropertyChangeListener listener)
Add a property change listener to this component.
|
void | addService(Service service)
Add a new Service to the set of defined Services.
|
void | await()
Wait until a proper shutdown command is received, then return.
|
LifecycleListener[] | findLifecycleListeners()
Get the lifecycle listeners associated with this lifecycle. |
Service | findService(String name)
Return the specified Service (if it exists); otherwise return
null .
|
Service[] | findServices()
Return the set of Services defined within this Server. |
String | getDomain() |
Context | getGlobalNamingContext()
Return the global naming resources context. |
NamingResources | getGlobalNamingResources()
Return the global naming resources. |
String | getInfo()
Return descriptive information about this Server implementation and
the corresponding version number, in the format
<description>/<version> . |
ObjectName | getObjectName() |
int | getPort()
Return the port number we listen to for shutdown commands. |
String | getServerInfo()
Report the current Tomcat Server Release number |
ObjectName[] | getServiceNames()
Return the JMX service names. |
String | getShutdown()
Return the shutdown command string we are waiting for. |
void | init() |
void | initialize()
Invoke a pre-startup initialization. |
void | postDeregister() |
void | postRegister(Boolean registrationDone) |
void | preDeregister() |
ObjectName | preRegister(MBeanServer server, ObjectName name) |
void | removeLifecycleListener(LifecycleListener listener)
Remove a LifecycleEvent listener from this component.
|
void | removePropertyChangeListener(PropertyChangeListener listener)
Remove a property change listener from this component.
|
void | removeService(Service service)
Remove the specified Service from the set associated from this
Server.
|
void | setGlobalNamingContext(Context globalNamingContext)
Set the global naming resources context.
|
void | setGlobalNamingResources(NamingResources globalNamingResources)
Set the global naming resources.
|
void | setPort(int port)
Set the port number we listen to for shutdown commands.
|
void | setShutdown(String shutdown)
Set the shutdown command we are waiting for.
|
void | start()
Prepare for the beginning of active use of the public methods of this
component. |
void | stop()
Gracefully terminate the active use of the public methods of this
component. |
void | stopAwait() |
void | storeConfig()
Write the configuration information for this entire Server
out to the server.xml configuration file.
|
void | storeContext(Context context)
Write the configuration information for Context
out to the specified configuration file.
|
String | toString()
Return a String representation of this component. |
Parameters: listener The listener to add
Parameters: listener The listener to add
Parameters: service The Service to be added
null
.
Parameters: name Name of the Service to be returned
<description>/<version>
.Returns: Tomcat release identifier
Parameters: listener The listener to remove
Parameters: listener The listener to remove
Parameters: service The Service to be removed
Parameters: globalNamingContext The new global naming resource context
Parameters: globalNamingResources The new global naming resources
Parameters: port The new port number
Parameters: shutdown The new shutdown command
Throws: LifecycleException if this component detects a fatal error that prevents this component from being used
Throws: LifecycleException if this component detects a fatal error that needs to be reported
Server
out to the server.xml configuration file.
Throws: javax.management.InstanceNotFoundException if the managed resource object cannot be found javax.management.MBeanException if the initializer of the object throws an exception, or persistence is not supported javax.management.RuntimeOperationsException if an exception is reported by the persistence mechanism
Context
out to the specified configuration file.
Throws: javax.management.InstanceNotFoundException if the managed resource object cannot be found javax.management.MBeanException if the initializer of the object throws an exception, or persistence is not supported javax.management.RuntimeOperationsException if an exception is reported by the persistence mechanism