Top Description Fields Constructors Methods
org.apache.catalina.core

public final Class StandardServer

extends LifecycleMBeanBase
implements Server
Class Inheritance
All Implemented Interfaces
org.apache.catalina.Server, org.apache.catalina.Lifecycle
Imports
java.beans.PropertyChangeListener, .PropertyChangeSupport, java.io.File, .IOException, .InputStream, java.net.InetAddress, .ServerSocket, .Socket, .SocketTimeoutException, java.security.AccessControlException, java.util.Random, java.util.concurrent.ExecutionException, .ScheduledExecutorService, .ScheduledFuture, .ScheduledThreadPoolExecutor, .TimeUnit, javax.management.InstanceNotFoundException, .MBeanException, .MBeanServer, .ObjectName, org.apache.catalina.Context, .LifecycleException, .LifecycleState, .Server, .Service, org.apache.catalina.deploy.NamingResourcesImpl, org.apache.catalina.mbeans.MBeanFactory, org.apache.catalina.startup.Catalina, org.apache.catalina.util.LifecycleMBeanBase, .ServerInfo, org.apache.juli.logging.Log, .LogFactory, org.apache.tomcat.util.ExceptionUtils, org.apache.tomcat.util.buf.StringCache, org.apache.tomcat.util.modeler.Registry, org.apache.tomcat.util.res.StringManager, org.apache.tomcat.util.threads.TaskThreadFactory

Standard implementation of the Server interface, available for use (but not required) when deploying and starting Catalina.
Author
Craig R. McClanahan

Field Summary

Modifier and TypeField and Description
private String
address

The address on which we wait for shutdown commands.

private volatile ServerSocket
awaitSocket

Server socket that is used to wait for the shutdown command.

private volatile Thread
awaitThread

Thread that currently is inside our await() method.

private Catalina
private File
private File
private Context
globalNamingContext

Global naming resources context.

private NamingResourcesImpl
globalNamingResources

Global naming resources.

private static final Log
private ScheduledFuture<?>
private final NamingContextListener
namingContextListener

The naming context listener for this web application.

private final Object
private ObjectName
private ObjectName
private ClassLoader
private int
periodicEventDelay

The lifecycle event period in seconds.

private ScheduledFuture<?>
periodicLifecycleEventFuture

Controller for the periodic lifecycle event.

private int
port

The port number on which we wait for shutdown commands.

private int
private Random
random

A random number generator that is only used if the shutdown command string is longer than 1024 characters.

private Service[]
services

The set of Services associated with this Server.

private final Object
private String
shutdown

The shutdown command string we are looking for.

private static final StringManager
private volatile boolean
pack-priv final PropertyChangeSupport
support

The property change support for this component.

private ScheduledThreadPoolExecutor
utilityExecutor

Utility executor with scheduling capabilities.

private final Object
private ScheduledExecutorService
utilityExecutorWrapper

Utility executor wrapper.

private int
utilityThreads

The number of threads available to process utility tasks in this service.

private boolean
utilityThreadsAsDaemon

The utility threads daemon flag.

Constructor Summary

AccessConstructor and Description
public
StandardServer()

Construct a default instance of this class.

Method Summary

Modifier and TypeMethod and Description
public void
addPropertyChangeListener(PropertyChangeListener
The listener to add
listener
)

Add a property change listener to this component.

public void
addService(Service
The Service to be added
service
)

Implements org.apache.catalina.Server.addService.

Add a new Service to the set of defined Services.

public void
await()

Implements org.apache.catalina.Server.await.

Wait until a proper shutdown command is received, then return.

protected void
destroyInternal()

Overrides org.apache.catalina.util.LifecycleMBeanBase.destroyInternal.

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 Service

Returns:

the specified Service (if it exists); otherwise return null.
findService
(String
Name of the Service to be returned
name
)

Implements org.apache.catalina.Server.findService.

Find the specified Service

public Service[]

