public class Catalina extends Object
| Modifier and Type | Class and Description | 
|---|---|
| protected class  | Catalina.CatalinaShutdownHookShutdown hook which will perform a clean shutdown of Catalina if needed. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected boolean | awaitUse await. | 
| protected String | configFilePathname to the server configuration file. | 
| protected boolean | loadedPrevent duplicate loads. | 
| protected ClassLoader | parentClassLoaderThe shared extensions class loader for this server. | 
| protected Server | serverThe server component we are starting or stopping. | 
| protected Thread | shutdownHookShutdown hook. | 
| protected static StringManager | smThe string manager for this package. | 
| protected boolean | startingDeprecated. 
 Unused - will be removed in Tomcat 8.0.x | 
| protected boolean | stoppingDeprecated. 
 Unused - will be removed in Tomcat 8.0.x | 
| protected boolean | useNamingIs naming enabled ? | 
| protected boolean | useShutdownHookUse shutdown hook flag. | 
| Constructor and Description | 
|---|
| Catalina() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected boolean | arguments(String[] args)Process the specified command line arguments. | 
| void | await()Await and shutdown. | 
| protected File | configFile()Return a File object representing our configuration file. | 
| protected Digester | createStartDigester()Create and configure the Digester we will be using for startup. | 
| protected Digester | createStopDigester()Create and configure the Digester we will be using for shutdown. | 
| String | getConfigFile() | 
| ClassLoader | getParentClassLoader() | 
| Server | getServer() | 
| boolean | getUseShutdownHook() | 
| protected void | initDirs() | 
| protected void | initNaming() | 
| protected void | initStreams() | 
| boolean | isAwait() | 
| boolean | isUseNaming() | 
| void | load()Start a new server instance. | 
| void | load(String[] args) | 
| void | setAwait(boolean b) | 
| void | setConfig(String file)Deprecated. 
 | 
| void | setConfigFile(String file) | 
| void | setParentClassLoader(ClassLoader parentClassLoader)Set the shared extensions class loader. | 
| protected void | setSecurityProtection()Set the security package access/protection. | 
| void | setServer(Server server) | 
| void | setUseNaming(boolean useNaming)Enables or disables naming support. | 
| void | setUseShutdownHook(boolean useShutdownHook) | 
| void | start()Start a new server instance. | 
| void | stop()Stop an existing server instance. | 
| void | stopServer() | 
| void | stopServer(String[] arguments) | 
| protected void | usage()Print usage information for this application. | 
protected static final StringManager sm
protected boolean await
protected String configFile
protected ClassLoader parentClassLoader
protected Server server
@Deprecated protected boolean starting
@Deprecated protected boolean stopping
protected boolean useShutdownHook
protected Thread shutdownHook
protected boolean useNaming
protected boolean loaded
@Deprecated public void setConfig(String file)
setConfigFile(String)file - The configuration filepublic void setConfigFile(String file)
public String getConfigFile()
public void setUseShutdownHook(boolean useShutdownHook)
public boolean getUseShutdownHook()
public void setParentClassLoader(ClassLoader parentClassLoader)
parentClassLoader - The shared extensions class loader.public ClassLoader getParentClassLoader()
public void setServer(Server server)
public Server getServer()
public boolean isUseNaming()
true if naming is enabled.public void setUseNaming(boolean useNaming)
useNaming - The new use naming valuepublic void setAwait(boolean b)
public boolean isAwait()
protected boolean arguments(String[] args)
args - Command line arguments to processtrue if we should continue processingprotected File configFile()
protected Digester createStartDigester()
protected Digester createStopDigester()
public void stopServer()
public void stopServer(String[] arguments)
public void load()
public void load(String[] args)
public void start()
public void stop()
public void await()
protected void usage()
protected void initDirs()
protected void initStreams()
protected void initNaming()
protected void setSecurityProtection()
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.