Package org.apache.catalina.startup
Class Catalina
java.lang.Object
org.apache.catalina.startup.Catalina
Startup/Shutdown shell program for Catalina. The following command line options are recognized:
 
- -config {pathname} - Set the pathname of the configuration file to be processed. If a relative path is specified, it will be interpreted as relative to the directory pathname specified by the "catalina.base" system property. [conf/server.xml]
- -help - Display usage information.
- -nonaming - Disable naming support.
- configtest - Try to test the config
- start - Start an instance of Catalina.
- stop - Stop the currently running instance of Catalina.
- Author:
- Craig R. McClanahan, Remy Maucherat
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected classShutdown hook which will perform a clean shutdown of Catalina if needed.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected booleanUse await.protected StringPathname to the server configuration file.protected booleanPrevent duplicate loads.protected ClassLoaderThe shared extensions class loader for this server.protected ServerThe server component we are starting or stopping.protected ThreadShutdown hook.protected static final StringManagerThe string manager for this package.protected booleanIs naming enabled ?protected booleanUse shutdown hook flag.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanProcess the specified command line arguments.voidawait()Await and shutdown.protected FileReturn a File object representing our configuration file.protected DigesterCreate and configure the Digester we will be using for startup.protected DigesterCreate and configure the Digester we will be using for shutdown.booleanprotected voidinitDirs()Deprecated.unused.protected voidprotected voidbooleanisAwait()booleanvoidload()Start a new server instance.voidvoidsetAwait(boolean b) voidsetConfigFile(String file) voidsetParentClassLoader(ClassLoader parentClassLoader) Set the shared extensions class loader.protected voidSet the security package access/protection.voidvoidsetUseNaming(boolean useNaming) Enables or disables naming support.voidsetUseShutdownHook(boolean useShutdownHook) voidstart()Start a new server instance.voidstop()Stop an existing server instance.voidvoidstopServer(String[] arguments) protected voidusage()Print usage information for this application.
- 
Field Details- 
smThe string manager for this package.
- 
awaitprotected boolean awaitUse await.
- 
configFilePathname to the server configuration file.
- 
parentClassLoaderThe shared extensions class loader for this server.
- 
serverThe server component we are starting or stopping.
- 
useShutdownHookprotected boolean useShutdownHookUse shutdown hook flag.
- 
shutdownHookShutdown hook.
- 
useNamingprotected boolean useNamingIs naming enabled ?
- 
loadedprotected boolean loadedPrevent duplicate loads.
 
- 
- 
Constructor Details- 
Catalinapublic Catalina()
 
- 
- 
Method Details- 
setConfigFile
- 
getConfigFile
- 
setUseShutdownHookpublic void setUseShutdownHook(boolean useShutdownHook) 
- 
getUseShutdownHookpublic boolean getUseShutdownHook()
- 
setParentClassLoaderSet the shared extensions class loader.- Parameters:
- parentClassLoader- The shared extensions class loader.
 
- 
getParentClassLoader
- 
setServer
- 
getServer
- 
isUseNamingpublic boolean isUseNaming()- Returns:
- trueif naming is enabled.
 
- 
setUseNamingpublic void setUseNaming(boolean useNaming) Enables or disables naming support.- Parameters:
- useNaming- The new use naming value
 
- 
setAwaitpublic void setAwait(boolean b) 
- 
isAwaitpublic boolean isAwait()
- 
argumentsProcess the specified command line arguments.- Parameters:
- args- Command line arguments to process
- Returns:
- trueif we should continue processing
 
- 
configFileReturn a File object representing our configuration file.- Returns:
- the main configuration file
 
- 
createStartDigesterCreate and configure the Digester we will be using for startup.- Returns:
- the main digester to parse server.xml
 
- 
createStopDigesterCreate and configure the Digester we will be using for shutdown.- Returns:
- the digester to process the stop operation
 
- 
stopServerpublic void stopServer()
- 
stopServer
- 
loadpublic void load()Start a new server instance.
- 
load
- 
startpublic void start()Start a new server instance.
- 
stoppublic void stop()Stop an existing server instance.
- 
awaitpublic void await()Await and shutdown.
- 
usageprotected void usage()Print usage information for this application.
- 
initDirsDeprecated.unused. Will be removed in Tomcat 10 onwards.
- 
initStreamsprotected void initStreams()
- 
initNamingprotected void initNaming()
- 
setSecurityProtectionprotected void setSecurityProtection()Set the security package access/protection.
 
-