Returns:

The array of Services defined within this Server.
findServices
()

Implements org.apache.catalina.Server.findServices.

public String
getAddress()

Implements org.apache.catalina.Server.getAddress.

Return the address on which we listen to for shutdown commands.

public Catalina
getCatalina()

Implements org.apache.catalina.Server.getCatalina.

Return the outer Catalina startup/shutdown component if present.

public File
public File
protected String
getDomainInternal()

Implements abstract org.apache.catalina.util.LifecycleMBeanBase.getDomainInternal.

Obtain the MBean domain for this server.

public Context
getGlobalNamingContext()

Implements org.apache.catalina.Server.getGlobalNamingContext.

Return the global naming resources context.

public NamingResourcesImpl
getGlobalNamingResources()

Implements org.apache.catalina.Server.getGlobalNamingResources.

Return the global naming resources.

public Object
protected String
getObjectNameKeyProperties()

Implements abstract org.apache.catalina.util.LifecycleMBeanBase.getObjectNameKeyProperties.

Allow sub-classes to specify the key properties component of the ObjectName that will be used to register this component.

public ClassLoader
getParentClassLoader()

Implements org.apache.catalina.Server.getParentClassLoader.

Return the parent class loader for this component.

public int

Returns:

The period between two lifecycle events, in seconds
getPeriodicEventDelay
()

public int
getPort()

Implements org.apache.catalina.Server.getPort.

Return the port number we listen to for shutdown commands.

public int
getPortOffset()

Implements org.apache.catalina.Server.getPortOffset.

Get the number that offsets the port used for shutdown commands.

public int
getPortWithOffset()

Implements org.apache.catalina.Server.getPortWithOffset.

Get the actual port on which server is listening for the shutdown commands.

public String

Returns:

server built timestamp.
getServerBuilt
()

Return the current server built timestamp

public String

Returns:

Tomcat release identifier
getServerInfo
()

Report the current Tomcat Server Release number

public String

Returns:

server's version number.
getServerNumber
()

Return the current server's version number.

public ObjectName[]

Returns:

the JMX service names.
getServiceNames
()

public String
getShutdown()

Implements org.apache.catalina.Server.getShutdown.

Return the shutdown command string we are waiting for.

public ScheduledExecutorService
public int
getUtilityThreads()

Implements org.apache.catalina.Server.getUtilityThreads.

Get the utility thread count.

public boolean

Returns:

the threads daemon flag
getUtilityThreadsAsDaemon
()

Get if the utility threads are daemon threads.

private static int
getUtilityThreadsInternal(int utilityThreads)

Handles the special values.

protected void
initInternal()

Overrides org.apache.catalina.util.LifecycleMBeanBase.initInternal.

Invoke a pre-startup initialization.

private boolean

Returns:

true if naming should be used.
isUseNaming
()

private void
public void
removePropertyChangeListener(PropertyChangeListener
The listener to remove
listener
)

Remove a property change listener from this component.

public void
removeService(Service
The Service to be removed
service
)

Implements org.apache.catalina.Server.removeService.

Remove the specified Service from the set associated from this Server.

public void
setAddress(String
The new address
address
)

Implements org.apache.catalina.Server.setAddress.

Set the address on which we listen to for shutdown commands.

public void
setCatalina(Catalina
the outer Catalina component
catalina
)

Implements org.apache.catalina.Server.setCatalina.

Set the outer Catalina startup/shutdown component if present.

public void
setCatalinaBase(File
the configured base directory
catalinaBase
)

Implements org.apache.catalina.Server.setCatalinaBase.

Set the configured base (instance) directory.

public void
setCatalinaHome(File
the configured home directory
catalinaHome
)

Implements org.apache.catalina.Server.setCatalinaHome.

Set the configured home (binary) directory.

public void
setGlobalNamingContext(Context
The new global naming resource context
globalNamingContext
)

Set the global naming resources context.

