org.apache.catalina.startup
public class Catalina extends Embedded
Version: $Revision: 892773 $ $Date: 2009-12-21 12:38:21 +0100 (Mon, 21 Dec 2009) $
Nested Class Summary | |
---|---|
protected class | Catalina.CatalinaShutdownHook
Shutdown hook which will perform a clean shutdown of Catalina if needed. |
Field Summary | |
---|---|
protected String | configFile
Pathname to the server configuration file. |
protected ClassLoader | parentClassLoader
The shared extensions class loader for this server. |
protected Server | server
The server component we are starting or stopping |
protected Thread | shutdownHook
Shutdown hook. |
protected boolean | starting
Are we starting a new server? |
protected boolean | stopping
Are we stopping an existing server? |
protected boolean | useShutdownHook
Use shutdown hook flag. |
Method Summary | |
---|---|
protected boolean | arguments(String[] args)
Process the specified command line arguments, and return
true if we should continue processing; otherwise
return false .
|
void | await()
Await and shutdown. |
protected File | configFile()
Return a File object representing our configuration file. |
void | create() |
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. |
void | destroy() |
String | getConfigFile() |
boolean | getUseShutdownHook() |
void | load()
Start a new server instance. |
void | load(String[] args) |
static void | main(String[] args)
The application main program.
|
void | process(String[] args)
The instance main program.
|
void | setCatalinaBase()
Set the catalina.base System property to the current
working directory if it has not been set. |
void | setCatalinaHome()
Set the catalina.home System property to the current
working directory if it has not been set. |
void | setConfig(String file) |
void | setConfigFile(String file) |
void | setParentClassLoader(ClassLoader parentClassLoader)
Set the shared extensions class loader.
|
void | setServer(Server server)
Set the server instance we are configuring.
|
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. |
true
if we should continue processing; otherwise
return false
.
Parameters: args Command line arguments to process
Parameters: args Command line arguments
Parameters: args Command line arguments
Deprecated: Use initDirs()
Set thecatalina.base
System property to the current
working directory if it has not been set.Deprecated: Use initDirs()
Set thecatalina.home
System property to the current
working directory if it has not been set.Parameters: parentClassLoader The shared extensions class loader.
Parameters: server The new server