| Modifier and Type | Field 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. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method 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. Add a new Service to the set of defined Services. |
| public void | await()
Implements org. Wait until a proper shutdown command is received, then return. |
| 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 Service | Returns: the specified Service (if it exists); otherwise returnnull.Name of the Service to be returned name)Implements org. Find the specified Service |
| public Service[] | Returns: The array of Services defined within this Server.Implements org.
|
| public String | getAddress()
Implements org. Return the address on which we listen to for shutdown commands. |
| public Catalina | getCatalina()
Implements org. Return the outer Catalina startup/shutdown component if present. |
| public File | |
| public File | |
| protected String | getDomainInternal()
Implements abstract org. Obtain the MBean domain for this server. |
| public Context | getGlobalNamingContext()
Implements org. Return the global naming resources context. |
| public NamingResourcesImpl | getGlobalNamingResources()
Implements org. Return the global naming resources. |
| public Object | |
| protected 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 int | |
| public int | getPort()
Implements org. Return the port number we listen to for shutdown commands. |
| public int | getPortOffset()
Implements org. Get the number that offsets the port used for shutdown commands. |
| public int | getPortWithOffset()
Implements org. Get the actual port on which server is listening for the shutdown commands. |
| public String | |
| public String | |
| public String | |
| public ObjectName[] | |
| public String | getShutdown()
Implements org. Return the shutdown command string we are waiting for. |
| public ScheduledExecutorService | |
| public int | getUtilityThreads()
Implements org. Get the utility thread count. |
| public boolean | Returns: the threads daemon flagGet if the utility threads are daemon threads. |
| private static int | |
| protected void | initInternal()
Overrides org. Invoke a pre-startup initialization. |
| private boolean | |
| 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. Remove the specified Service from the set associated from this Server. |
| public void | setAddress(String
The new address address)Implements org. Set the address on which we listen to for shutdown commands. |
| public void | setCatalina(Catalina
the outer Catalina component catalina)Implements org. Set the outer Catalina startup/shutdown component if present. |
| public void | setCatalinaBase(File
the configured base directory catalinaBase)Implements org. Set the configured base (instance) directory. |
| public void | setCatalinaHome(File
the configured home directory catalinaHome)Implements org. 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. Set the global naming resources. |
| public void | setParentClassLoader(ClassLoader
The new parent class loader parent)Implements org. 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. Set the port number we listen to for shutdown commands. |
| public void | setPortOffset(int
sets the port offset portOffset)Implements org. Set the number that offsets the server port used for shutdown commands. |
| public void | setShutdown(String
The new shutdown command shutdown)Implements org. Set the shutdown command we are waiting for. |
| public void | setUtilityThreads(int
the new thread count utilityThreads)Implements org. 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. Start nested components ( |
| private void | |
| public void | |
| protected void | stopInternal()
Implements abstract org. Stop nested components ( |
| public synchronized void | storeConfig()
Write the configuration information for this entire |
| public synchronized void | storeContext(Context
the context which should save its configuration context)Write the configuration information for |
| public String |
| address | back to summary |
|---|---|
| private String address The address on which we wait for shutdown commands. | |
| awaitSocket | back to summary |
|---|---|
| private volatile ServerSocket awaitSocket Server socket that is used to wait for the shutdown command. | |
| awaitThread | back to summary |
|---|---|
| private volatile Thread awaitThread Thread that currently is inside our await() method. | |
| catalina | back to summary |
|---|---|
| private Catalina catalina | |
| catalinaBase | back to summary |
|---|---|
| private File catalinaBase | |
| catalinaHome | back to summary |
|---|---|
| private File catalinaHome | |
| globalNamingContext | back to summary |
|---|---|
| private Context globalNamingContext Global naming resources context. | |
| globalNamingResources | back to summary |
|---|---|
| private NamingResourcesImpl globalNamingResources Global naming resources. | |
| log | back to summary |
|---|---|
| private static final Log log | |
| monitorFuture | back to summary |
|---|---|
| private ScheduledFuture<?> monitorFuture | |
| namingContextListener | back to summary |
|---|---|
| private final NamingContextListener namingContextListener The naming context listener for this web application. | |
| namingToken | back to summary |
|---|---|
| private final Object namingToken | |
| onameMBeanFactory | back to summary |
|---|---|
| private ObjectName onameMBeanFactory | |
| onameStringCache | back to summary |
|---|---|
| private ObjectName onameStringCache | |
| parentClassLoader | back to summary |
|---|---|
| private ClassLoader parentClassLoader | |
| periodicEventDelay | back to summary |
|---|---|
| private int periodicEventDelay The lifecycle event period in seconds. | |
| periodicLifecycleEventFuture | back to summary |
|---|---|
| private ScheduledFuture<?> periodicLifecycleEventFuture Controller for the periodic lifecycle event. | |
| port | back to summary |
|---|---|
| private int port The port number on which we wait for shutdown commands. | |
| portOffset | back to summary |
|---|---|
| private int portOffset | |
| random | back to summary |
|---|---|
| private Random random A random number generator that is only used if the shutdown command string is longer than 1024 characters. | |
| services | back to summary |
|---|---|
| private Service[] services The set of Services associated with this Server. | |
| servicesLock | back to summary |
|---|---|
| private final Object servicesLock | |
| shutdown | back to summary |
|---|---|
| private String shutdown The shutdown command string we are looking for. | |
| sm | back to summary |
|---|---|
| private static final StringManager sm | |
| stopAwait | back to summary |
|---|---|
| private volatile boolean stopAwait | |
| support | back to summary |
|---|---|
| pack-priv final PropertyChangeSupport support The property change support for this component. | |
| utilityExecutor | back to summary |
|---|---|
| private ScheduledThreadPoolExecutor utilityExecutor Utility executor with scheduling capabilities. | |
| utilityExecutorLock | back to summary |
|---|---|
| private final Object utilityExecutorLock | |
| utilityExecutorWrapper | back to summary |
|---|---|
| private ScheduledExecutorService utilityExecutorWrapper Utility executor wrapper. | |
| utilityThreads | back to summary |
|---|---|
| private int utilityThreads The number of threads available to process utility tasks in this service. | |
| utilityThreadsAsDaemon | back to summary |
|---|---|
| private boolean utilityThreadsAsDaemon The utility threads daemon flag. | |
| StandardServer | back to summary |
|---|---|
| public StandardServer() Construct a default instance of this class. | |
| addPropertyChangeListener | back to summary |
|---|---|
| public void addPropertyChangeListener(PropertyChangeListener listener) Add a property change listener to this component.
| |
| addService | back to summary |
|---|---|
| public void addService(Service service) Implements org. Add a new Service to the set of defined Services. | |
| await | back to summary |
|---|---|
| public void await() Implements org. 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.
| |
| 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.
| |
| findService | back to summary |
|---|---|
| public Service findService(String name) Implements org. Doc from org. Find the specified Service | |
| findServices | back to summary |
|---|---|
| public Service[] findServices() Implements org. | |
| getAddress | back to summary |
|---|---|
| public String getAddress() Implements org. Return the address on which we listen to for shutdown commands.
| |
| getCatalina | back to summary |
|---|---|
| public Catalina getCatalina() Implements org. Return the outer Catalina startup/shutdown component if present.
| |
| getCatalinaBase | back to summary |
|---|---|
| public File getCatalinaBase() Implements org.
| |
| getCatalinaHome | back to summary |
|---|---|
| public File getCatalinaHome() Implements org.
| |
| getDomainInternal | back to summary |
|---|---|
| protected String getDomainInternal() Implements abstract org. Obtain the MBean domain for this server. The domain is obtained using the following search order:
| |
| getGlobalNamingContext | back to summary |
|---|---|
| public Context getGlobalNamingContext() Implements org. Return the global naming resources context.
| |
| getGlobalNamingResources | back to summary |
|---|---|
| public NamingResourcesImpl getGlobalNamingResources() Implements org. Return the global naming resources.
| |
| getNamingToken | back to summary |
|---|---|
| public Object getNamingToken() Implements org.
| |
| getObjectNameKeyProperties | back to summary |
|---|---|
| protected 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.
| |
| getPeriodicEventDelay | back to summary |
|---|---|
public int getPeriodicEventDelay()
| |
| getPort | back to summary |
|---|---|
| public int getPort() Implements org. Return the port number we listen to for shutdown commands.
| |
| getPortOffset | back to summary |
|---|---|
| public int getPortOffset() Implements org. Doc from org. 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.
| |
| getPortWithOffset | back to summary |
|---|---|
| public int getPortWithOffset() Implements org. Doc from org. 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.
| |
| getServerBuilt | back to summary |
|---|---|
| public String getServerBuilt() Return the current server built timestamp
| |
| getServerInfo | back to summary |
|---|---|
| public String getServerInfo() Report the current Tomcat Server Release number
| |
| getServerNumber | back to summary |
|---|---|
| public String getServerNumber() Return the current server's version number.
| |
| getServiceNames | back to summary |
|---|---|
public ObjectName[] getServiceNames()
| |
| getShutdown | back to summary |
|---|---|
| public String getShutdown() Implements org. Return the shutdown command string we are waiting for.
| |
| getUtilityExecutor | back to summary |
|---|---|
| public ScheduledExecutorService getUtilityExecutor() Implements org.
| |
| getUtilityThreads | back to summary |
|---|---|
| public int getUtilityThreads() Implements org. Doc from org. Get the utility thread count.
| |
| getUtilityThreadsAsDaemon | back to summary |
|---|---|
| public boolean getUtilityThreadsAsDaemon() Get if the utility threads are daemon threads.
| |
| getUtilityThreadsInternal | back to summary |
|---|---|
| private static int getUtilityThreadsInternal(int utilityThreads) Handles the special values. | |
| 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.
| |
| isUseNaming | back to summary |
|---|---|
private boolean isUseNaming()
| |
| reconfigureUtilityExecutor | back to summary |
|---|---|
| private void reconfigureUtilityExecutor(int threads) | |
| removePropertyChangeListener | back to summary |
|---|---|
| public void removePropertyChangeListener(PropertyChangeListener listener) Remove a property change listener from this component.
| |
| removeService | back to summary |
|---|---|
| public void removeService(Service service) Implements org. Remove the specified Service from the set associated from this Server. | |
| setAddress | back to summary |
|---|---|
| public void setAddress(String address) Implements org. Set the address on which we listen to for shutdown commands. | |
| setCatalina | back to summary |
|---|---|
| public void setCatalina(Catalina catalina) Implements org. Set the outer Catalina startup/shutdown component if present.
| |
| setCatalinaBase | back to summary |
|---|---|
| public void setCatalinaBase(File catalinaBase) Implements org. Doc from org. Set the configured base (instance) directory. Note that home and base may be the same (and are by default). | |
| setCatalinaHome | back to summary |
|---|---|
| public void setCatalinaHome(File catalinaHome) Implements org. Doc from org. Set the configured home (binary) directory. Note that home and base may be the same (and are by default). | |
| setGlobalNamingContext | back to summary |
|---|---|
| public void setGlobalNamingContext(Context globalNamingContext) Set the global naming resources context.
| |
| setGlobalNamingResources | back to summary |
|---|---|
| public void setGlobalNamingResources(NamingResourcesImpl globalNamingResources) Implements org. Set the global naming resources.
| |
| setParentClassLoader | back to summary |
|---|---|
| public void setParentClassLoader(ClassLoader parent) Implements org. Set the parent class loader for this server.
| |
| setPeriodicEventDelay | back to summary |
|---|---|
| public void setPeriodicEventDelay(int periodicEventDelay) Set the new period between two lifecycle events in seconds.
| |
| setPort | back to summary |
|---|---|
| public void setPort(int port) Implements org. Set the port number we listen to for shutdown commands.
| |
| setPortOffset | back to summary |
|---|---|
| public void setPortOffset(int portOffset) Implements org. Doc from org. 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.
| |
| setShutdown | back to summary |
|---|---|
| public void setShutdown(String shutdown) Implements org. Set the shutdown command we are waiting for. | |
| setUtilityThreads | back to summary |
|---|---|
| public void setUtilityThreads(int utilityThreads) Implements org. Doc from org. Set the utility thread count.
| |
| setUtilityThreadsAsDaemon | back to summary |
|---|---|
| public void setUtilityThreadsAsDaemon(boolean utilityThreadsAsDaemon) Set the utility threads daemon flag. The default value is true.
| |
| startInternal | back to summary |
|---|---|
| protected void startInternal() throws LifecycleException Implements abstract org. Start nested components (
| |
| startPeriodicLifecycleEvent | back to summary |
|---|---|
| private void startPeriodicLifecycleEvent() | |
| stopAwait | back to summary |
|---|---|
| public void stopAwait() | |
| stopInternal | back to summary |
|---|---|
| protected void stopInternal() throws LifecycleException Implements abstract org. Stop nested components (
| |
| storeConfig | back to summary |
|---|---|
| public synchronized void storeConfig() throws InstanceNotFoundException, MBeanException Write the configuration information for this entire
| |
| storeContext | back to summary |
|---|---|
| public synchronized void storeContext(Context context) throws InstanceNotFoundException, MBeanException Write the configuration information for
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Return a String representation of this component.
| |