public void
setGlobalNamingResources(NamingResourcesImpl
The new global naming resources
globalNamingResources
)

Implements org.apache.catalina.Server.setGlobalNamingResources.

Set the global naming resources.

public void
setParentClassLoader(ClassLoader
The new parent class loader
parent
)

Implements org.apache.catalina.Server.setParentClassLoader.

Set the parent class loader for this server.

public void
setPeriodicEventDelay(int
The period in seconds, negative or zero will disable events
periodicEventDelay
)

Set the new period between two lifecycle events in seconds.

public void
setPort(int
The new port number
port
)

Implements org.apache.catalina.Server.setPort.

Set the port number we listen to for shutdown commands.

public void
setPortOffset(int
sets the port offset
portOffset
)

Implements org.apache.catalina.Server.setPortOffset.

Set the number that offsets the server port used for shutdown commands.

public void
setShutdown(String
The new shutdown command
shutdown
)

Implements org.apache.catalina.Server.setShutdown.

Set the shutdown command we are waiting for.

public void
setUtilityThreads(int
the new thread count
utilityThreads
)

Implements org.apache.catalina.Server.setUtilityThreads.

Set the utility thread count.

public void
setUtilityThreadsAsDaemon(boolean
the new thread daemon flag
utilityThreadsAsDaemon
)

Set the utility threads daemon flag.

protected void
startInternal()

Implements abstract org.apache.catalina.util.LifecycleBase.startInternal.

Start nested components (Services) and implement the requirements of org.apache.catalina.util.LifecycleBase#startInternal().

private void
public void
protected void
stopInternal()

Implements abstract org.apache.catalina.util.LifecycleBase.stopInternal.

Stop nested components (Services) and implement the requirements of org.apache.catalina.util.LifecycleBase#stopInternal().

public synchronized void
storeConfig()

Write the configuration information for this entire Server out to the server.xml configuration file.

public synchronized void
storeContext(Context
the context which should save its configuration
context
)

Write the configuration information for Context out to the specified configuration file.

public String
toString()

Overrides java.lang.Object.toString.

Return a String representation of this component.

Inherited from org.apache.catalina.util.LifecycleMBeanBase:
getDomaingetObjectNamepostDeregisterpostRegisterpreDeregisterpreRegisterregistersetDomainunregisterunregister

Field Detail

addressback to summary
private String address

The address on which we wait for shutdown commands.

awaitSocketback to summary
private volatile ServerSocket awaitSocket

Server socket that is used to wait for the shutdown command.

awaitThreadback to summary
private volatile Thread awaitThread

Thread that currently is inside our await() method.

catalinaback to summary
private Catalina catalina
catalinaBaseback to summary
private File catalinaBase
catalinaHomeback to summary
private File catalinaHome
globalNamingContextback to summary
private Context globalNamingContext

Global naming resources context.

globalNamingResourcesback to summary
private NamingResourcesImpl globalNamingResources

Global naming resources.

logback to summary
private static final Log log

Hides org.apache.catalina.util.LifecycleMBeanBase.log.

monitorFutureback to summary
private ScheduledFuture<?> monitorFuture
namingContextListenerback to summary
private final NamingContextListener namingContextListener

The naming context listener for this web application.

namingTokenback to summary
private final Object namingToken
onameMBeanFactoryback to summary
private ObjectName onameMBeanFactory
onameStringCacheback to summary
private ObjectName onameStringCache
parentClassLoaderback to summary
private ClassLoader parentClassLoader
periodicEventDelayback to summary
private int periodicEventDelay

The lifecycle event period in seconds.

periodicLifecycleEventFutureback to summary
private ScheduledFuture<?> periodicLifecycleEventFuture

Controller for the periodic lifecycle event.

portback to summary
private int port

The port number on which we wait for shutdown commands.

portOffsetback to summary
private int portOffset
randomback to summary
private Random random

A random number generator that is only used if the shutdown command string is longer than 1024 characters.

servicesback to summary
private Service[] services

The set of Services associated with this Server.

servicesLockback to summary
private final Object servicesLock
shutdownback to summary
private String shutdown

The shutdown command string we are looking for.

smback to summary
private static final StringManager sm

Hides org.apache.catalina.util.LifecycleMBeanBase.sm.

stopAwaitback to summary
private volatile boolean stopAwait
supportback to summary
pack-priv final PropertyChangeSupport support

The property change support for this component.

utilityExecutorback to summary
private ScheduledThreadPoolExecutor utilityExecutor

Utility executor with scheduling capabilities.

utilityExecutorLockback to summary
private final Object utilityExecutorLock
utilityExecutorWrapperback to summary
private ScheduledExecutorService utilityExecutorWrapper

Utility executor wrapper.

utilityThreadsback to summary
private int utilityThreads

The number of threads available to process utility tasks in this service.

utilityThreadsAsDaemonback to summary
private boolean utilityThreadsAsDaemon

The utility threads daemon flag.

Constructor Detail

StandardServerback to summary
public StandardServer()

Construct a default instance of this class.

Method Detail

addPropertyChangeListenerback to summary
public void addPropertyChangeListener(PropertyChangeListener listener)

Add a property change listener to this component.

Parameters
listener:PropertyChangeListener

The listener to add

addServiceback to summary
public void addService(Service service)

Implements org.apache.catalina.Server.addService.

Add a new Service to the set of defined Services.

Parameters
service:Service

The Service to be added

Annotations
@Override
awaitback to summary
public void await()

Implements org.apache.catalina.Server.await.

Wait until a proper shutdown command is received, then return. This keeps the main thread alive - the thread pool listening for http connections is daemon threads.

Annotations
@Override
destroyInternalback to summary
protected void destroyInternal() throws LifecycleException

Overrides org.apache.catalina.util.LifecycleMBeanBase.destroyInternal.

Doc from org.apache.catalina.util.LifecycleMBeanBase.destroyInternal.

Sub-classes wishing to perform additional clean-up should override this method, ensuring that super.destroyInternal() is the last call in the overriding method.

Annotations
@Override
Exceptions
LifecycleException:

Doc from org.apache.catalina.util.LifecycleBase.destroyInternal.

If the destruction fails

findServiceback to summary
public Service findService(String name)

Implements org.apache.catalina.Server.findService.

Doc from org.apache.catalina.Server.findService.

Find the specified Service

Parameters
name:String

Name of the Service to be returned

Returns:Service

the specified Service (if it exists); otherwise return null.

Annotations
@Override
findServicesback to summary
public Service[] findServices()

Implements org.apache.catalina.Server.findServices.

Returns:Service[]

The array of Services defined within this Server.

Annotations
@Override
getAddressback to summary
public String getAddress()

Implements org.apache.catalina.Server.getAddress.

Return the address on which we listen to for shutdown commands.

Returns:String

Doc from org.apache.catalina.Server.getAddress.

the address on which we listen to for shutdown commands.

Annotations
@Override
getCatalinaback to summary
public Catalina getCatalina()

Implements org.apache.catalina.Server.getCatalina.

Return the outer Catalina startup/shutdown component if present.

Returns:Catalina

Doc from org.apache.catalina.Server.getCatalina.

the outer Catalina startup/shutdown component if present.

Annotations
@Override
getCatalinaBaseback to summary
public File getCatalinaBase()

Implements org.apache.catalina.Server.getCatalinaBase.

Returns:File

Doc from org.apache.catalina.Server.getCatalinaBase.

the configured base (instance) directory. Note that home and base may be the same (and are by default). If this is not set the value returned by getCatalinaHome() will be used.

Annotations
@Override
getCatalinaHomeback to summary
public File getCatalinaHome()

Implements org.apache.catalina.Server.getCatalinaHome.

Returns:File

Doc from org.apache.catalina.Server.getCatalinaHome.

the configured home (binary) directory. Note that home and base may be the same (and are by default).

Annotations
@Override
getDomainInternalback to summary
protected String getDomainInternal()

Implements abstract org.apache.catalina.util.LifecycleMBeanBase.getDomainInternal.

Obtain the MBean domain for this server. The domain is obtained using the following search order:

  1. Name of first org.apache.catalina.Engine.
  2. Name of first Service.
Returns:String

Doc from org.apache.catalina.util.LifecycleMBeanBase.getDomainInternal.

The name of the domain to use to register MBeans.

Annotations
@Override
getGlobalNamingContextback to summary
public Context getGlobalNamingContext()

Implements org.apache.catalina.Server.getGlobalNamingContext.

Return the global naming resources context.

Returns:Context

Doc from org.apache.catalina.Server.getGlobalNamingContext.

the global naming resources context.

Annotations
@Override
getGlobalNamingResourcesback to summary
public NamingResourcesImpl getGlobalNamingResources()

Implements org.apache.catalina.Server.getGlobalNamingResources.

Return the global naming resources.

Returns:NamingResourcesImpl

Doc from org.apache.catalina.Server.getGlobalNamingResources.

the global naming resources.

Annotations
@Override
getNamingTokenback to summary
public Object getNamingToken()

Implements org.apache.catalina.Server.getNamingToken.

Returns:Object

Doc from org.apache.catalina.Server.getNamingToken.

the token necessary for operations on the associated JNDI naming context.

Annotations
@Override
getObjectNameKeyPropertiesback to summary
protected String getObjectNameKeyProperties()

Implements abstract org.apache.catalina.util.LifecycleMBeanBase.getObjectNameKeyProperties.

Doc from org.apache.catalina.util.LifecycleMBeanBase.getObjectNameKeyProperties.

Allow sub-classes to specify the key properties component of the ObjectName that will be used to register this component.

Returns:String

The string representation of the key properties component of the desired ObjectName

Annotations
@Override
getParentClassLoaderback to summary
public ClassLoader getParentClassLoader()

Implements org.apache.catalina.Server.getParentClassLoader.

Return the parent class loader for this component.

Returns:ClassLoader

Doc from org.apache.catalina.Server.getParentClassLoader.

the parent class loader for this component. If not set, return getCatalina() Catalina#getParentClassLoader(). If catalina has not been set, return the system class loader.

Annotations
@Override
getPeriodicEventDelayback to summary
public int getPeriodicEventDelay()
Returns:int

The period between two lifecycle events, in seconds

getPortback to summary
public int getPort()

Implements org.apache.catalina.Server.getPort.

Return the port number we listen to for shutdown commands.

Returns:int

Doc from org.apache.catalina.Server.getPort.

the port number we listen to for shutdown commands.

Annotations
@Override
getPortOffsetback to summary
public int getPortOffset()

Implements org.apache.catalina.Server.getPortOffset.

Doc from org.apache.catalina.Server.getPortOffset.

Get the number that offsets the port used for shutdown commands. For example, if port is 8005, and portOffset is 1000, the server listens at 9005.

Returns:int

the port offset

Annotations
@Override
getPortWithOffsetback to summary
public int getPortWithOffset()

Implements org.apache.catalina.Server.getPortWithOffset.

Doc from org.apache.catalina.Server.getPortWithOffset.

Get the actual port on which server is listening for the shutdown commands. If you do not set port offset, port is returned. If you set port offset, port offset + port is returned.

Returns:int

the port with offset

Annotations
@Override
getServerBuiltback to summary
public String getServerBuilt()

Return the current server built timestamp

Returns:String

server built timestamp.

getServerInfoback to summary
public String getServerInfo()

Report the current Tomcat Server Release number

Returns:String

Tomcat release identifier

getServerNumberback to summary
public String getServerNumber()

Return the current server's version number.

Returns:String

server's version number.

getServiceNamesback to summary
public ObjectName[] getServiceNames()
Returns:ObjectName[]

the JMX service names.

getShutdownback to summary
public String getShutdown()

Implements org.apache.catalina.Server.getShutdown.

Return the shutdown command string we are waiting for.

Returns:String

Doc from org.apache.catalina.Server.getShutdown.

the shutdown command string we are waiting for.

Annotations
@Override
getUtilityExecutorback to summary
public ScheduledExecutorService getUtilityExecutor()

Implements org.apache.catalina.Server.getUtilityExecutor.

Returns:ScheduledExecutorService

Doc from org.apache.catalina.Server.getUtilityExecutor.

the utility executor managed by the Service.

Annotations
@Override
getUtilityThreadsback to summary
public int getUtilityThreads()

Implements org.apache.catalina.Server.getUtilityThreads.

Doc from org.apache.catalina.Server.getUtilityThreads.

Get the utility thread count.

Returns:int

the thread count

Annotations
@Override
getUtilityThreadsAsDaemonback to summary
public boolean getUtilityThreadsAsDaemon()

Get if the utility threads are daemon threads.

Returns:boolean

the threads daemon flag

getUtilityThreadsInternalback to summary
private static int getUtilityThreadsInternal(int utilityThreads)

Handles the special values.

initInternalback to summary
protected void initInternal() throws LifecycleException

Overrides org.apache.catalina.util.LifecycleMBeanBase.initInternal.

Invoke a pre-startup initialization. This is used to allow connectors to bind to restricted ports under Unix operating environments.

Annotations
@Override
Exceptions
LifecycleException:

Doc from org.apache.catalina.util.LifecycleBase.initInternal.

If the initialisation fails

isUseNamingback to summary
private boolean isUseNaming()
Returns:boolean

true if naming should be used.

reconfigureUtilityExecutorback to summary
private void reconfigureUtilityExecutor(int threads)
removePropertyChangeListenerback to summary
public void removePropertyChangeListener(PropertyChangeListener listener)

Remove a property change listener from this component.

Parameters
listener:PropertyChangeListener

The listener to remove

removeServiceback to summary
public void removeService(Service service)

Implements org.apache.catalina.Server.removeService.

Remove the specified Service from the set associated from this Server.

Parameters
service:Service

The Service to be removed

Annotations
@Override
setAddressback to summary
public void setAddress(String address)

Implements org.apache.catalina.Server.setAddress.

Set the address on which we listen to for shutdown commands.

Parameters
address:String

The new address

Annotations
@Override
setCatalinaback to summary
public void setCatalina(Catalina catalina)

Implements org.apache.catalina.Server.setCatalina.

Set the outer Catalina startup/shutdown component if present.

Parameters
catalina:Catalina

Doc from org.apache.catalina.Server.setCatalina.

the outer Catalina component

Annotations
@Override
setCatalinaBaseback to summary
public void setCatalinaBase(File catalinaBase)

Implements org.apache.catalina.Server.setCatalinaBase.

Doc from org.apache.catalina.Server.setCatalinaBase.

Set the configured base (instance) directory. Note that home and base may be the same (and are by default).

Parameters
catalinaBase:File

the configured base directory

Annotations
@Override
setCatalinaHomeback to summary
public void setCatalinaHome(File catalinaHome)

Implements org.apache.catalina.Server.setCatalinaHome.

Doc from org.apache.catalina.Server.setCatalinaHome.

Set the configured home (binary) directory. Note that home and base may be the same (and are by default).

Parameters
catalinaHome:File

the configured home directory

Annotations
@Override
setGlobalNamingContextback to summary
public void setGlobalNamingContext(Context globalNamingContext)

Set the global naming resources context.

Parameters
globalNamingContext:Context

The new global naming resource context

setGlobalNamingResourcesback to summary
public void setGlobalNamingResources(NamingResourcesImpl globalNamingResources)

Implements org.apache.catalina.Server.setGlobalNamingResources.

Set the global naming resources.

Parameters
globalNamingResources:NamingResourcesImpl

The new global naming resources

Annotations
@Override
setParentClassLoaderback to summary
public void setParentClassLoader(ClassLoader parent)

Implements org.apache.catalina.Server.setParentClassLoader.

Set the parent class loader for this server.

Parameters
parent:ClassLoader

The new parent class loader

Annotations
@Override
setPeriodicEventDelayback to summary
public void setPeriodicEventDelay(int periodicEventDelay)

Set the new period between two lifecycle events in seconds.

Parameters
periodicEventDelay:int

The period in seconds, negative or zero will disable events

setPortback to summary
public void setPort(int port)

Implements org.apache.catalina.Server.setPort.

Set the port number we listen to for shutdown commands.

Parameters
port:int

The new port number

Annotations
@Override
setPortOffsetback to summary
public void setPortOffset(int portOffset)

Implements org.apache.catalina.Server.setPortOffset.

Doc from org.apache.catalina.Server.setPortOffset.

Set the number that offsets the server port used for shutdown commands. For example, if port is 8005, and you set portOffset to 1000, connector listens at 9005.

Parameters
portOffset:int

sets the port offset

Annotations
@Override
setShutdownback to summary
public void setShutdown(String shutdown)

Implements org.apache.catalina.Server.setShutdown.

Set the shutdown command we are waiting for.

Parameters
shutdown:String

The new shutdown command

Annotations
@Override
setUtilityThreadsback to summary
public void setUtilityThreads(int utilityThreads)

Implements org.apache.catalina.Server.setUtilityThreads.

Doc from org.apache.catalina.Server.setUtilityThreads.

Set the utility thread count.

Parameters
utilityThreads:int

the new thread count

Annotations
@Override
setUtilityThreadsAsDaemonback to summary
public void setUtilityThreadsAsDaemon(boolean utilityThreadsAsDaemon)

Set the utility threads daemon flag. The default value is true.

Parameters
utilityThreadsAsDaemon:boolean

the new thread daemon flag

startInternalback to summary
protected void startInternal() throws LifecycleException

Implements abstract org.apache.catalina.util.LifecycleBase.startInternal.

Start nested components (Services) and implement the requirements of org.apache.catalina.util.LifecycleBase#startInternal().

Annotations
@Override
Exceptions
LifecycleException:
if this component detects a fatal error that prevents this component from being used
startPeriodicLifecycleEventback to summary
private void startPeriodicLifecycleEvent()
stopAwaitback to summary
public void stopAwait()
stopInternalback to summary
protected void stopInternal() throws LifecycleException

Implements abstract org.apache.catalina.util.LifecycleBase.stopInternal.

Stop nested components (Services) and implement the requirements of org.apache.catalina.util.LifecycleBase#stopInternal().

Annotations
@Override
Exceptions
LifecycleException:
if this component detects a fatal error that needs to be reported
storeConfigback to summary
public synchronized void storeConfig() throws InstanceNotFoundException, MBeanException

Write the configuration information for this entire Server out to the server.xml configuration file.

Exceptions
InstanceNotFoundException:
if the managed resource object cannot be found
MBeanException:
if the initializer of the object throws an exception, or persistence is not supported
RuntimeOperationsException:
if an exception is reported by the persistence mechanism
storeContextback to summary
public synchronized void storeContext(Context context) throws InstanceNotFoundException, MBeanException

Write the configuration information for Context out to the specified configuration file.

Parameters
context:Context

the context which should save its configuration

Exceptions
InstanceNotFoundException:
if the managed resource object cannot be found
MBeanException:
if the initializer of the object throws an exception or persistence is not supported
RuntimeOperationsException:
if an exception is reported by the persistence mechanism
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Return a String representation of this component.

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object

Annotations
@Override